PayPalWebCheckoutRequest
data class PayPalWebCheckoutRequest @JvmOverloads constructor(val orderId: String, val fundingSource: PayPalWebCheckoutFundingSource = PayPalWebCheckoutFundingSource.PAYPAL, val appSwitchWhenEligible: Boolean = false, val appLinkUrl: String? = null, val fallbackUrlScheme: String? = null)
Creates an instance of a PayPalRequest.
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.
Constructors
Link copied to clipboard
constructor(orderId: String, fundingSource: PayPalWebCheckoutFundingSource = PayPalWebCheckoutFundingSource.PAYPAL, appSwitchWhenEligible: Boolean = false, appLinkUrl: String? = null, fallbackUrlScheme: String? = null)