#_andriiko
1 messages · Page 1 of 1 (latest)
Are you passing a client secret to the Payment Element before it renders? If so, is it from a Payment Intent? Or is it from a Setup Intent?
Yes, I get a client_secret from my backend and pass it to PaymentElement
It is not a Payment Intent bc it is a checkout page for Subscriptions
Okay, so you use a Setup Intent client secret I assume?
When you create the Setup Intent, are you passing automatic_payment_methods? https://stripe.com/docs/api/setup_intents/create?lang=curl#create_setup_intent-automatic_payment_methods
Or are you explicitly naming each of the payment method types that are allowed for that Setup Intent? https://stripe.com/docs/api/setup_intents/create?lang=curl#create_setup_intent-payment_method_types
Unfortunately, I can only speculate on how the backend logic is structured. I do know for sure that it is not a PaymentIntent.
I'm confident that this comes to the frontend automatically without any specific configuration.
You'll need to know what's happening on the backend in order to solve this problem though. When you create the Setup Intent, you need to either rely on Automatic Payment Methods (which is a setting in the Dashboard that allows you to toggle payment method types on/off for all payments), or you need to explicitly declare which payment method types you want to be allowed on that specific Setup Intent using payment_method_types: https://stripe.com/docs/api/setup_intents/create?lang=curl#create_setup_intent-payment_method_types
Unfortunately, on the dashboard page at https://dashboard.stripe.com/test/settings/payment_methods, I don't see a toggle that could control this payment method. There is something similar, but these methods are disabled.
Are you using Stripe Connect in any capacity?