# Trustly

## Overview

With Trustly, you can accept payments, issue payouts, and access valuable user insight data. Easy activation and multi-currency functionality give you the power to expand your business across borders with access to customers in Europe, Australia, Canada, and the US.

## Availability

Trustly is available for shoppers in the following countries:

* Austria
* Croatia
* Cyprus
* Czech Republic
* Denmark
* Estonia
* Finland
* Germany
* Latvia
* Lithuania
* Malta
* Netherlands
* Norway
* Spain
* Sweden
* United Kingdom

## Requirements

Make sure the billing country code is set to AT, CY, CZ, DE, DK, EE, ES, FI, GB, HR, LT, LV, MT, NL, SE.

## Supported currencies

* CZK
* DKK
* EUR
* GBP
* NOK
* SEK

## Workflow

1. Shoppers select Trustly as a payment option in the interface you provide to them.
2. Create the order object. Use TRUSTLY as the type of the `PaymentDetails` object, and include `ReturnURL`.
3. Use the **placeOrder** method to send the data to 2Checkout.
4. Once you place the order, 2Checkout logs it into the system. At this point in time, the status of the order is PENDING.
5. 2Checkout returns an order object as the output of the **placeOrder** method.&#x20;
6. Use the `PaymentMethod` object to create a redirect URL for the shoppers, concatenating the values of the Href and avng8apitoken parameters. Here's an example of the redirect URL:\
   [https://api.avangate.com/6.0/scripts...bc7fd72d008428](https://api.avangate.com/6.0/scripts/trustly/authorize/?avng8apitoken=1abc7fd72d008428)
7. After being redirected to Trustly, shoppers need to complete the steps of Trustly payment flow.
8. After customers enter their payment data to Trustly, Trustly notifies 2Checkout if the payment is approved, and the status of the order becomes *COMPLETE*.
9. Shoppers are redirected to the `RedirectURL` from the order information object. In case the payment fails, shoppers are redirected to the `CancelURL`.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.2checkout.com/payments/payments/payment-methods/trustly.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
