#sai_rez-subscription-setup-intent

1 messages ยท Page 1 of 1 (latest)

west lark
#

Hi there ๐Ÿ‘‹ once a setup intent is canceled no further actions can be taken on it.

fair totem
#

How can i update the subscription so that pending_setup_intent is null?

west lark
#

That doesn't seem to be a field that you can update.

fair totem
#

Am i correct in saying that once a setup intent has passed successfully through SCA that's when it would normally update to null?

west lark
#

Sincere apologies for the delay. I'm not sure off the top of my head. Is that the behavior that you're seeing?

fair totem
#

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?

west lark
#

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

fair totem
#

I checked and yes it is cancelled

west lark
#

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.