GooglePayUtil

class GooglePayUtil(activity: Activity, googlePayRequest: GooglePayRequest, googlePayEnvironment: GooglePayEnvironment = GooglePayEnvironment.PRODUCTION, customRequestCode: Int? = null)

Class providing utils for Google Pay

Parameters

activity

activity used to receive onActivityResult

googlePayRequest

information about price, your store name and your merchantId in Tpay system

googlePayEnvironment

google pay environment that you want to use

customRequestCode

alternative request code that will be used to manage Google Pay data

Constructors

Link copied to clipboard
fun GooglePayUtil(activity: Activity, googlePayRequest: GooglePayRequest, googlePayEnvironment: GooglePayEnvironment = GooglePayEnvironment.PRODUCTION, customRequestCode: Int? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Function responsible for checking if Google Pay is available

Link copied to clipboard
fun handleActivityResult(requestCode: Int, resultCode: Int, data: Intent?, result: (OpenGooglePayResult) -> Unit)

Method responsible for handling activity result with customRequestCode or GOOGLE_PAY_SCREENLESS_REQUEST_CODE code. Use this method on the same object that method openGooglePay was called.

Link copied to clipboard

Method responsible for starting the Google Pay module