GooglePayHelper

class GooglePayHelper(val project: Project, val context: Context)

Class for interfacing with google pay

Constructors

Link copied to clipboard
constructor(project: Project, context: Context)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Checks if google pay is available on the snabble backend

Link copied to clipboard
fun isReadyToPay(isReadyToPayListener: IsReadyToPayListener)

Checks if google pay is ready to make a payment

Link copied to clipboard
fun loadPaymentData(priceToPay: String, activity: Activity, requestCode: Int): Boolean

Starts a payment data request to google pay

Link copied to clipboard
fun onActivityResult(resultCode: Int, data: Intent?)
Link copied to clipboard
fun requestPayment(priceToPay: Int): Boolean

Starts a payment request with google pay

Link copied to clipboard