Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 520 Bytes

File metadata and controls

36 lines (27 loc) · 520 Bytes

Node.js example

Setup

npm install
export SUMUP_API_KEY="your_api_key"
export SUMUP_MERCHANT_CODE="your_merchant_code"

Run

npm start

Test

curl -X POST http://localhost:8080/readers \
  -H "Content-Type: application/json" \
  -d '{"pairing_code":"12345678","name":"Front Desk"}'
curl http://localhost:8080/readers
curl -X POST http://localhost:8080/readers/READER_ID/checkout \
  -H "Content-Type: application/json" \
  -d '{"amount": 10.0}'