#clazz-subscription
1 messages · Page 1 of 1 (latest)
👋 Happy to help
Both Apple Pay and Google Pay support subscription
Here is the list of payment methods supported under each product: https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support
I have read this document before and know that subscription supports apple pay, but I want to ask if PaymentElement + Subscription can support apple pay?
I make a sample project based on Custom payment flow: https://stripe.com/docs/payments/quickstart
Here is the preview link: https://stripe.tjo.apphi.com:44443/checkout.html
A demo of a payment on Stripe
Yes, Payment Element + Subscription supports Apple Pay and Google Pay
I tested on iPhone + Safari and there is no Apple Pay on the page. I'm not sure where I'm going wrong.
Are you able to see Payment Element (other than Apple Pay) in this page? I'm unable to
This is what I see
wait a moment
Please check it again.
customer='cus_XXXXXXXXXX',
items=data['items'],
payment_behavior='default_incomplete',
collection_method='charge_automatically',
payment_settings={
'save_default_payment_method': 'on_subscription',
# 'payment_method_types': ['card', 'link']
},
expand=['latest_invoice.payment_intent'],
)
return jsonify({
'clientSecret': intent['latest_invoice']['payment_intent']['client_secret']
})```
Here is the source code: https://drive.google.com/file/d/11-i-ZCNVAqiTdr9GJa6XXknwLFQRRSmL/view?usp=sharing
Have you completed the domain set up here? https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-prerequisites
It's required for Apple Pay
I'm able to see Google Pay in my chrome