#clazz-subscription

1 messages · Page 1 of 1 (latest)

late hinge
#

👋 Happy to help

#

Both Apple Pay and Google Pay support subscription

gentle flame
#

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?

late hinge
#

Yes, Payment Element + Subscription supports Apple Pay and Google Pay

gentle flame
#

I tested on iPhone + Safari and there is no Apple Pay on the page. I'm not sure where I'm going wrong.

late hinge
#

Are you able to see Payment Element (other than Apple Pay) in this page? I'm unable to

#

This is what I see

gentle flame
#

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']
})```
late hinge
#

It's required for Apple Pay

#

I'm able to see Google Pay in my chrome