#Electric
1 messages · Page 1 of 1 (latest)
Hmmm, how far apart are the 2 Setup Intents being created?
Those wouldn't be created by Stripe as far as I can tell, so it's likely that your integration is calling the API twice
ok i'll look into it! by the way, I'm seeing a lot of chatter in the channel about Subscriptions creating SetupIntents. Is this only applicable when the Subscription is a trial?
That's a common case for creating a Payment Method when Subscriptions are trialing (since that doesn't happen by default)
just curious, how bad is it to have this extra SetupIntent?
Hello! I'm taking over and catching up...
Ah, it sounds like you're seeing the pending_setup_intent created by the Subscription: https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
It's advisable to use that one if you can, but if that doesn't work for your flow you can ignore it. You don't need to do anything to clean them up or anything.
thanks @fair star that's a relief!
In the subscriptions guide it states:
Stripe automatically creates SetupIntents for subscriptions that don’t require an initial payment
I was thinking this does not apply to my scenario, since I'm creating a subscription with an initial payment. (although to be more precise, the initial payment in my scenario is $0.00)
Am I misinterpreting the above statement? Or is it just out of date?