Payment form with paypal and braintree gateway
if u want to deploy in your server,please use the dist folder as web root
web server setupapp | webpack entry file |
components | react componnets |
dist | distribute folder(server side code are in api folder) |
reducers | redux reducers |
CREATE TABLE `payment_record` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `firstname` varchar(100) NOT NULL, `lastname` varchar(100) NOT NULL, `phone` varchar(50) NOT NULL, `price` decimal(10,0) NOT NULL, `currency` varchar(30) NOT NULL, `payment_ref_code` varchar(255) NOT NULL DEFAULT '', `payment_state` varchar(100) NOT NULL DEFAULT '', `creat_time` datetime NOT NULL, `hash` varchar(100) NOT NULL DEFAULT '', #sha1(firstname.lastname.payment_ref_code) for query use `payment_create_time` datetime NOT NULL, `payment_update_time` datetime NOT NULL, `status` int(3) NOT NULL DEFAULT '1', # will be updated when ipn arrives `response` text, # payment response PRIMARY KEY (`id`), KEY `hash` (`hash`) )braintree test reference
paypal test reference