This simple payment system developed to cater for specific needs of cod practice where payment is made during/before delivery of an item. It is basically just a simple payment on web.
- Integrate with Billplz
- Integrate with Stripe Checkout
- First you clone this repo
- Run npm install command
$ npm install
- Edit sample.env & put in needed value and save it as .env
BILLPLZSECRETKEY= <PUT IN YOUR BILLPLZ SECRET KEY HERE >
BILLPLZCOLLECTIONKEY= <PUT IN YOUR BILLPLZ COLLECTION CODE HERE>
SYSTEMURL=https://domain.com/ <CONFIGURE YOUR DOMAIN>
- Edit ketetapan_ahli/sample.json ad save as "username.json" the filename will become your login username
{"kata_laluan" : "value is just md5 hash text for your password",
"nama_agent": "is just a string"}
- run node
$ node index.js
- go to http://yourdomain:3000 or http://localhost:3000
- go to http://localhost:3000/member to login (username is what you save sample.json above
- after login you can click on "Cipta" button
- it will generate a link, you can copy the link
- open the link in new tab and proceed with payment
- To properly handle all the error
- To add listing of url created
- To add in proper setting of sitting behind nginx proxy
- To properly handle and check for correct phone number