Handling redirects is required for Payment Methods that present a webpage for the customer to enter their credentials and validate their payment. When the user selects such a Payment Method, Universal Checkout will show the webpage in a web view, and then return to the merchant app. This optionally triggers a deep link, openingDocumentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
urlScheme, passed to PrimerSettings (via PrimerPaymentMethodOptions)
This however does not work properly in the following scenario:
- The Payment Method opens a third-party banking app like Revolut through deep linking
Set up redirects
Add the following to yourAppDelegate.swift or SceneDelegate.swift
SWIFT