iStatus.success
GPEnvironment.test
GPButtonColor.white
GPButtonType.buy
GPButtonSizeMode.full
GPBillingAddressFormat.min
merchantInfo
onGPButtonLoaded
onGetTransactionInfo
onBeforeProcessPayment
onProcessPayment
onPaymentCanceled
environment
billingParameters
shippingParameters
buttonOptions
merchantName
TEST
environment, or if a merchant isn't recognized, a “Pay Unverified Merchant” message is displayed in the payment sheet.status
status = iStatus.success
status = iStatus.unsupported
status = iStatus.error
reason
transactionId
allowedAuthMethods
["PAN_ONLY", "CRYPTOGRAM_3DS"]
From Google documentation:
Fields supported to authenticate a card transaction.PAN_ONLY
: This authentication method is associated with payment cards stored on file with the user's Google Account. Returned payment data includes personal account number (PAN) with the expiration month and the expiration year.CRYPTOGRAM_3DS
: This authentication method is associated with cards stored as Android device tokens. Returned payment data includes a 3-D Secure (3DS) cryptogram generated on the device.allowedCardNetworks
["AMEX", "DISCOVER", "MASTERCARD", "VISA"]
From Google documentation:
One or more card networks that you support, also supported by the Google Pay API.AMEX
DISCOVER
INTERAC
JCB
MASTERCARD
VISA
assuranceDetailsRequired
true
to request assuranceDetails
. This object provides information about the validation performed on the returned payment data.billingAddressRequired
true
if you require a billing address. A billing address should only be requested if it's required to process the transaction.billingAddressFormat
MIN
: Name, country code, and postal code (default).FULL
: Name, street address, locality, region, country code, and postal code.phoneNumberRequired
true
if a phone number is required to process the transaction.onGetShippingOptions
your
function that returns a list of shipping options.
For an example - please see belowonGetShippingCosts
your
function that returns a list of shipping costs.
For an example - please see belowshippingAddressRequired
true
to request a full shipping address..emailRequired
true
to request an email address.phoneNumberRequired
true
if a phone number is required for the provided shipping address.allowedCountryCodes
US
only.shippingAddress
countryCode
, postalCode
, locality
(city), administrativeArea
(state).postalCode
countryCode
locality
administrativeArea
id
buttonColor
default
: A Google-selected default value. Currently black
but it may change over time (default).black
: A black button suitable for use on white or light backgrounds.white
: A white button suitable for use on colorful backgrounds.buttonType
buy
: "Buy with Google Pay" button (default).donate
: "Donate with Google Pay" button.plain
: Google Pay button without additional text.buttonSizeMode
static
: Button has a static width and height (default).fill
: Button size changes to fill the size of its container.