#Long Ho
1 messages ยท Page 1 of 1 (latest)
Apple Pay is part of card payment method type. If the payment_method_types includes card, Apple Pay will be available for Setup Intent with StripeJS
hmm but I'm looking at https://stripe.com/docs/js/setup_intents/confirm_card_setup#stripe_confirm_card_setup-with_element where it takes in card Element but for ApplePay it's a Payment Request element ๐
Ah I see! The one I referred to is Payment Element: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Payment Element will render Apple Pay if card is set in payment_method_types of Setup Intent
yeah so I'm trying not to use it bc its limitation in styling. I'm using CardElement + PaymentRequestButtonElement instead. Does that make it impossible to save A/GPay?
For individual elements, it will only collect corresponding payment method type
In this case, you can use Payment Request Button with Setup Intent
oh hmm is there doc for it somewhere ๐ ?
or if I just pass that element to setupIntent and it'll work?
We don't have doc for it. I'll share the feedback to the team. The steps will be:
- Create a Setup Intent with
cardpayment_method_types - Follow the guide here: https://stripe.com/docs/stripe-js/elements/payment-request-button to create a Payment Request Button
- Use
stripe.confirmCardSetupinstead ofconfirmCardPaymentat Step 5 of the above doc
gotcha thank you so much!