Google Pay Util
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
google Pay Request
information about price, your store name and your merchantId in Tpay system
google Pay Environment
google pay environment that you want to use
custom Request Code
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
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