Forums / Addon Payment Modules / CC Avenue Problem: Invalid amount

CC Avenue Problem: Invalid amount

Locked

Views: 4,956

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Mar 2007, 10:49 AM
#1
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

CC Avenue Problem: Invalid amount

I have integrted Indian Merchant Payment Gateway on one of my web sites. Till a few days back, the total amount was being passed to CC Avenue gateway. But since few days back, I am getting an error of Invalid Amount . On contacting CCAvenue Tech Support, they informed that the total amount value being passed on to CC Avenue was zero, so the error.
I checked the complete integration script but did not find this. I also disabled Currency Conversion option. But the error is still there

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

19 Mar 2007, 11:25 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: CC Avenue Problem: Invalid amount

Hmm...Can we see your site?

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

17 Jul 2007, 6:03 AM
#3
phani avatar

phani

New Zenner

Join Date:
Jul 2007
Posts:
1
Plugin Contributions:
0

Re: CC Avenue Problem: Invalid amount

i hope you found a solution to your problem already; in case you didn't, and for others who might face the same problem, i want to describe how i solved it:

the ccavenue payment module passes the total purchase amount as a number formatted with the PHP-function number_format to the ccavenue web site. as a result, the amount gets formatted with a ',' separating groups of thousands (1,234). ccavenue doesn't seem to like this comma and returns 'invalid amount'.

i changed the following code in /includes/modules/payment/ccavenue.php (line 157, in my case) from :

zen_draw_hidden_field('Amount', number_format($cOrderTotal, 0)) .

to:

zen_draw_hidden_field('Amount', number_format($cOrderTotal, 2, '.', '')) .

which formats the amount without comma, and ccavenue stopped complaining.

phani

22 Jul 2008, 1:24 PM
#5
saggiguy avatar

saggiguy

New Zenner

Join Date:
Mar 2008
Posts:
2
Plugin Contributions:
0

Re: CC Avenue Problem: Invalid amount

Hello

Please guide me where I can get the ccavenue module for INR merchants.

Thanks

30 Jan 2009, 6:04 AM
#6
antz_bin avatar

antz_bin

New Zenner

Join Date:
Jul 2008
Posts:
1
Plugin Contributions:
0

Re: CC Avenue Problem: Invalid amount

Thanks a ton Phani...