Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How does eStore handle error codes from Authorize.net?
Tagged: auth.net, authorize.net, error handling
- This topic has 4 replies, 3 voices, and was last updated 13 years, 6 months ago by winning.
-
AuthorPosts
-
April 29, 2011 at 8:10 am #3281Chris AitkenMember
I was doing some testing with my new eStore purchase and the Authorize.net integration. If the card/purchaser information is correct, then it seems to work as expected. If the card information is incorrect (e.g., wrong number or wrong address) then the Authorize.net payment page generated an error message, which was fine.
However, then I entered a card type that we don’t accept (American Express) and it seemed to generate an error loop that eStore wasn’t able to recover from? Any suggestions?
Thanks, Chris
April 30, 2011 at 2:20 am #31860amin007ParticipantWhen eStore receives the notification from authorize.net after a payment it validates the notification (to make sure that it is a legitimate successful payment notification). If the verification fails it simply redirects the buyer to the “Cancel URL” page (if you have specified this URL in the eStore’s settings).
Authorize.net sends the payment notification to the “eStore_auth_ipn.php” file. Are you testing this in testing mode? Do you think it is possible for me to jump on your site and do some debugging to see what response code it is returning?
May 5, 2011 at 4:11 pm #31861winningMemberDo you know some common errors that could cause “the verification fails” from authorize.net? If I have that list, I can add those to my “Cancel URL” page to ask my customer to check themsevles. For example,
Sorry the transation didn’t go through. Please check one of the common reasons listed below and try again. If you have any question, please contact us at #phone number here.
Common reasons:
1. You have entered an American Express credit card. Sorry, we do not accept American Express, please try to add the product to shopping card and check out with another card. We accept MasterCard, Visa, …
2. The credit card information is not corrent, such as card number, billing address, expiration date …
3. …
Something like that.
Question: when authorize.net does not valide the transation, will the shopping card be emptied by default and the customer need to “add to cart” again? Or all the items are still saved in shopping card if the customer go to the shopping card page?
Thanks!
May 6, 2011 at 1:05 am #31862amin007ParticipantFor any bigger errors (example: if the credit card information is not correct or card is expired etc) then Authorize.net won’t allow the customer to complete the order by clicking the submit button. I am pretty sure you only need to worry about the exception case (example: you don’t accept american express) on your thank you page.
If you keep debug enabled (there is no harm in keeping debug enabled) then the plugin will create the following additional log file which will capture the results of authorize.net transaction responses.
authorize.ipn_results.log
Over time this will reveal the common failure cases that you get.
I will also add some coding to make it so it adds the error details to the transaction result display. So if the response was a failure the following shortcode on your thank you page will show the actual error:
[wp_eStore_transaction_result:end]
May 24, 2011 at 11:53 pm #31863winningMemberThanks a lots for making this plugin even better day after day. Love this plugin so much
-
AuthorPosts
- You must be logged in to reply to this topic.