TrueLayer
Connect TrueLayer so approved customer withdrawals are paid automatically, instead of you paying each one by hand.
This guide sets up TrueLayer as your automatic payout provider. If you have not chosen a provider yet, start on the Payouts overview.
Before you start
You will need:
A TrueLayer account. Sign up with TrueLayer first and complete any checks they ask for. Payouts cannot work until your TrueLayer account is approved and your merchant account is funded.
Your TrueLayer credentials. You copy these from the TrueLayer Console into RaffleX. We list exactly which ones below.
A few minutes to test. Every new setup starts in a safe test mode so you can check the connection before any real money moves.
Step 1: Open the Payouts settings
Log in to your RaffleX admin panel.
In the left menu, go to Settings.
Open the Payouts page.
Set Payout Provider to TrueLayer (Automatic). The TrueLayer fields then appear.
When you have finished making changes on this page, always click Save Settings at the bottom.
Step 2: Enter your TrueLayer details
You get all of these from the TrueLayer Console, TrueLayer's own back office dashboard. All five are required for TrueLayer to work. The Name Match Threshold below is optional to change.
Client ID
Required
Your API client ID. In the Console, open your app and go to the Settings tab.
Client Secret
Required
Your API client secret, on the same Settings tab. Keep this private. TrueLayer only shows a secret once, so save it when you create it.
Signing Key ID
Required
Your request signing key ID, found in the Signing keys section of the Settings tab.
Signing PEM Key
Required
Your signing private key. Paste it in full, including the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- lines. If the key is incomplete, RaffleX will refuse to save and tell you what is wrong.
Merchant Account ID
Required
The TrueLayer merchant account that payouts are paid from. Find it on the Merchant account tab in the Console. It must hold enough funds to cover the payouts you make.
Name Match Threshold
TrueLayer also shows a Name Match Threshold (%) setting. This one is optional to change. It comes with a sensible default, so you can leave it exactly as it is and skip to the next step.
If you do want to adjust it: when TrueLayer checks a customer's bank details, it compares the account name to the customer's name and gives a match score. This setting is the lowest score you will accept.
The range is between 50 and 100.
The default is 70.
A higher number is stricter. Somewhere between 70 and 85 suits most sites. Set it higher if you want tighter checks, lower if genuine customers are being turned away too often.
Step 3: How and when payouts happen
These settings control whether payouts run and when you still need to step in.
Enable Automatic Payouts
The master on/off switch. Leave this off while you set up and test. Turn it on when you are ready for TrueLayer to start paying withdrawals.
Test Mode
On by default. While it is on, everything runs against the TrueLayer sandbox and no real money moves. Turn it off only when you are ready to go live.
Auto-Payout Max (GBP)
The largest withdrawal that is paid automatically. Anything at or below this amount goes through on its own. Anything above it waits for you to approve it by hand. Set it to 0 to approve every payout yourself.
Retry Max Attempts
How many times a failed payout is tried again automatically before it is handed to you to sort out. The default is 3.
Enable Manual Bank Details Fallback
On by default. If a customer's bank cannot be verified automatically, or their bank is not supported, this lets them enter their bank details by hand so you can still pay them the manual way.
Step 4: Test the connection
Once you have entered and saved your TrueLayer details, a Test Provider Connection button appears on the page.
Click Test Provider Connection.
RaffleX checks your credentials with TrueLayer and shows the result.
The result tells you whether you are in sandbox or live mode, and lists each check as a pass or a fail.
If anything fails, re-check the fields above. The most common causes are using sandbox credentials while in live mode (or the other way round), or a signing key that was not pasted in full.
Step 5: Go live
When your test connection passes and you are happy with your settings:
Turn Test Mode off.
Make sure your TrueLayer fields now hold your live credentials, not the sandbox ones.
Turn Enable Automatic Payouts on.
Click Save Settings.
Automatic payouts are now active. Approved withdrawals at or below your Auto-Payout Max will be paid by TrueLayer, and anything above it will still come to you for approval.
FAQ
Can I switch back to manual later?
Yes. Set Payout Provider back to Manual / Bank Transfer, or turn Enable Automatic Payouts off, and you are back to paying withdrawals by hand.
Will every withdrawal be paid automatically?
Only those at or below your Auto-Payout Max (GBP). Anything above that amount waits for you to approve it. If you set the max to 0, you approve every payout yourself.
What happens if a customer's bank details cannot be verified?
If you leave Enable Manual Bank Details Fallback on, the customer can enter their details by hand and you pay them the manual way. If you turn it off, only automatically verified payouts are allowed.
Last updated