urlScheme
required for this integration. When passing this value, we will forward this to Trustly, as well
as the integrationContext
, allowing for your integration to listen to webhooks.
In short, the flow would be as follows.
urlScheme = "YOUR_APP://SOME_RESOURCE"
property to our API.approval_url
provided from our API into your applications webview.urlScheme
as well as the right integrationContext
to the establishData
as defined in the Trustly guide.window.Trustly.proceedToChooseAccount();
on the webview as defined in the guide.payment_source
(either recurring
or card_on_file
)
and the merchant_initiated
and is_subsequent_payment
flags are set to false
. This will ensure a customer-present flow is
triggered and a payment method is created that keeps track of Trustly’s “split token”.
payment_source
(either recurring
or card_on_file
)
and the merchant_initiated
and is_subsequent_payment
flags are set to true
. This will ensure a customer-not-present flow is
triggered with the stored split token.
refreshSplitToken
on a new customer-present transaction. It is important in this request to
set a redirect_url
to redirect the user back to your site after they have approved the transaction.