iOS SDK
Create a customised payment and mandate experience with TrueLayer's iOS SDK.
With the TrueLayer SDK for iOS, you can quickly add open banking payments or mandates to your app. Our iOS SDK integrates with TrueLayer's Payments API, making it simple to get up and running.
The SDK presents native screens that allow your users to select their bank and consent to the payment. The user is then redirected to their banking app or website to authorise the payment. It also handles the network requests and errors, and gives you options to customise the user interface.
If there is an issue meaning that the iOS SDK isn’t available, it falls back to the HPP in a web view to ensure a payment is always possible.
Compatibility
The SDK is currently optimised for the UK, Ireland, France, Germany, Spain, the Netherlands, and Lithuania. Beta testers can also use the iOS SDK for banks in Austria, Belgium, Finland, Poland and Portugal. The user interface can be displayed in English, Spanish, French, German, Dutch, Portuguese, Finnish, Polish and Lithuanian.
At a minimum, the SDK requires:
- iOS 13.0
- Xcode 13
- Swift 5.6
Payment and mandate authorisation journey
When a customer makes a payment or creates a mandate through your iOS SDK integration:
- The user selects Pay By Bank.
- Your app creates a payment on the backend side.
- Your backend integration creates a payment or mandate and gets an
id
andresource_token
back.
If you includesignup_plus
inrelated_products
at payment creation, the authorisation flow changes to reflect this. - Your app uses the
id
andresource_token
back and initialises the SDK. - Your user selects and confirms their provider on the provider selection screen. If the bank needs additional information from the user, such as IBAN or branch, then the SDK asks the user to enter these. Additionally:
- If a bank is unavailable it's greyed out on the provider selection screen, so the user can attempt to use a different bank.
- If your user is paying internationally from certain French or Finnish banks, a screen displays that explains how to enable international payments.
- If paying via a European provider that supports it, the user can select to pay with Sepa Instant or Sepa Credit.
- The SDK redirects your user to their bank's website or app.
- Your user authorises the payment or mandate in their bank's website or app.
- Once the authorisation is complete, the bank redirects the user to your redirect URL.
Mandate authorisation UI differences
When a user is authorising a mandate through the iOS SDK, the user interface includes options for them to:
- Learn more about how mandates work and what data is shared.
- The constraints that apply to the mandate, such as its duration, and the payment limits.
Updated 4 months ago
Learn how to authorise a payment or mandate with the iOS SDK, or how to customise your integration.