Trustly Payment Object

June 5, 2026 ยท View on GitHub

Information needed to pay using Trustly.

Structure

TrustlyPaymentObject

Fields

NameTypeTagsDescriptionGetterSetter
NameStringOptionalThe full name representation like Mr J Smith.

Constraints: Minimum Length: 3, Maximum Length: 300
String getName()setName(String name)
CountryCodeStringOptionalThe two-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is GB and not UK as used in the top-level domain names for that country. Use the C2 country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.

Constraints: Minimum Length: 2, Maximum Length: 2, Pattern: ^([A-Z]{2}|C2)$
String getCountryCode()setCountryCode(String countryCode)
EmailStringOptionalThe internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.

Constraints: Minimum Length: 3, Maximum Length: 254, Pattern: ^(?:[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$
String getEmail()setEmail(String email)
BicStringOptionalThe business identification code (BIC). In payments systems, a BIC is used to identify a specific business, most commonly a bank.

Constraints: Minimum Length: 8, Maximum Length: 11, Pattern: ^[A-Z-a-z0-9]{4}[A-Z-a-z]{2}[A-Z-a-z0-9]{2}([A-Z-a-z0-9]{3})?$
String getBic()setBic(String bic)
IbanLastCharsStringOptionalThe last characters of the IBAN used to pay.

Constraints: Minimum Length: 4, Maximum Length: 34, Pattern: [a-zA-Z0-9]{4}
String getIbanLastChars()setIbanLastChars(String ibanLastChars)

Example (as JSON)

{
  "name": "name6",
  "country_code": "country_code6",
  "email": "email0",
  "bic": "bic8",
  "iban_last_chars": "iban_last_chars4"
}