pretix SumUp Hosted Checkout¶
pretix-payment-sumup is a payment provider plugin for pretix. It lets your
customers pay through SumUp Hosted Checkout,
a payment page that SumUp hosts. Customers can pay there by credit or debit card, Apple Pay or Google Pay.
The plugin is meant for self-hosted pretix installations where the organizer has a SumUp merchant account.
Features¶
- Redirects customers to the SumUp Hosted Checkout page, so no card data ever touches your server and no JavaScript widget is embedded in your shop.
- Confirms payments in three independent ways: when the customer returns, through SumUp webhooks, and by polling from the pretix cronjob. A payment is confirmed even if the customer closes the browser right after paying.
- Never trusts a redirect or a webhook on its own. The status is always fetched from the SumUp API, and a payment whose amount doesn't match is not confirmed.
- Supports full and partial refunds from the pretix backend.
- Uses a separate SumUp sandbox merchant account for orders placed in pretix test mode.
- Cancels the SumUp checkout when a pending payment is canceled in pretix.
- Includes English and German texts.
How it works¶
sequenceDiagram
autonumber
actor C as Customer
participant P as pretix
participant S as SumUp API
participant H as SumUp Hosted Checkout
C->>P: Places order, chooses SumUp
P->>S: POST /v0.1/checkouts (hosted_checkout.enabled)
S-->>P: checkout id + hosted_checkout_url
P-->>C: Redirect to hosted_checkout_url
C->>H: Pays by card / Apple Pay / Google Pay
par Webhook
S->>P: POST webhook {CHECKOUT_STATUS_CHANGED, id}
P->>S: GET /v0.1/checkouts/{id}
and Customer returns
H-->>C: Success page with "back to shop" button
C->>P: Return URL
P->>S: GET /v0.1/checkouts/{id}
and Cronjob
P->>S: GET /v0.1/checkouts/{id} for open payments
end
P->>P: status PAID and amount matches → payment confirmed
Whichever path sees PAID first confirms the payment. The others then find it already confirmed
and do nothing.
Where to go next¶
- Install the plugin into your pretix.
- Prepare your SumUp account and create API keys.
- Configure the payment method for your event.
- Read the notes and gotchas before you go live.
To try it out first, the repository contains a Docker Compose sandbox.