Skip to content

Trustly

Info

Confirm the supported currencies and countries with your manager.

This alternative payment method supports the following operations:


Payment

Request

Send a payment request with the following additional data:

Parameter Type Description
method object A section of the payment method information.
type * required
string trustly
party_type * required
string The customer's type (PERSON or ORGANISATION).
customer object A section of the customer details.
first_name * required
string The customer's first name.
last_name * required
string The customer's last name. Required, if the party_type parameter is set to PERSON).
country * required
string The customer's country code.
email string The customer's email address.
phone string The customer's phone number.
address string The customer's address.
birth_date string The customer's date of birth in the YYYY-MM-DD format.
Response

The trustly response section will have the parameters copied from the request, as well as the form section with parameters to build a form. You should redirect the customer to the form to finalize the payment.


Refund

Request

To refund a payment done via Trustly, send a request to refund money.

Response

The trustly response section will have the parameters copied from the request.


Payout

Request

Send a payout request with the following additional data:

Parameter Type Description
method object A section of the payment method information.
type * required
string trustly
customer object A section of the customer details.
first_name * required
string The customer's first name.
last_name * conditionally required
string The customer's last name (optional when the party_type parameter is set to ORGANISATION).
country * required
string The customer's country code.
email * required
string The customer's email address.
phone * required
string The customer's phone number.
birth_date * required
string The customer's date of birth in the YYYY-MM-DD format.
Response

The trustly response section will have the parameters copied from the request, as well as the form section with parameters to build a form. You should redirect the customer to the form to finalize the payout.