-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREAD ME
46 lines (26 loc) · 1.08 KB
/
READ ME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Switch Off error reporting in php.ini
For clarity a flat file structure has been created.
NO FRAMEWORKS USED. Free hand coded.
MYSQL_PDO required
file PayPal.log needs apache write permissions
CREATE TABLE `request-response` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`request` longtext,
`response` longtext,
`gateway` varchar(20) DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
Simply run index.php from web server root !
DEVELOPED IN LINUX UBUNTU V 12.04
I am using sandbox test credentials provided by both Paypal and Braintree.
ISSUES: PAYPAL credit card validation often fails with 400 or 500 errors.
I have NOT used a real credit card.
Sorry, no time for unit tests !
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How would you handle security for saving credit cards?
Storing:
Rijndael Encryption (AES) with base64_encoding
Retrieving:
Rijndael Decryption (AES) with base64_decoding
SSL (https) for data transfer to server.