.paymentRequestWithPayWithGoogle(options) -> Promise
Launch the Pay With Google view to accept payment.
It will aggregate data from Android Pay and all credit cards from available google accounts.
options
— An object with the following keys:
Key | Type | Required? | Description |
---|---|---|---|
price | String | Required | Total price of the item. The price provided to the API should include taxes and shipping. |
phoneNumberRequired | Bool | Optional | Should we ask user for phone number? |
emailRequired | Bool | Optional | Should we ask user for email? |
shippingAddressRequired | Bool | Optional | Should we ask user for shipping address? |
const options = {
price: '100.00',
phoneNumberRequired: false,
emailRequired: false,
shippingAddressRequired: false,
}
const token = await stripe.paymentRequestWithPayWithGoogle(options)
// Client specific code
// api.sendTokenToBackend(token)