Skip to main content
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, opening urlScheme, passed to PrimerSettings (via PrimerPaymentMethodOptions) If the payment method opens a third-party banking app through a deep link, the customer may not return to the web view. Get the payment outcome from payment webhooks rather than relying on the checkout callbacks.

Set up redirects

Add the following to your AppDelegate.swift or SceneDelegate.swift
SWIFT