Print Page | Close Window

Authorize.NET Response

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5312
Printed Date: 26-June-2024 at 5:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Authorize.NET Response
Posted By: 1st-line
Subject: Authorize.NET Response
Date Posted: 15-October-2012 at 3:51pm
Is it possible to customize the response from decline charges using authorize.NET? If yes, please notify which files need to be modified.



Replies:
Posted By: Guests
Date Posted: 15-October-2012 at 4:17pm
Should be in the /includes/languages.asp file. Just search for the text in the message.


Posted By: 1st-line
Date Posted: 15-October-2012 at 5:31pm
Thanks. We already checked the language file and searched the forums/knowledge base before we posted. From the code, it looks like the response is coming from Authorize.NET. Unfortunately, it can confuse customers with a message that AVS is not matched. It also gives a back button, but does nto tell customers to try again or try a different card number.


Posted By: Guests
Date Posted: 15-October-2012 at 6:01pm
I see. I always recommend against passing on the raw response from the gateway -- for reasons much as you suggest.

Best thing to do here would be to modify /pc/msgb.asp (as it is highly unlikely to be affected by PC updates).

find:
<%=msg%>

replace that with:
<%
select case TRUE
case Instr(msg,"<b>Error&nbsp;[x_response_code I don't like]</b>:") > 0
msg = Replace(message,"[x_response_reason_text I don't like]","[The message I'd rather use.]")
case else
msg = msg
end select
%>



Posted By: 1st-line
Date Posted: 15-October-2012 at 6:19pm
Thanks!


Posted By: Guests
Date Posted: 15-October-2012 at 7:49pm
Oops! Correction:

<%
select case TRUE
case Instr(msg,"<b>Error&nbsp;[x_response_code I don't like]</b>:") > 0
msg = Replace(msg,"[x_response_reason_text I don't like]","[The message I'd rather use.]")
case else
msg = msg
end select
%>



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net