Skip to content

Latest commit

 

History

History
98 lines (73 loc) · 3.38 KB

File metadata and controls

98 lines (73 loc) · 3.38 KB

SumUp Reader Examples

Documentation License

Learn how to pair SumUp card readers and start in-person payments using the SumUp SDKs. This repository contains backend examples for all our SDKs and a couple of frontend starters for managing readers and initiating checkouts.

All you need to get started is an API key (if you don't have one yet, create it in the SumUp Dashboard) and your merchant code (which you can find in the settings). We recommend starting with a Sandbox account that you can create in the dashboard to be able to test as many payments as you want without processing real money.

Set your environment:

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

Backend Examples

Minimal servers that expose the following endpoints:

Frontend Examples

Both front-ends talk to the backend endpoints above. They let you pair a reader, list existing readers, and start a checkout with a chosen amount.

The UI also links to https://virtual-solo.sumup.com/ which provides a web-based card reader for testing.

Environment

All backend examples use:

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

If the front-end is served from another origin, enable CORS on the backend or use a proxy.