Create stripe account - Login if you already have Login or Register
Get tokens - You can find you tokens under Developers -> API Keys
section on dashboard of you stripe payment gateway.
Clone this repo - To clone this repo use git clone https://github.com/harendra21/stripe-nodejs
.
Install Packages - Run npm install
to install all dependencies used it the project.
/ \ / \ / _ \ / \ / \ |___ / / _ \
| || | / /\ \ | _/ | / / / /\
| _ | | _ | | ___ | / / | _ |
| | | | | | | | | | | | / /__ | | | |
_/ _/ _| |/ || || |_____| _| |/
Change tokens - Change your token in views/card.js
and server.js
file.
Serve application - Start your application by node server.js
Test card details - Use 4242 4242 4242 4242
card number for testing.