<SOLVED>Authorize.net declined transactions?

  • Posts: 241
  • Thank you received: 5
11 years 9 months ago #88852

Hi,

I am using authorize.net and have created a test transaction with the INCORRECT credit card expiration date. Upon clicking submit, I am directed to a page which states "thank you for your purchase..."

awesomescreenshot.com/0e3w9o610

The transaction is incorrect and declined in authorize.net but the user is led to believe the transaction has been completed.

Please let me know how to show the user that the transaction is declined. I can stop this from happening here: awesomescreenshot.com/0d7w9pg34 by setting Allow payment notifications from Authorize = NO but then I don't get the notifications i need.

Thank you for the advice.

Last edit: 11 years 9 months ago by cberry1971.

Please Log in or Create an account to join the conversation.

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 9 months ago #89066

Hi,

Edit the file plugins/hikashoppayment/authorize/authorize.php and after the code

if($element->payment_params->debug){
				echo 'payment with code '.@$vars['x_response_code'].' : '.@$vars['x_response_reason_text']."\n\n\n";
			}
add the code
return 'The transaction was declined';
and that should display that error message instead of the thank you message.

The following user(s) said Thank You: cberry1971

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum