Among DPM and SIM, In which method there is an automatic validation of credit card right on https://secure.authorize.net/gateway/transact.dll ?
Like when the credit card number is missing or invalid, the page on the above url validate it before submission.
Thanks.
04-27-2012 07:56 AM - edited 04-27-2012 07:57 AM
None. But you can do your own validation (missing cc# and wrong cc# format, but not invalid cc#) on DPM since it is running on your web site until it post to authorize.net.
04-27-2012 08:12 AM - edited 04-27-2012 08:13 AM
Alright.
Correct me if i am wrong, i will use SIM method. via response code, (1 for success) i can validate transaction on relay url page. I just only care about CC# so i can validate all the possible response code and error messages according the code on relay url page.
One more thing, in the above scenario, if i get error for CC#, what is the appropriate way to redirect back to the secure form, as the user will see the relay page. Should i promt it like, "Your Credit Card is Invalid. Click here to go back to Payment Form".
Waiting for your reply.
Thanks.
04-27-2012 08:19 AM
Correct me if i am wrong, i will use SIM method. via response code, (1 for success) i can validate transaction on relay url page. I just only care about CC# so i can validate all the possible response code and error messages according the code on relay url page.
Yes. If the response code is 1. That is the charge is approve, so the CC# is valid. If is anything but 1 then check the reason code.
One more thing, in the above scenario, if i get error for CC#, what is the appropriate way to redirect back to the secure form, as the user will see the relay page. Should i promt it like, "Your Credit Card is Invalid. Click here to go back to Payment Form".
Anything that work for you, but probably want to show them the reason why the transaction was decline.
04-27-2012 08:33 AM
I have done with my code, but when error comes, instead of showing my relay_url page, It just showing his own version of error with error message, (Only Text) on the page.
Just like follows:
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card. The credit card number is invalid. Credit card expiration date is invalid. |
I have put all the validation code, and error message code in relay_url page, but its not going there.
04-27-2012 02:12 PM
It mean your relay response page it not working. Try the following
04-27-2012 02:41 PM
I got it working.
Thanks for all your support. Really Appreciated!
04-27-2012 05:23 PM