Response from Authorize.net is declined, but order is created anyway...
I have tested this by entering a valid credit card number, and entered a bad bill to address. The response I get on the checkout failure page is:
"Transaction Not Completed
Your transaction could not be completed.
The transaction resulted in an AVS mismatch. The address provided does not match billing address of cardholder."
However, it seems that the page continues to write the record into my database as a valid order
Here is the code at the end of the Auth.Net Checkout portion of the page:
AuthNet_optional(0) = AuthNet_optional_name
AuthNet_optional(1) = AuthNet_optional_value
WAGatewayResponse = AuthNet_Post(AuthNet_required,AuthNet_itemized,AuthNet_optional)
if (WAGatewayResponse) then
shoeCart_redirStr = ""
else if ("cart_checkout_failure.asp" <> "") then
<%' WA eCart Store Cart Summary in Db
This is just before the Store Cart Summary in Database function. Is there something i need to add so that the order does not go into the database on Decline?