Trustly
Trustly provides online banking in multiple countries, with a focus on the Nordics, UK and Baltics regions. Shoppers are able to pay with Trustly using their bank account details.
Features
Available country code | AT, DE, DK, EE, ES, FI, GB, LT, LV, NL, NO, SE |
---|---|
Processing currencies | GBP,EUR,DKK,NOK,SEK,PLN |
Settlement currencies | DKK, EUR, GBP, NOK, SEK |
Minimum transaction amount | 0.01 EUR (or equivalent) |
Maximum transaction amount | No Transaction Limit |
Refunds | ✅ |
Partial Refunds | ✅ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
Payment method enumeration values: trustly
There is integration method for Trustly
- Direct API
Direct API
How to integration
For direct API integration, you can create a PaymentIntent and get url in only one step. The following is the demo of creating payment intent:
A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add trustly
to the list of payment method types.
Request
{
"amount": 2000,
"currency": "EUR",
"confirm": true,
"payment_method_data": {
"type": "trustly",
"billing_details": {
"address": {
"country": "DE"
},
"firstName": "Tom",
"lastName": "Hans"
}
},
"merchant_order_id": "txid_20221117061210",
"return_url": "https://wooshpay.com"
}
Response
{
"id": "pi_1765683630576762880",
"object": "payment_intent",
"created": 1709806757000,
"livemode": false,
"currency": "EUR",
"amount": 2000,
"status": "requires_action",
"merchant_order_id": "txid_20221117061210",
"client_secret": "pi_1765683630576762880_secret_8UNpCwl07u5u6VlZ8M8pYezj",
"next_action": {
"type": "trustly_handle_redirect",
"trustly_handle_redirect": {
"url": "https://r3.girogate.de/ti/pprotrustly?tx=140197929730&rs=ZHKyDpSGE6fI5u5uAjHt4xAHlI176iwO&cs=c77d67604cd939329319efc4d937146419128c4336bb489bdb77e88b9c96203c"
}
},
"payment_method_types": [
"trustly"
],
"confirmation_method": "automatic",
"return_url": "https://wooshpay.com",
"payment_method": "pm_1765683630480293888",
"capture_method": "automatic"
}
Next step
You can add more features to your integration as needed
Create a Webhook
Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.
Create a Refund
Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.