0
How to create a credit card payment php code, can someone help me please
user present their credit card information (e.g., credit card number, expiration date, and credit card verification number
6 Answers
+ 2
Again:" Bad Idea!
If you are asking here, you are asking for trouble. "
There is a tutorial about php form with input filtering and validation on w3school
http://www.w3schools.com/php/php_form_complete.asp
Better suggestion: if you are not sure about what you are doing, don't mess with credit cards and consider using reliable modules and services like paypal.
+ 1
Bad Idea!
If you are asking here, you are asking for trouble.
0
Method use post
You can create input type text its very simple to create
0
i have to performing server-side validations, with minimal client-side validations. design a credit card payment page that asks the user to: select which credit card is being used (radio buttons) Types: VISA, MAGNA, MASTER CARD, enter the credit card number (textbox), select its expiration date: ask the user to input the month and year of the expiration date, and then a drop-down menu of twelve choices (January through December) for the month, and a drop-down menu of six choices (2017-2022) for the year.â¨
enter the credit cardâs CCV. (textbook)
0
@ Trickzn Trick ... how do I do it...I really need help
- 1
If the credit card selected is VISA, then the:â¨
credit card number (CCN) must contain only digits;â¨
CCN must be exactly 15 digits in length;â¨
CCN must not be all zeroes;â¨
credit card number, taken as a 15-digit integer, must be a multiple of 113. Example: 139506171583899 is a multiple of 113, whereas 224604938284130 is not.
If the credit card selected is MAGMA, then the CCN:
must contain only digits;â¨
must be exactly 16 digits in length, but no larger than 9007000000000000;
must not be all zeroes;
taken as a 16-digit integer, with the digit positions numbered from 1..16 from most- to least-significant, must have the sum of the four digits in positions 5..8 equal the sum of the four digits in positions 9..12.â¨Example: 2857463206813856 is valid because 4+6+3+2=15 and 0+6+8+1=15.
If the credit card selected is MasterCard, then the CCN:
must contain only digits;
must be exactly 16 digits in length, but no larger than 9007000000000000;
must not be all zeroes;
taken as a 16-digit integer, with the digit positions numbered from 1..16 from most- to least-significant, must have the digit in position 8 be even, the digit in position 12 be odd, and the digit in position 16 be even.â¨Example: 8473658671239584 is valid because 6 is even, 3 is odd, and 4 is even.
Ensure that none of the controls are left blank.