Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Deno example

Setup

export SUMUP_API_KEY="your_api_key"
export SUMUP_MERCHANT_CODE="your_merchant_code"

Run

deno run --allow-env --allow-net main.ts

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}'