- Make sure that you have completed Sign up and received a Trustly test account.
- If you have a native app implementation, integrate Trustly SDKs.
Use the Deposit API method to accept a payment.
In a typical Deposit flow:
- Your customer selects Trustly as the payment option in your webshop.
- Your system sends a Deposit request to Trustly's API.
- Trustly responds with a URL (The Trustly Checkout URL) and an
OrderIDwhich is Trustly's order number.
- Your system redirects the customer to the Trustly Checkout URL where they log in to their bank and authorize the payment.
- The customer will be redirected from the Trustly checkout to the
SuccessURLspecified in the Deposit API call.
- Depending on the outcome, Trustly may send these notifications:
- Cancel notification if the payment process is aborted.
- Pending notification when the customer has completed the payment process in the Trustly Checkout.
- Account notification to provide you with information about the bank account used for this payment.
- Credit notification when the transaction is confirmed. This is when you should deliver the ordered goods to the customer.
- Debit notification if an unexpected error occurs and the money is not received from the customer even after the credit notification is sent.
Note: The pending, credit and account notifications can arrive in any order. The Account notification is not enabled by default. Contact Trustly Integration Support if you would like to receive it.
- Your system responds to the received notifications.
Develop business logic according to the deposit flow.
- Make sure that your integration follows security requirements. See Security.
- When a customer chooses Trustly in your checkout, your system calls the Deposit method.
- Integrate Trustly Express. See Trustly Express API.
- When Trustly's API responds with a URL, your system presents the URL to the customer to select a bank for making the Deposit.
- Make sure that your integration logs and handles error codes that are returned from API calls. See Error handling.
- Make sure that your integration responds correctly to notifications that Trustly may send out.
When your integration presents a Trustly URL to customers, the presentation must follow Trustly checkout guidelines.
Prior to going live, the Trustly Integration Specialist will perform Acceptance testing. Make sure your integration has passed all test cases, including:
- Deposit API calls
- Built-in test cases of acceptance testing: D1 to D5, and G1 to G3.
- Verify that your integration has the correct responses to notifications. See Notification tool.
Follow the instructions to go live.
Updated 5 months ago