TWINT
Intro
TWINT is a Swiss real-time banking/prepaid payment system.
With over 3.5 million active users, TWINT is the most popular payment method in Switzerland. By linking their bank accounts, credit cards or prepaid cards with the TWINT app, your customers can pay low amount transactions easily (i.e. pay-by-phone parking, food ordering or invoicing).
You send a standard request to our platform to redirect your customers to the TWINT portal to open the app.
The integration is very easy, as you only need to send one additional parameter along with your request.
Integration
Redirect your customers to the TWINT app via our Hosted Checkout Page. Find a high level overview in the "Zahlungsablauf" chapter.
Add the following properties to a standard CreateHostedCheckout request:
{
"order":{
"amountOfMoney":{
"currencyCode":"CHF",
"amount":1700
},
"redirectPaymentMethodSpecificInput":{
"paymentProductId":5407,
"requiresApproval":false
}
}
}
Properties | Remarks |
---|---|
order.amountOfMoney |
amount: The gross amount you want to charge for this order. currencyCode: The ISO 4217 currency code for this amount. |
redirectPaymentMethodSpecificInput |
paymentProductId: The numeric identifier of the payment method on our platform. Find this id in the "Überblick" chapter. It instructs our platform to send your customers directly to the TWINT-branded version of our Hosted Checkout Page. If left out, our platform sends your customers to the Hosted Checkout Page instead, allowing them to choose this or any other payment method in your account. requiresApproval: Set to either "true" or "false" depending on whether you want to process payments in authorisation/direct sale mode. |
Ausführliche Informationen über dieses Objekt und seine Eigenschaften finden Sie in unserer CreateHostedCheckoutAPI
Zahlungsablauf
Depending on your customers' device(s) used, differences apply:
With a desktop and a mobile device
This flow involves both your customers' mobile/tablet and desktop device interacting with each other.
- Your customers finalise an order on their desktop device in your shop and select TWINT.
- You send this CreateHostedCheckout request to our platform.
- You redirect your customers on their desktop device via the redirectUrl to our Hosted Checkout Page. Your customers scan the displayed QR code with their mobile/tablet device or type in displayed the code manually in their TWINT app.
- The mobile/tablet device opens the TWINT app. Your customers confirm the payment in the app.
- We receive the transaction result.
- The mobile/tablet device opens the standard browser and redirects your customers to your returnURL. We redirect your customers to your returnURL on their desktop device.
- You request the transaction result from our platform via GetHostedCheckout or receive the result via webhooks.
- If the transaction was successful, you can deliver the goods / service.
With a mobile device
- Your customers finalise an order in your shop and select TWINT.
- You send this CreateHostedCheckout request to our platform.
- You redirect your customers via the redirectUrl to our Hosted Checkout Page where they click on the "Switch to app" button.
- The mobile device opens the TWINT app. Your customers confirm the payment in the app.
- We receive the transaction result.
- The app redirects your customers to your returnURL
- You request the transaction result from our platform via GetHostedCheckout or receive the result via webhooks.
- If the transaction was successful, you can deliver the goods / service.
Testdaten
In unseren Testszenarios finden Sie Testdaten und detaillierte Instruktionen.
Stellen Sie sicher, den korrekten Endpunkt anzusteuern und zurück zum Live-Endpunkt zu wechseln, sobald Sie Ihre Tests abgeschlossen haben