Redirect customers to Trustly checkout page
Trustly Express API
If you’re not able to use the Trustly Widget, Trustly Express can be implemented using our API and allows for customized integration.
Include the accountID attribute in the Deposit API call for a user that has made a previous Trustly Deposit. The accountID is a unique identifier for the customer's bank account that is generated by Trustly and shared in the Account notification after a completed Deposit.
When including the accountID in a Deposit API call, the EndUserID parameter should be the same as in previous Deposit API calls for the same end-user.
Request Parameters
Parameter name | Description | Required | Type | Example |
---|---|---|---|---|
EndUserID | ID, username, hash or anything uniquely identifying the end-user requesting the deposit. Should be the same as in previous Deposit API calls. | Yes | Text | 123123 |
Attributes
Attribute name | Description | Required | Type | Example |
---|---|---|---|---|
AccountID | Bank account identifier obtained from a previously completed deposits Account Notification. | Yes | Text | 1234567890 |
NationalIdentificationNumber | The end-user's social security number / personal number / birth number / etc. If this is not included the user will have to manually enter their National ID each time. This adds unnecessary steps to the experience. | Recommended for Sweden only. Must not be included for other markets. | Text | 790131-1234 |
UnchangeableNationalIdentificationNumber | This attribute disables the possibility to change/type in a national identification number when logging in to a Swedish bank. If this attribute is sent, the attribute NationalIdentificationNumber needs to be correctly included in the request. Note: This is only available for Swedish banks. | Recommended for Sweden only. Must not be included for other markets. | Numeric | 1 |
Code Example
Request
{
"method": "Deposit",
"params": {
"Signature": "f4ThjuMqbsdG6u ... S16VbzD4h==",
"UUID": "258a2184-2842-b485-25ca-293525152425",
"Data": {
"Username": "merchant_username",
"Password": "merchant_password",
"NotificationURL": "https://URL_to_your_notification_service",
"EndUserID": "12345", //Same EndUserID as previous Deposit
"MessageID": "your_unique_deposit_id",
"Attributes": {
"Country": "SE",
"Locale": "sv_SE",
"Currency": "SEK",
"Amount": "100.00",
"AccountID" : "1234567890", //AccountID from account notification
"Firstname": "John",
"Lastname": "Doe",
"NationalIdentificationNumber": "19790131-1234", //Person ID for Swedish users
"UnchangeableNationalIdentificationNumber": "1",
"SuccessURL": "https://yourpage.com/success",
"FailURL": "https://yourpage.com/fail"
}
}
},
"version": "1.1"
}
Unsupported banks
If the AccountID parameter is set for a bank that doesn’t yet support Trustly Express, the bank will be pre-selected in the Trustly Checkout but the customer will have to log in to the bank before approving the payment.
For more information about which markets and banks support Trustly Express, please reach out to your Trustly Account Manager.
AccountID in combination with RequestKYC
The AccountID attribute will be ignored for Deposit orders with RequestKYC. If you want to enable Trustly Express, exclude the RequestKYC attribute.
Trustly Express API presentation guidelines
To ensure the best user experience, display the Trustly payment option for the returning user together with the bank's logo and masked account number. The necessary details are shared in the Account notification.
Mandatory information to present:
- Bank logo
- Masked account number (descriptor)
- Trustly logo
Some examples of how to present this information can be found below.
Trustly hosted bank logos
Use the clearinghouse and bank code to obtain the bank logo as an asset, see table below.
Assets URL for the bank logos:
https://assets.trustly.com/checkout/logos/banks/default/[bank_code]/regular.png
https://assets.trustly.com/checkout/logos/banks/default/[bank_code]/round.png
For example, to get the round bank logo for Nordea in Finland the URL is:
https://assets.trustly.com/checkout/logos/banks/default/ndea/round.png
Below is a list of all available banks, and the name to use in the URL:
Bank | Country | Bank Code in URL | Alternative URL |
---|---|---|---|
BAWAG P.S.K. | Austria | bawa | |
Bank Austria | Austria | bkau | |
Easybank | Austria | easy | |
N26 | Austria | ntsb | |
Raiffeisen | Austria | rlnw | |
Volksbank | Austria | vboe | |
MONETA Money Bank | Czech Republic | agba | |
Air Bank | Czech Republic | aira | |
ČSOB | Czech Republic | ceko | |
Fio banka | Czech Republic | fiob | |
Komerční banka | Czech Republic | komb | |
Kreditbanken | Denmark | aakr | |
Arbejdernes Landsbank | Denmark | alba | |
Danske Bank | Denmark | daba | |
Djurslands Bank | Denmark | djur | |
Jyske Bank | Denmark | jyba | |
Nordea | Denmark | ndea | |
Nordfyns Bank | Denmark | nsbk | |
Nykredit Bank | Denmark | nykb | |
Ringkjøbing Landbobank | Denmark | ring | |
Skjern Bank | Denmark | skjb | |
Spar Nord Bank | Denmark | spno | |
Swedbank | Denmark | swed | |
Sparekassen Sjælland-Fyn | Denmark | swes | |
Sydbank | Denmark | sybk | |
Sparekassen Danmark | Denmark | vraa | |
SEB | Estonia | eeuh | |
Coop Pank | Estonia | ekrd | |
Swedbank | Estonia | haba | |
LHV Pank | Estonia | lhvb | |
Citadele | Estonia | parx | |
Luminor | Estonia | riko | |
Ålandsbanken | Finland | aaba | |
Danske Bank | Finland | daba | |
Handelsbanken | Finland | hand | handnl2a |
Aktia Bank Finland | Finland | hels | |
Säästöpankki | Finland | itel | |
Nordea | Finland | ndea | |
OP | Finland | okoy | |
OmaSp | Finland | omsp | |
POP Pankki | Finland | popf | |
S-Pankki | Finland | sban | |
DKB - Deutsche Kreditbank | Germany | byla | |
Targobank | Germany | cmci | |
Commerzbank | Germany | coba | |
Comdirect | Germany | comd | |
DAB Bank | Germany | dabb | |
Deutsche Bank | Germany | deut | |
Fidor Bank | Germany | fddo | |
Sparda-Bank | Germany | geno | |
HypoVereinsbank | Germany | hyve | |
Norisbank | Germany | nors | |
N26 | Germany | ntsb | |
Postbank | Germany | pbnk | |
Revolut | Germany | revo | revolt21 |
Sparkasse | Germany | sskn | |
Volksbank-Raiffeisenbank | Germany | volk | |
Luminor | Latvia | riko | |
SEB | Latvia | unla | |
Luminor | Lithuania | agbl | |
Šiaulių bankas | Lithuania | cbsb | |
SEB | Lithuania | cbvi | |
Citadele | Lithuania | indu | |
Revolut | Lithuania | revo | revolt21 |
ABN AMRO | Netherlands | abna | |
ASN Bank | Netherlands | asnb | asnbnl21 |
ING | Netherlands | ingb | |
Knab | Netherlands | knab | knabnl2h |
Rabobank | Netherlands | rabo | rabonl2u |
Regio Bank | Netherlands | rbrb | rbrbnl21 |
SNS Bank | Netherlands | snsb | snsbnl2a |
Triodos | Netherlands | trio | trionl2u |
Danske Bank | Norway | daba | |
DNB | Norway | dnba | |
Etne Sparebank | Norway | etne | |
Fana Sparebank | Norway | fana | |
Flekkefjord Sparebank | Norway | flek | |
Østre Agder Sparebank | Norway | gjas | |
SpareBank 1 Hallingdal Valdres | Norway | haal | |
Handelsbanken | Norway | hand | |
Haugesund Sparebank | Norway | haug | |
BN Bank ASA | Norway | kbno | |
KLP Banken | Norway | klpk | |
Landkreditt Bank AS | Norway | land | |
Lillesands Sparebank | Norway | lill | |
SpareBank 1 Lom og Skjåk | Norway | losk | |
Luster Sparebank | Norway | lusk | |
SpareBank 1 Sørøst-Norge (Modum) | Norway | modu | |
Nordea | Norway | ndea | |
SpareBank 1 Nordmøre | Norway | norv | |
OBOS-banken AS | Norway | obos | |
Pareto Bank ASA | Norway | ptaa | |
SpareBank 1 Ringerike Hadeland | Norway | riri | |
SpareBank 1 Østfold Akershus | Norway | rygs | |
Sbanken | Norway | sbak | |
SpareBank 1 Gudbrandsdal | Norway | sgfs | |
SpareBank 1 Østlandet | Norway | shed | |
Skudenes & Aakra Sparebank | Norway | skaa | |
SpareBank 1 | Norway | snow | |
SpareBank 1 Nord-Norge | Norway | snow | |
Sparebanken Sogn og Fjordane | Norway | sofj | |
Søgne og Greipstad Sparebank | Norway | sogs | |
Sparebanken Møre | Norway | spar | |
Sparebanken Vest | Norway | spav | |
Sparebanken Øst | Norway | spoe | |
SpareBank 1 SR-Bank | Norway | spro | |
Spareskillingsbanken | Norway | spsk | |
Sparebanken Sør | Norway | spso | |
SpareBank 1 Sørøst-Norge (Telemark) | Norway | sptl | |
SpareBank 1 SMN | Norway | sptr | |
Swedbank | Norway | swed | |
SpareBank 1 Sørøst-Norge (BV) | Norway | vefo | |
SpareBank 1 Søre Sunnmøre | Norway | vold | |
Voss Sparebank | Norway | vosk | |
Kutxabank | Spain | bask | |
BBVA | Spain | bbva | |
Bankinter | Spain | bkbk | |
Banco Sabadell | Spain | bsab | |
Banco Santander | Spain | bsch | |
ABANCA | Spain | cagl | |
CaixaBank | Spain | caix | |
Ibercaja | Spain | cazr | |
ING | Spain | ingd | |
Danske Bank | Sweden | daba | |
Länsförsäkringar | Sweden | ellf | |
SEB | Sweden | esse | |
FOREX | Sweden | forx | |
Handelsbanken | Sweden | hand | |
ICA Banken | Sweden | ibca | |
Nordea | Sweden | ndea | |
Skandiabanken | Sweden | skia | |
Sparbanken Syd | Sweden | ssyd | |
Swedbank & Sparbankerna | Sweden | swed | |
Santander UK | United Kingdom | abby | |
Barclays | United Kingdom | barc | |
Bank of Scotland | United Kingdom | bofs | |
Clydesdale Bank | United Kingdom | clyd | |
The Co-operative Bank | United Kingdom | cpbk | |
Danske Bank | United Kingdom | daba | |
First Direct | United Kingdom | hbuk | |
HSBC UK Business Banking | United Kingdom | hbuk | |
Halifax | United Kingdom | hlfx | |
Lloyds Bank | United Kingdom | loyd | |
HSBC UK | United Kingdom | midl | |
Monzo | United Kingdom | monz | |
Metro Bank | United Kingdom | mymb | |
Nationwide | United Kingdom | naia | |
Virgin One Account | United Kingdom | nrnb | |
NatWest | United Kingdom | nwbk | |
NatWest International | United Kingdom | nwbk | |
NatWest One Account | United Kingdom | nwbk | |
Royal Bank of Scotland | United Kingdom | rbos | |
The One Account | United Kingdom | rbos | |
Revolut | United Kingdom | revo | revolt21 |
Starling Bank | United Kingdom | srlg | |
TSB Bank | United Kingdom | tsbs | |
Ulster Bank | United Kingdom | ulsb |
These 4 banks have country-specific bank logos
Bank | Country | Bank Code in URL |
---|---|---|
Erste Sparkasse George | Austria | /at/giba |
ING | Austria | /at/ingb |
Nordea | Estonia | /ee/ndea |
Česká spořitelna | Czech Republic | /cz/giba |
Sbanken | Norway | /no/skia |
Their URL has an additional path, eg /at/ followed by the bank code, for example, to get the regular logo for ING Austria the URL is:
https://assets.trustly.com/checkout/logos/banks/country/at/ingb/regular.png