Fake (dummy) Payment Gateway for testing purposes.Can payment using cards as well as phone numbers.
MIT License
fake-payment-gateway, that handle
fake-payment-gateway uses:
download the project.
[email protected]:ShalithaCell/fake-payment-gateway.git
or
https://github.com/ShalithaCell/fake-payment-gateway.git
Goto inside to 'fake-payment-gateway' folder and run the command.
npm install
Configure email sender
create .env file in project root folder. execute following command,
In windows
cd > .env
In Mac/ Linux
touch .env
add following code to the .env file with your email address credentials,
MAIL_SENDER_IDENTITY="please enter your email address here"
MAIL_SENDER_PASSWORD="please enter your email password here"
make sure you should enable, less secure apps in gmail account. * How to enable less secure apps
Run the Project
npm run start
You can get all api end-points invoking the following link,
For card payment
{
"app_name": "ABC",
"service": "Electronic Items",
"customer_email":"[email protected]",
"card_type ": "VISA",
"card_holder_name": "Example",
"card_number": "4242424242424242",
"expiryMonth": "01",
"expiryYear": "2020",
"cvv": "123",
"amount": "5000.00",
"currency": "USD"
}
For payment using phone number
{
"app_name": "ABC",
"service": "Electronic Items",
"customer_email":"[email protected]",
"phone_number ": "0771940055",
"phone_holder_name": "shalitha",
"amount": "5000.00",
"currency": "USD"
}
Get card payment transaction history
Get phone payment transaction history
Want to contribute? Great!
The best way to contribute is by spreading the word about the library:
MIT
Free Software, Hell Yeah!