Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2005
    Posts
    137
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,167
    Plugin Contributions
    0

    Default 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!!

  3. #3
    Join Date
    Jul 2007
    Posts
    1
    Plugin Contributions
    0

    Default 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 :
    Code:
    zen_draw_hidden_field('Amount', number_format($cOrderTotal, 0)) .
    to:
    Code:
    zen_draw_hidden_field('Amount', number_format($cOrderTotal, 2, '.', '')) .
    which formats the amount without comma, and ccavenue stopped complaining.


    phani

  4. #4
    Join Date
    Dec 2005
    Posts
    137
    Plugin Contributions
    0

    Default Re: CC Avenue Problem: Invalid amount

    Thanks a lot Phani

  5. #5
    Join Date
    Mar 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: CC Avenue Problem: Invalid amount

    Hello

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

    Thanks

  6. #6
    Join Date
    Jul 2008
    Posts
    1
    Plugin Contributions
    2

    Default Re: CC Avenue Problem: Invalid amount

    Thanks a ton Phani...

 

 

Similar Threads

  1. Ez pages problem and firefox problem
    By bobbyt in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Mar 2007, 03:31 PM
  2. Border Problem and Text under main page category image problem
    By bigc90210 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Feb 2007, 02:40 PM
  3. Problem redeeming GV-Balance
    By donnerkul in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 0
    Last Post: 15 Jan 2007, 11:40 AM
  4. Links Manager 1.5 - submit links page problem
    By heavenlynights in forum Addon Sideboxes
    Replies: 2
    Last Post: 2 Jan 2007, 12:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •