LocalPaymentClient
class LocalPaymentClient
Used to integrate with local payments.
Constructors
Link copied to clipboard
Initializes a new LocalPaymentClient instance
Functions
Link copied to clipboard
fun buildBrowserSwitchOptions(localPaymentAuthRequestParams: LocalPaymentAuthRequestParams, hasUserLocationConsent: Boolean, callback: LocalPaymentAuthCallback)
Link copied to clipboard
Starts the payment flow for a LocalPaymentRequest and calls back a LocalPaymentAuthRequestParams on success that should be used to launch the user authentication flow.
Link copied to clipboard
fun tokenize(context: Context, localPaymentAuthResult: LocalPaymentAuthResult.Success, callback: LocalPaymentTokenizeCallback)
After receiving a result from the web authentication flow via LocalPaymentLauncher.handleReturnToApp, pass the LocalPaymentAuthResult.Success returned to this method to tokenize the local payment method and receive a LocalPaymentNonce on success.