The Trustly Recurring Payments solution (formerly UK Direct Debit) allows you to process recurring payments and subscriptions directly from a customer’s bank account within the United Kingdom (UK). This robust, convenient method for subscription billing often results in significantly reduced payment processing costs compared to card networks.
This product is powered by the Trustly European platform. While it can be accessed by North American merchants, the integration endpoints and authentication flows may differ from standard North American recurring payments. Contact your Implementation Manager for the correct European API credentials.
Trustly Recurring Payments is a restricted product. To use this feature, the customer must be located in the United Kingdom (GB), Guernsey (GG), Jersey (JE), or Gibraltar (GI).
To set up a Direct Debit Instruction (DDI), you must pass specific information in the request object when calling the API.
The customer’s email and physical address must be provided.
In compliance with the General Data Protection Regulation (GDPR), do not send the customer’s telephone number. While the API may not validate this field in real-time, omitting mandatory address data forces the user to manually enter it at checkout, and this lowers conversion.
The MerchantReference field is mandatory and must be unique for each mandate. It must adhere to the following BACS (Bankers’ Automated Clearing Service) rules:
The following are the requirements for fixed, predictable subscription payments:
AutomaticCapture parameter must be set to true.The following diagram illustrates the five-day BACS cycle workflow.
The following are the requirements for processing payments with variable amounts:
If a transaction fails (usually due to insufficient funds), you can attempt a representment.
The following diagram illustrates the workflow for failed payment representment.
To import existing mandates, complete the following tasks:
You’ll receive a notification for each transaction processed during the import.
Use these API calls to manage your Recurring Payments mandates.
The following documentation links reference the Trustly European API standard. Ensure you are authenticated against the European endpoints.
The following table lists the response types and reason codes used to indicate the status or reason for a transaction or mandate failure.
You must enable Event Notifications to retrieve status updates on mandates and transactions. See Event notifications.