The Trustly Checkout needs to be rendered in web context which gives you two options for a native mobile application: using a WebView or an In App Browser.
A WebView allows you render web content inside your application in a more seamless way.
Due to WebView’s blocking some browser functionally that the Checkout depends on, e.g. allow opening of third party applications, you need to use on of Trustly SDK’s / Plugins if you want to use a WebView.
In App Browser
A In App Browser looks and acts acts like a regular browser but is presented within your native app. It does not give the same control as a WebView does and is simpler to implement.
Reminder: URLScheme Please note that when rendering the Trustly Checkout from a native app you are required to pass your application's URLScheme as an attribute to the order initiation request. By doing so, Trustly can redirect users back to your app after using external identification apps such as Mobile BankID:
- It's important that the "URLScheme" attribute is only sent if the order is triggered by users from within the app.
- For any other transaction instances (ex. desktop or interaction via mobile browser directly) the "URLScheme" attribute must not be included.
Updated 12 days ago