#Emmanuel G.

1 messages · Page 1 of 1 (latest)

finite charmBOT
ember talon
#

Hi there, is this a question about setting up Apple Pay/Google Pay payment method through PaymentElement for off_session usage?

quasi vessel
#

ya

#

Also what is the type returned from the payment element in stripe js when apple pay or google pay is selected.

ember talon
quasi vessel
#

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

#

...

ember talon
#

Thanks for the waiting.

#

I just tested it out at my end. Yes the type would be google_pay when customer selected Google Pay.

quasi vessel
#

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

ember talon
#

And apple_pay for Apple Pay.

quasi vessel
#

Awesome

ember talon
#

Yes, Google Pay and Apple Pay supports off_session payments.

quasi vessel
#

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

ember talon
#

No, you don't need to.

quasi vessel
#

awesome. Thanks so much. Youve been of great assistance

ember talon
#

No problem, you're welcome!