Documentation
¶
Overview ¶
This example demonstrates a complete checkout flow with the SumUp payment widget.
Basic steps: 1. Create a checkout for the desired amount using the SDK 2. Initiate the payment widget with the checkout ID
Prerequisites: - SUMUP_API_KEY environment variable with your SumUp API key - SUMUP_MERCHANT_CODE environment variable with your merchant code
To run:
export SUMUP_API_KEY="your-api-key" export SUMUP_MERCHANT_CODE="your-merchant-code" go run main.go
Then open http://localhost:8080 in your browser.
Click to show internal directories.
Click to hide internal directories.