#piyush_docs

1 messages · Page 1 of 1 (latest)

raven pikeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1427286979740958843

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

midnight geode
#

Hello, an invoice.payment_action_required event will be emitted in that case. Via the API you would want to look at the new invoice in the subscription's latest_invoice field

native thorn
#

can i get the status in response only?

midnight geode
#

The response of the subscription update call? Checking if that is possible...

#

What API version are you using currently?

native thorn
#

i am using stripe 18.4.0 Node SDK

midnight geode
#

Gotcha, unfortunately it looks like it isn't possible to do this from just the subscription update call, but you can do it with two API calls. In the update call you can expand latest_invoice.payments, that will give you a list of payments on the invoice. If you see that the latest payment has a status of open then you can retrieve that payment intent to check if its actual status is requires_action

native thorn
#

It seems payment_intent is expandable too from that call itself, is it?

midnight geode
#

Unfortunately not, expansion can only go 4 levels deep. To get this status from the subscription, you would need to expand latest_invoice.payments.data.payment.payment_intent which is 5 levels

native thorn
#

🥲 nvm, what's the difference between payment intent statues like requires_action, requires_confirmation and requires_capture?
It says for confirmation, it requires confirmation, where exactly 3DS falls in to these categories?