Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2005
    Posts
    166
    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,162
    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
    166
    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. v139h CC Avenue MCPG integration
    By raunharman in forum Addon Payment Modules
    Replies: 0
    Last Post: 15 Oct 2014, 12:44 PM
  2. v151 CC Avenue - Invalid amount
    By devyani in forum Addon Payment Modules
    Replies: 1
    Last Post: 26 Jun 2014, 11:22 AM
  3. v138a EC via Payflow ERROR 4 [RESPMSG] => Invalid amount
    By sbbemn in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 8 May 2012, 08:05 PM
  4. SecPay = Error - Amount missing, invalid or too small
    By 4dw in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 4 Jun 2010, 01:50 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR