#crow-paymentelement-wallet
1 messages ยท Page 1 of 1 (latest)
@quiet palm Apple Pay and Google Pay are card wallets so they appear as type: 'card' in this API
On this page https://stripe.com/docs/payments/payment-element
it displays a section for google pay, how do I add this payment type? Its not referencing a card
What does "add this payment type" mean though? What's not working?
As a developer you can't control this type as a PaymentMethod, this appears because card is enabled
crow-paymentelement-wallet
Google pay tab is not displaying, even when I add the card type.
I'd like to add the options highlighted in the image to my stripe elements UI. What option do I select to enable the google pay tab? I have added 'card' to the paymentMethodTypes and it is still not displaying.
Did you enable Google Pay in your account settings and are you using HTTPS when loading that page?
where under the account settings do I have to enable this? and yes I am using https.
yes they are enabled, I still don't see them
this is what my payment element looks like
paymentMethodOrder: ['apple_pay', 'google_pay', 'card'],
fields: {
billingDetails: 'never',
},
wallets: {
applePay: 'auto',
googlePay: 'auto',
},
});```
Do you have a URL I can look at?
not sure I can do that while still developing.. any other ways to diagnose?
i can let you see when I log the payments object
can you share an exact PaymentIntent id?
I am creating the element before the payment intent
this.elements = this.stripe?.elements({
mode: 'setup',
paymentMethodCreation: 'manual',
paymentMethodTypes: ['card'],
setupFutureUsage: 'off_session'
});
Which exact docs are you following?
https://stripe.com/docs/payments/customize-payment-methods
and
another one that I can't find.
All I am trying to do is enable google pay on stripe payment elements
https://stripe.com/docs/stripe-js/elements/payment-request-button what do you see when you load that page?
Hey karbi, I don't think that is what I want. I would like to be able to save the payment method to a customer.
To charge later, can you do that with apple and google pay through stripe?
saving that payment method to the customers account.
Please share a picture of what you see on that page I linked you to @quiet palm
I can see the buttons
see, that's the problem!
Your browser is not properly configured for Google Pay. Your code isn't the issue
wait how can you tell by that image
the thing at the top in yellow saying Caution
that's why I sent you to that page. That confirms your current browser is not properly configured for Google Pay
if you visit chrome://settings/payments does it say GPay next to that card?
no
๐ hopping in here since koopajah has to head out - let me catch up
Do you have any payment methods setup at https://pay.google.com/gp/w/u/0/home/paymentmethods
and you're not in incognito mode, right?
and you have the google setting enabled at chrome://settings/payments that says "Allow sites to check if you have payment methods saved"?
Can you remove that test card?
yes
and when you go to https://rsolomakhin.github.io/pr/gp2/ what does it say?
it is working when I click the buy button, do I have to go all the way throught?
Can make payment
No enrolled instrument
I restarted my broswer and that error went away
Interesting....
well I'm glad that it's working now! ๐
google pay can be a little finnicky at times
thank you so much, I still have more questions should we start a new thread?
If you have more questions you can just ask them here
@quiet palm did you have more questions?