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
To fetch a bank logo, follow these steps:
-
Find the bank in the table below (make sure it's for the correct country).
-
Copy the country code (ISO 3166-1 alpha-2 standard) and bank code and insert it into the Assets URL under
[country_code/bank_code]
, choosing the regular or round bank logo.
Assets URL for the bank logos:
Regular: https://assets.trustly.com/checkout/logos/banks/[country_code/bank_code]/regular.png
Round: https://assets.trustly.com/checkout/logos/banks/[country_code/bank_code]/round.png
For example, to get the round bank logo for Nordea in Finland , take the country code and bank code (fi/ndea) and insert it into the URL for round logos. The result is:
<https://assets.trustly.com/checkout/logos/banks/fi/ndea/round.png>
Below is a list of all available banks, and the country code / bank code to use in the URL:
Bank | Country | Country Code / Bank Code in URL |
---|---|---|
Bank Austria | Austria | at/bkau |
bank99 (ex-ING) | Austria | at/ingd |
BAWAG P.S.K. | Austria | at/bawa |
Easybank | Austria | at/easy |
Erste Sparkasse George | Austria | at/giba |
N26 | Austria | at/ntsb |
Raiffeisen | Austria | at/rlnw |
Volksbank | Austria | at/vboe |
Česká spořitelna | Czech Republic | cz/giba |
Alm. Brand | Denmark | dk/almb |
Arbejdernes Landsbank | Denmark | dk/alba |
Danske Bank | Denmark | dk/daba |
Djurslands Bank | Denmark | dk/djur |
Handelsbanken | Denmark | dk/hand |
Jyske Bank | Denmark | dk/jyba |
Kreditbanken | Denmark | dk/aakr |
Nordea | Denmark | dk/ndea |
Nordfyns Bank | Denmark | dk/nsbk |
Nordjyske Bank | Denmark | dk/eban |
Nykredit Bank | Denmark | dk/nykb |
Ringkjøbing Landbobank | Denmark | dk/ring |
SEB | Denmark | dk/esse |
Skjern Bank | Denmark | dk/skjb |
Spar Nord Bank | Denmark | dk/spno |
Sparekassen Danmark | Denmark | dk/vraa |
Sparekassen Sjælland-Fyn | Denmark | dk/swes |
Swedbank | Denmark | dk/swed |
Sydbank | Denmark | dk/sybk |
Vestjysk Bank | Denmark | dk/veho |
Citadele | Estonia | ee/parx |
Coop Pank | Estonia | ee/ekrd |
Danske Bank | Estonia | ee/fore |
LHV Pank | Estonia | ee/lhvb |
Luminor | Estonia | ee/riko |
Nordea | Estonia | ee/ndea |
Revolut | Estonia | ee/revo |
SEB | Estonia | ee/eeuh |
Swedbank | Estonia | ee/haba |
Aktia | Finland | fi/hels |
Danske Bank | Finland | fi/daba |
Handelsbanken | Finland | fi/hand |
Nordea | Finland | fi/ndea |
OP | Finland | fi/okoy |
OmaSp | Finland | fi/omsp |
POP Pankki | Finland | fi/popf |
Revolut | Finland | fi/revo |
S-Pankki | Finland | fi/sban |
Säästöpankki | Finland | fi/itel |
Ålandsbanken | Finland | fi/aaba |
Comdirect | Germany | de/comd |
Commerzbank | Germany | de/coba |
DAB Bank | Germany | de/dabb |
DKB - Deutsche Kreditbank | Germany | de/byla |
Deutsche Bank | Germany | de/deut |
Fidor Bank | Germany | de/fddo |
HypoVereinsbank | Germany | de/hyve |
ING-DiBa | Germany | de/ingd |
N26 | Germany | de/ntsb |
Norisbank | Germany | de/nors |
Postbank | Germany | de/pbnk |
Revolut | Germany | de/revo |
Santander | Germany | de/bsch |
Sparda-Bank | Germany | de/geno |
Sparkasse | Germany | de/sskn |
Targobank | Germany | de/cmci |
Volksbank-Raiffeisenbank | Germany | de/volk |
Citadele | Latvia | lv/parx |
Luminor | Latvia | lv/riko |
Revolut | Latvia | lv/revo |
SEB | Latvia | lv/unla |
Swedbank | Latvia | lv/haba |
Citadele | Lithuania | lt/indu |
Luminor | Lithuania | lt/agbl |
Revolut | Lithuania | lt/revo |
SEB | Lithuania | lt/cbvi |
Swedbank | Lithuania | lt/haba |
Šiaulių bankas | Lithuania | lt/cbsb |
ABN AMRO | Netherlands | nl/abna |
ASN Bank | Netherlands | nl/asnb |
ING | Netherlands | nl/ingb |
Knab | Netherlands | nl/knab |
Rabobank | Netherlands | nl/rabo |
Regio Bank | Netherlands | nl/rbrb |
SNS Bank | Netherlands | nl/snsb |
Triodos | Netherlands | nl/trio |
BN Bank ASA | Norway | no/kbno |
DNB | Norway | no/dnba |
Danske Bank | Norway | no/daba |
Etne Sparebank | Norway | no/etne |
Fana Sparebank | Norway | no/fana |
Flekkefjord Sparebank | Norway | no/flek |
Handelsbanken | Norway | no/hand |
Haugesund Sparebank | Norway | no/haug |
KLP Banken | Norway | no/klpk |
Landkreditt Bank AS | Norway | no/land |
Lillesands Sparebank | Norway | no/lill |
Luster Sparebank | Norway | no/lusk |
Nordea | Norway | no/ndea |
Nordea Direct | Norway | no/gjas |
OBOS-banken AS | Norway | no/obos |
Pareto Bank ASA | Norway | no/ptaa |
Sbanken | Norway | no/sbak |
Skandiabanken | Norway | no/skia |
Skudenes & Aakra Sparebank | Norway | no/skaa |
SpareBank 1 | Norway | no/snow |
SpareBank 1 Gudbrandsdal | Norway | no/sgfs |
SpareBank 1 Hallingdal Valdres | Norway | no/haal |
SpareBank 1 Lom og Skjåk | Norway | no/losk |
SpareBank 1 Modum | Norway | no/modu |
SpareBank 1 Nordmøre | Norway | no/norv |
SpareBank 1 Ringerike Hadeland | Norway | no/riri |
SpareBank 1 SMN | Norway | no/sptr |
SpareBank 1 SR-Bank | Norway | no/spro |
SpareBank 1 Søre Sunnmøre | Norway | no/vold |
SpareBank 1 Sørøst-Norge (BV) | Norway | no/vefo |
SpareBank 1 Sørøst-Norge (Telemark) | Norway | no/sptl |
SpareBank 1 Østfold Akershus | Norway | no/rygs |
SpareBank 1 Østlandet | Norway | no/shed |
Sparebanken Møre | Norway | no/spar |
Sparebanken Sogn og Fjordane | Norway | no/sofj |
Sparebanken Sør | Norway | no/spso |
Sparebanken Vest | Norway | no/spav |
Sparebanken Øst | Norway | no/spoe |
Spareskillingsbanken | Norway | no/spsk |
Swedbank | Norway | no/swed |
Søgne og Greipstad Sparebank | Norway | no/sogs |
Voss Sparebank | Norway | no/vosk |
Alior Bank | Poland | pl/albp |
BNP Paribas | Poland | pl/ppab |
Bank Pekao | Poland | pl/pkop |
Bank Pocztowy | Poland | pl/pocz |
Citi Handlowy | Poland | pl/citi |
Credit Agricole | Poland | pl/agri |
Deutsche Bank Polska | Poland | pl/deut |
Getin Bank | Poland | pl/gbgc |
ING Bank Śląski | Poland | pl/ingb |
Inteligo | Poland | pl/ingo |
Millennium Bank | Poland | pl/bigb |
Orange Finanse | Poland | pl/brex |
PKO Bank Polski | Poland | pl/bpko |
Santander | Poland | pl/wbkp |
ABANCA | Spain | es/cagl |
BBVA | Spain | es/bbva |
Banco Popular | Spain | es/popu |
Banco Sabadell | Spain | es/bsab |
Banco Santander | Spain | es/bsch |
Bankia | Spain | es/cahm |
Bankinter | Spain | es/bkbk |
CaixaBank | Spain | es/caix |
EVO Banco | Spain | es/evob |
ING | Spain | es/ingd |
Ibercaja | Spain | es/cazr |
Kutxabank | Spain | es/bask |
Danske Bank | Sweden | se/daba |
FOREX | Sweden | se/forx |
Handelsbanken | Sweden | se/hand |
ICA Banken | Sweden | se/ibca |
Länsförsäkringar | Sweden | se/ellf |
Nordea | Sweden | se/ndea |
SEB | Sweden | se/esse |
Skandiabanken | Sweden | se/skia |
Sparbanken Syd | Sweden | se/ssyd |
Swedbank (& Sparbankerna) | Sweden | se/swed |
Ålandsbanken | Sweden | se/aaba |
AIB | United Kingdom | gb/aibk |
Alpha FX | United Kingdom | gb/apah |
Arbuthnot Latham | United Kingdom | gb/arbu |
Bank of Ireland UK | United Kingdom | gb/bofi |
Bank of Scotland | United Kingdom | gb/bofs |
Barclays | United Kingdom | gb/barc |
C. Hoare & Co. | United Kingdom | gb/hoab |
Cash Plus | United Kingdom | gb/apsf |
Cater Allen | United Kingdom | gb/cate |
Chase UK | United Kingdom | gb/chas |
Chelsea Building Society | United Kingdom | gb/chel |
Citibank | United Kingdom | gb/citi |
Clydesdale Bank | United Kingdom | gb/clyd |
Coutts | United Kingdom | gb/cout |
Danske Bank | United Kingdom | gb/daba |
First Direct | United Kingdom | gb/hbuk |
HSBC UK | United Kingdom | gb/midl |
Halifax | United Kingdom | gb/hlfx |
ICICI Bank UK | United Kingdom | gb/icic |
Investec | United Kingdom | gb/ives |
Kleinwort Hambros | United Kingdom | gb/hamb |
Lloyds Bank | United Kingdom | gb/loyd |
MBNA | United Kingdom | gb/mbna |
Metro Bank | United Kingdom | gb/mymb |
Monzo | United Kingdom | gb/monz |
NatWest | United Kingdom | gb/nwbk |
Nationwide | United Kingdom | gb/naia |
Revolut | United Kingdom | gb/revo |
Royal Bank of Scotland | United Kingdom | gb/rbos |
Santander UK | United Kingdom | gb/abby |
Silicon Valley Bank UK | United Kingdom | gb/svbk |
Starling Bank | United Kingdom | gb/srlg |
TSB Bank | United Kingdom | gb/tsbs |
Tesco Bank | United Kingdom | gb/tpfg |
The Co-operative Bank | United Kingdom | gb/cpbk |
The Cumberland | United Kingdom | gb/cmbs |
Tide | United Kingdom | gb/clrb |
Ulster Bank | United Kingdom | gb/ulsb |
Vanquis Bank | United Kingdom | gb/vqis |
Virgin Money UK | United Kingdom | gb/nrnb |
Wise | United Kingdom | gb/trwi |
Yorkshire Bank | United Kingdom | gb/york |
Yorkshire Building Society | United Kingdom | gb/yorb |