- METHOD TYPEE-wallet
- PAYMENTS
- PAYOUTS
- REFUNDS
- RECURRING
Introduction
TWINT is a mobile wallet suported by the main banks in Switzerland. A user links a bank account or debit or credit card to the TWINT app. The app supports money transfers and payments via QR code at participating online and offline merchants. A prepaid top-up version of TWINT is available. A user can also save a loyalty card in the TWINT wallet.
Supported Countries
- Switzerland
Supported Currencies
- CHF
REST API 1.0
Payment Flow
1. Generate a sessionToken.
2. Perform the payment by sending a
/payment request with the following mandatory parameters:
-
userTokenIdpaymentOption.alternativePaymentMethodclass containing:paymentMethod: “apmgw_TWINT”
currencyamountdeviceDetailsbillingAddressclass containing:emailcountry
userDetailsclass containing:emailcountry
shippingAddressclass containing:emailcountry
Example /payment Request
{
"sessionToken": "d106e2de-f8bf-41cf-af8c-ea86b95078d7",
"merchantId": "{{merchantId}}",
"merchantSiteId": "{{merchantSiteId}}",
"userTokenId": "TWINT119022",
"paymentOption": {
"alternativePaymentMethod": {
"paymentMethod": "apmgw_TWINT"
}
},
"currency": "CHF",
"amount": "1",
"deviceDetails": {},
"billingAddress": {
"email": "[email protected]",
"country": "CH"
},
"userDetails": {
"email": "[email protected]",
"country": "CH"
},
"shippingAddress": {
"email": "[email protected]",
"country": "CH"
},
"timeStamp": "{{timestamp}}",
"checksum": "{{checksum}}"
}
The response returns a redirectUrl which redirects the customer to the payment page and a userPaymentOptionId (UPO) for use in future transactions.
Example /payment Response
{
{
"internalRequestId": 40058661,
"status": "SUCCESS",
"errCode": 0,
"reason": "",
"merchantId": "1102398682906145682",
"merchantSiteId": "228311",
"version": "1.0",
"sessionToken": "d106e2de-f8bf-41cf-af8c-ea86b95078d7",
"orderId": "42856811",
"userTokenId": "TWINT119022",
"paymentOption": {
"redirectUrl": https://pay-pat.twint.ch/static-page/?orderUUID=7bb5b748-1a9b-4964-b607-62f271f4c357&type=PAYMENT&jwt=eyJ4NXQiOiI4bGtudnVHSUtLcmpTLWNtRGVPQnZLaTRoaTQiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI3ZmE1Yjg5Yi0yYzc5LTQyYzgtODA4OS1iYTg3YzliYWMxOGMiLCJqdGkiOiJudDVST0tLWXBKMFJubk0xMmt0SnpBIiwiZXhwIjoxNzEyODIzMjE2LCJpYXQiOjE3MTI4MjIzMTYsIm5iZiI6MTcxMjgyMjI1Niwic3ViIjoiUFNQLWNoZWNrb3V0IiwiT3JkZXJVVUlEIjoiN2JiNWI3NDgtMWE5Yi00OTY0LWI2MDctNjJmMjcxZjRjMzU3In0.aT64hnzXG5t3t9DpyNKGJUaws2TLX8vYqDQ0s1477LrgM5lLBMmjCSu_Ou2HFvQRK1thJ9e_P--tGxwVjydeeSI6EN1tKIewDw1h6EM7dvj68XBlHLrtO8qM_2nksgc72jl3h6aut8D65sjY_nS1deqr4dccG-Qh4cxflyGEuoCbPzUlkjPxheW2qD9WbK-8N_tJ_Yp4c6ebOq4AlHdZyd1woBVMJUsA9xh1fEFrnUzeukj1taYyLabwMX8SRg5bWhMa2j99UaW9w0QUM7w7ppW4QWo6N7GzY6OsPPIGpy861E-1FuekBAm9zaV3t4x3fda0JWAcuj8qZgZ43S3ylg&cancelOrderCallbackURL=https%3A%2f%2fjumpbox.safecharge.com%2fdmz%2fApmConnector%2f89C2A333D2C52651297B170F19BBA3B4%3Fcancel%3Dtrue&redirectURL=https%3A%2f%2fjumpbox.safecharge.com%2fdmz%2fApmConnector%2f89C2A333D2C52651297B170F19BBA3B4,
"userPaymentOptionId": "2153187621",
"card": {}
},
"transactionStatus": "REDIRECT"
}
After the transaction is processed, Nuvei sends a Direct Merchant Notification (DMN) that includes the result of the transaction to the URL provided in urlDetails.notificationUrl, which Nuvei recommends including in the /payment request.
User Experience
Payment
Payment via Desktop
-
-
- User selects the TWINT payment option on the merchant payment page.
- User is redirected to a page in the TWINT application with a QR code and a PIN code.

- User scans the QR code or enters the pin code in the TWINT application.

- User confirms the deposit in the TWINT application.

- User completes the payment in the TWINT application.
A success message appears.
-

Payment via Mobile Device
-
-
- User selects the TWINT payment option on the merchant payment page.
- User is redirected to a page in the TWINT application with a ‘Switch to APP’ button and PIN code.

- User clicks the ‘Switch to APP’ button and is prompted to confirm the payment.

- User completes the payment in the TWINT application.
A success message appears.
-

Testing
Test credentials and testing scenarios can be provided by Nuvei, if necessary.