Skip to content

Learn how to quickly collect payments with SumUp checkouts.

License

Notifications You must be signed in to change notification settings

sumup/sumup-checkout-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SumUp Checkout Examples

Documentation License

Learn how to quickly collect payments with SumUp checkouts. In this repository you will find backend examples for all our SDKs and a few sample frontends to get you started with accepting your first online payment.

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 POST /checkouts and use the SumUp SDKs, plus front-end examples that mount the card widget.

Frontend Examples

Both front-ends create a checkout via POST /checkouts and mount the SumUp card widget for a one-time payment.

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.

About

Learn how to quickly collect payments with SumUp checkouts.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •