Input fields describing the native application initiating the checkout.
cancel App UrlURLThe universal URL of the merchant's native app to which PayPal redirects the buyer after the buyer cancels the payment.
os TypePayOS of the buyer's device initiating the flow.
return App UrlURLThe universal URL of the merchant's native app to which PayPal redirects the buyer after the buyer approves the payment.
app UrlURLDeprecatedsince 2026-05-14Use returnAppUrl and cancelAppUrl instead for explicit control over return and cancel redirect URLs.
The universal merchant app URL used to redirect the buyer back to merchant's native app, either a Universal Link on iOS or an App Link on Android.
input PayPalAppSwitchNativeAppInput {
osType: PayPalAppSwitchOsType
osVersion: String
appUrl: URL @deprecated(reason: "Use returnAppUrl and cancelAppUrl instead for explicit control over return and cancel redirect URLs.")
returnAppUrl: URL
cancelAppUrl: URL
fallbackUrlScheme: String
}