Recurring Payments (UK Direct Debit)
Recurring Payments (UK Direct Debit)
The Trustly Recurring Payments solution allows North American merchants to process recurring payments and subscriptions directly from consumer bank accounts within the United Kingdom (UK). This workflow leverages the UK’s BACS Direct Debit network, providing a low-cost, high-stability billing channel for international subscription models.
Looking for North American recurring payments? If your business needs to process recurring bank debits from customers located inside the United States or Canada, use Trustly Pay with the paymentType: 'Deferred' parameter. You do not need to follow this guide.
This product uses the Trustly European platform architecture. While accessible to North American merchants, the integration endpoints, transaction cycles, and authentication flows differ significantly from standard North American payment workflows. Contact your Implementation Manager for the correct European API credentials.
Geographic restrictions
To utilize this cross-border track, the end customer authorizing the payment mandate must hold a bank account located in one of the following jurisdictions:
- United Kingdom (GB)
- Guernsey (GG)
- Jersey (JE)
- Gibraltar (GI)
Required fields and format
To set up a Direct Debit Instruction (DDI), you must pass specific information in the request object when calling the API.
Mandatory customer and geolocation data
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.
Merchant reference requirements
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 core reference must be 6 to 13 characters long.
- Only uppercase alpha and numeric characters count toward the minimum 6-character length.
- The Data Dictionary (DDIC) codes must not be used in the first four characters (reserved for PSP use).
- It must not consist of all the same characters (e.g., “000000”).
- It must be left-justified within Field 10 of the DDI record.
- It must be unique for the Service User Number (SUN).
- You must include the payment schedule in the metadata.
Fixed recurring payments
The following are the requirements for fixed, predictable subscription payments:
- Lead Time: The initial payment date must be at least five days after the mandate is established. Mandates need up to five days for bank confirmation (BACS cycle).
- Auto-Capture: The
AutomaticCaptureparameter must be set totrue. - Cut-off Time: You can cancel a recurring transaction on the current day, but only before 8:30 PM GMT.
BACS cycle workflow
The following diagram illustrates the five-day BACS cycle workflow.
Variable payments
The following are the requirements for processing payments with variable amounts:
- Lead Time: The first capture cannot occur earlier than five days after the mandate is established.
- Notification: You must send an email notification to the user before calling the capture API. This email must clearly state the date and amount of the upcoming transaction.
- Confirmation: You must send an email confirmation to the user as soon as a mandate is successfully created.
Representment
If a transaction fails (usually due to insufficient funds), you can attempt a representment.
- You must enable representment in your configuration.
- You must define the retry interval (days between attempts).
- You must send an advanced notice email to the user before each retry.
- Limit: A failed transaction can be retried a maximum of two times.
- Window: The representment period is limited to 30 days from the initial failure.
Representment workflow
The following diagram illustrates the workflow for failed payment representment.
Import existing mandates
To import existing mandates, complete the following tasks:
- Create CSV files in the required format. Use the recommended naming convention.
- Send the file to your designated SFTP folder.
You’ll receive a notification for each transaction processed during the import.
API resources
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.
Expected responses
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.