PayPalWebCheckoutRequest

constructor(orderId: String, fundingSource: PayPalWebCheckoutFundingSource = PayPalWebCheckoutFundingSource.PAYPAL, appSwitchWhenEligible: Boolean = false, appLinkUrl: String? = null, fallbackUrlScheme: String? = null)

Parameters

orderId

The ID of the order to be approved.

fundingSource

specify funding (credit, paylater or default)

appSwitchWhenEligible

whether to switch to the PayPal app when eligible

appLinkUrl

The app link URL to use for browser switch, or null to use default. Example values: "

$myAppScheme://$

myAppHost/

$myPath", "https://$

myDomain/$myPath"

fallbackUrlScheme

The fallback custom URL scheme to use when app link is not configured properly.