PaymentsUtil

Functions

Link copied to clipboard
fun createPaymentsClient(context: Context): PaymentsClient

Creates an instance of PaymentsClient for use in an Activity using the environment and theme set in Constants.

Link copied to clipboard
fun getBilling(payload: JSONObject): Billing?
Link copied to clipboard
fun getPaymentDataRequest(price: BigDecimal, countryCode: String, currency: String, googlePayOptions: GooglePayOptions, supportedCardSchemes: List<CardScheme>?): JSONObject?

An object describing information requested in a Google Pay payment sheet

Link copied to clipboard
fun isReadyToPayRequest(googlePayOptions: GooglePayOptions, supportedCardSchemes: List<CardScheme>?): JSONObject?

An object describing accepted forms of payment by your app, used to determine a viewer's readiness to pay.