#Mr.Yang

1 messages · Page 1 of 1 (latest)

woeful dawnBOT
valid stag
#

Hi there, what integration are you using? Checkout session or Payment Element?

dim pasture
#

PaymentIntent and subscriptions

valid stag
#

PaymentIntent and subscriptions are backend APIs. What's your frontend integration?

dim pasture
#

html

#

I want the user to add the payment address first, and the payment will be deducted automatically

valid stag
dim pasture
#

I want to add a google pay that automatically charges customers and payment_method when making a payment without requiring the user to enter a payment address

valid stag
#

Is your current integrating asking address?

dim pasture
#

When you create a payment, you have a default payment method so you don't need to fill it in.

valid stag
#

So you want to collect an apple pay/google pay payment_method first, and use it to create and confirm off_session payment_intents from backend?

dim pasture
#

yes

valid stag
#

You just need to set payment_method_types to ["card"], and Google Pay option will automatically appears in supported browsers for a page that's served from HTTPS.

dim pasture
#

There is no google pay when I add a payment method. How do I use it when I create a payment?

#

Again, google pay and apple pay only work on the web, not automatic deductions and subscriptions

valid stag
#

There is no google pay when I add a payment method -> Are you serving your page through HTTPs? Have you added a valid credit card to your Google Pay account?

dim pasture
#

Create a payment method without google pay for the type parameter

valid stag
#

Ah, you can't create a google pay payment_method programatically by using PaymentMethods API. You need to collect it from frontend via PaymentElement, PaymentRequestButton or Checkout page

dim pasture
#

Do you have to collect it here?

echo forum
#

It should automatically appear if you open the page in a Chrome browser logged in with a Google Account has set up GooglePay

#

(Also you need to enable GooglePay on your Stripe Account)

dim pasture
#

How does google pay show up automatically?