This project is a simple integration with Pagar.me API
The following technologies has been used:
With your terminal run yarn
.
Yes, just it. This will install all needed dependencies. Take a break and drink a coffee while waiting โ๐.
To this you can run node ./index.js
.
Your server will be started.
Route: GET /
Description: This just will return an object: { hello: 'World' }
Route: POST /payment
Description: Make a payment (remember to use only test API keys on this application).
Body params:
{
"card_number": "123412341234",
"card_holder_name": "NAME LIKE ON CARD",
"card_expiration_date": "04/27",
"card_cvv": "123"
}