I have integrated simple check out form with my website, but i need to validate the fields that in checkout form. I tried submitting the values empty and the form got submitted. How i can do validation on these fields?
04-11-2012 09:47 AM
I am using PHP.
Basically my site is about buying credits for the site.
I am in test mode, i put all the required values like amount, description of the package and tax, in hidden post values. After the transaction, i got all the values from $_post array in relay_url, and then i set my business logic and display a thank you page (back to my site).
Everything is complete except the form validation that is appearing at https://secure.authorize.net/gateway/transact.dll
What if the javascript disabled by the user? How can i let authorize.net do validation for me. I am worried about disabled javascript and credit card security flaw by using kind of third party validation. Please help!
04-11-2012 02:17 PM - edited 04-11-2012 02:21 PM
For SIM you won't be able to do any validation because the page is on Authorize.net. All you can is set the field if it is required in the merchant account setting.
And you said you are running in TEST mode with a production account. A lot of thing do not work with TEST mode.
Get a test account and test it with live mode
Authorize.Net Test Account FAQs
04-11-2012 02:28 PM - edited 04-11-2012 02:32 PM
I saw the code regarding CC# validation. This is like syntax validation, what if the card No. still unvalid or Out of money or expired?
04-12-2012 03:21 AM
Also please suggest me,
I just want that user from my website buy credits that will use in the site, simple checkout seems, you can create form within your website page. But the problem was, i am using codeigniter, and was unable to integrate it with my CI application. Thats why i choose current (DPM) method. Now i understand that, i need to handle validation by myself. I have still no idea about how i can make validation for creadit card (Payment and expired - Not syntax error). Do i need to put validation code in my relay_url page?
04-12-2012 03:51 AM
04-12-2012 04:07 AM
I also want to mention that i am not using php_sdk for it.
04-12-2012 04:33 AM
I saw the code regarding CC# validation. This is like syntax validation, what if the card No. still unvalid or Out of money or expired?
That was because I assume you use DPM. You can NOT do any SIM validation on Authorize.net CC info page.
Authorize.net will do simple validation like the length on the CC#, Luhn Formula for check digit, if the expiratedate enter is expirate, required fields are enter, etc. Then authorize.net send the info to your processor for process, only your processor will return if the CC is valid and if it have enough credit.
On your relay response page, you will need to check for the response code "1" to make sure it charge the CC#.
04-12-2012 04:35 AM
Alright! i understood.
1. Now what should i do in order to validate all the fields and CC# right on the payment page?
2. As now you understand my application logic, can you suggest me METHOD for my requirements? (I don't have an ssl)
04-12-2012 07:59 AM
1. Now what should i do in order to validate all the fields and CC# right on the payment page?
You can NOT do any validation with SIM payment page.
2. As now you understand my application logic, can you suggest me METHOD for my requirements? (I don't have an ssl)
For SIM, check the result on your relay response page.
04-12-2012 08:14 AM