#_andriiko

1 messages · Page 1 of 1 (latest)

torn scrollBOT
agile finch
#

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?

clever girder
#

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

agile finch
#

Okay, so you use a Setup Intent client secret I assume?

clever girder
#

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.

agile finch
#

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

clever girder
agile finch
#

Are you using Stripe Connect in any capacity?