Error with passing a value from the form to Authorize.net

bryancd911 23 Nov, 2012
Can someone please assist me to figure out what I am doing wrong. I am passing an amount from the form to Authorize.net payment gateway and sometimes it is acting weird.

I've set a dropdown button to compute for the amount and pass it to Authorize.net. Initially, it is working fine but a couple of more test, the results looks like they're accumulating. There is no problem with the computation inside the form, but the odd thing is that the value from the form that is passed unto Aunthorize.net field produces different value for some reasons.

The computation is based on no. of guests x 29 but selecting 4 guests will multiply by 25 (some sort of discount). You will notice on the debug results that the amount is just fine and initially, the debug results from Authorize.net is fine too but try testing the form again and the x_amount from Authorize.net debug results will produce a different value even if the value of the form is correct.

I've tried clearing my cache too every now and then, and sometimes it works but most of the time it doesn't...

For your reference, you can use the following test credit card numbers when testing the connection. The expiration date must be set to the present date or later:

- American Express Test Card: 370000000000002
- Discover Test Card: 6011000000000012
- Visa Test Card: 4007000000027
- Second Visa Test Card: 4012888818888
- JCB: 3088000000000017
- Diners Club/ Carte Blanche: 38000000000006

Hoping that someone can figure out what's wrong. Thanks...
GreyHead 23 Nov, 2012
Hi bryancd911 ,

If you are using the 'Trial' version then it randomises the amount. Everything else works as it should. Contact Max using the Contact Us link above for info on getting the non-trial version.

Bob
This topic is locked and no more replies can be posted.