#Emmanuel G.
1 messages · Page 1 of 1 (latest)
Hi there, is this a question about setting up Apple Pay/Google Pay payment method through PaymentElement for off_session usage?
ya
Also what is the type returned from the payment element in stripe js when apple pay or google pay is selected.
The payment method type is still card, and you can find out the wallet info via the card.wallet hash (https://stripe.com/docs/api/payment_methods/object?lang=php#payment_method_object-card-wallet)
I think I wordered that question wrong. So currently I disable a certain feature in my app if card isn't selected, but I want it available for apply pay and google pay. I realized though that it gets disabled when those are selected on the payment element, which tells me that the type returned in the StripePaymentElementChangeEvent is no longer set to card. However I cant test this locally since apply pay only works with registered domains
so i would assume that it actually returns "apple_pay" or "google_pay" in StripePaymentElementChangeEvent for apple pay and google pay
...
Thanks for the waiting.
I just tested it out at my end. Yes the type would be google_pay when customer selected Google Pay.
cool. Also to make sure, if off_session if applied to the payment_method_options for a payment_intent, does that also apply it to the cards utilized through apply pay and google pay
And apple_pay for Apple Pay.
Awesome
Yes, Google Pay and Apple Pay supports off_session payments.
Cool and its automatically applied when setting card options to off_session, or do I have to add a apply_pay option the payment_method_options
No, you don't need to.
awesome. Thanks so much. Youve been of great assistance
No problem, you're welcome!