#sai_rez-subscription-setup-intent
1 messages ยท Page 1 of 1 (latest)
How can i update the subscription so that pending_setup_intent is null?
That doesn't seem to be a field that you can update.
Am i correct in saying that once a setup intent has passed successfully through SCA that's when it would normally update to null?
Sincere apologies for the delay. I'm not sure off the top of my head. Is that the behavior that you're seeing?
Yea so through testing once a user has successfully verified I noticed it updates to null
To give some context, we have a user that has paid their latest invoice but they still have a pending setup intent which puts them in a weird user flow on our app
I was hoping once cancelling the setup intent that it would no longer be an issue however that doesn't seem to be the case as it's still pending
Is there no way you can think of to update it so it has a null value?
No, nothing that comes to mind, but honestly it's a field that I haven't played with much. If you're retrieving the subscriptions then you can use expansion to include the pending_setup_intent in the response so you have its status pretty easily which may make it easier to check whether the attached intent has been canceled.
https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I checked and yes it is cancelled
Apologies for the confusion, I was suggesting that as something that you could add to your flow that checks if that field is null , so you can also detect if the underlying intent is canceled. My hope was that doing so would keep your user from ending up in that weird state/flow you mentioned.