TWINT
TWINT is a popular mobile wallet supported by the main banks in Switzerland. Users can link their bank account or debit/credit cards with the TWINT app and pay at participating online and offline merchants. Learn more about TWINT.
Payment method properties
Markets | CH |
Processing currencies | CHF |
Consumer currencies | CHF |
Settlement currencies | CHF |
Authentication methods | REDIRECT SCAN_CODE |
Minimum payment amount | 0.01 CHF |
Maximum payment amount | 5,000.00 CHF (can vary by bank) |
Payment instrument | PASSTHROUGH_WALLET |
Recurring payments | Yes |
Separate captures | No |
Refund | Full - Partial - Multiple |
Refund validity | 6 months |
Disputes | Yes |
Sandbox availability | PPRO mock processor |
Make a TWINT payment
TWINT is available through our standardized REDIRECT
and SCAN_CODE
flows. Enabling you to offer a seamless desktop or in-store QR code to mobile handoff experience.
To make a TWINT payment, you'll need to provide the following data at minimum when calling our /v1/payment-charges API:
Data Field | Description |
---|---|
paymentMethod | TWINT |
amount.value | The amount to be paid in the smallest units of the currency used. |
amount.currency | CHF |
consumer.name | Full name of the consumer. |
consumer.country | The country where the consumer is shopping. |
authenticationSettings: REDIRECT settings.returnUrl | Add the url where the consumer should be redirected to after they complete the payment. Required for the REDIRECT payment flow. |
Request
POST /v1/payment-charges
{
"paymentMethod": "TWINT",
"amount": {
"value": 1000,
"currency": "CHF"
},
"consumer": {
"name": "John Smith",
"country": "CH"
},
"authenticationSettings": [
{
"type": "REDIRECT",
"settings": {
"returnUrl": "https://www.webshop.com/order-results-page"
}
},
{
"type": "SCAN_CODE"
}
]
}
Response
You'll receive our standard payment charge response (see potential responses in the API Reference) with the available authentication methods.
{
"id": "charge_X0O78tadFHrZCbGhkycPk",
"status": "AUTHENTICATION_PENDING",
// ...
"authenticationMethods": [
{
"type": "REDIRECT",
"details": {
"requestUrl": "https://redirection-target.ppro.com",
"requestMethod": "GET"
}
},
{
"type": "SCAN_CODE",
"details": {
"codePayload": "twint://open/paymentrequest?amount=1000¤cy=CHF&from=QR",
"codeImage": "https://qr.ppro.com/image.png?payload=aWQ9YWJjJmFtb3Vuk9VVNEJmZyb209UVI",
"codeDocument": "cdn.ppro.com//linktocodedocument",
"scanBy": "2025-03-26T20:24:27Z",
"codeType": "QR"
}
}
]
}
Pick the desired authentication method
REDIRECT
- Redirect your consumer to the returned
$.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl
.
For example, with the value ofhttps://redirection-target.ppro.com/
using the returned$.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod
HTTP method. - The consumer will finalize the payment process on the redirected page.
SCAN_CODE
- Render the QR code using one of the techniques available.
- The consumer will scan the QR code to complete the payment.
Handling the payment result
REDIRECT
- Once the consumer has confirmed the payment, they are redirected to the
returnUrl
provided in the initial payment charge creation request. - After the consumer is redirected back to your site, check the payment status by making a GET /v1/payment-charges/{paymentChargeId}. Use the
Status
that you received to display the payment outcome to the consumer. - Webhooks are also sent to inform you of the payment outcome. If the shopper closes the browser and doesn't return to your website, you can rely on webhooks to receive the payment result.
SCAN_CODE
- Check the payment status by making a GET /v1/payment-charges/{paymentChargeId}. Use the
Status
that you received to display the payment outcome to the consumer. - Webhooks are also sent to inform you of the payment outcome.
Payment instrument
A PASSTHROUGH_WALLET
instrument will be created for TWINT, with no additional data provided.
Request
GET /v1/payment-instruments/{instrument-id}
Response
{
"id": "instr_5ChenWBwW8xARvJ3GccAx",
"type": "PASSTHROUGH_WALLET"
}
Updated 1 day ago