POGooglePayCardTokenizationLauncher

Launcher that starts Google Pay payment sheet for card tokenization and provides the result.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun isReadyToPay(isReadyToPayRequestJson: JSONObject): Boolean

Allows to check Google Pay API readiness before showing the Google Pay button. Follow tutorial to create isReadyToPayRequestJson.

Link copied to clipboard
fun launch(paymentDataRequestJson: JSONObject)

Loads payment data for the given request and shows Google Pay payment sheet. Follow tutorial to create paymentDataRequestJson.