#stephen-crosby_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1331714667545886741
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Taking a look
Yeah this is the result of a CAPTCHA being triggered.
So technically the initial attempt failed and then the customer has to complete the CAPTCHA for the next "attempt" to succeed.
I agree a little confusing that this is fired in the same flow here, but you'll need to handle this in your Webhook logic.
Is there anything about the payload to indicate that this is the case?
For that Event payload, not specifically. But you could retrieve the Invoice and expand its payment_intent and look at next_action.use_stripe_sdk.type which will be intent_confirmation_challenge indicating CAPTCHA was triggered.
You can see this in the corresponding payment_intent.requires_action Event that fires as well: https://dashboard.stripe.com/events/evt_3Qk8c5B8wovMzpKJ1KmoP2Hz
Ok. Normally we respond to this web hook by cancelling the customers account. Is the approach you mentioned what you would suggest we do instead in order to avoid cancelling our customers who are in the middle of paying?
If you are going to use this Event, then yes. However, I think the cleaner way is to use the customer.subscription.updated Event to handle fulfillment.
You look at the Subscription's status
If it is active then you provision. If it moves to past_due then you know payment failed.
And for the initial creation, like this example, it will be in incomplete until the payment succeeds.
Then it will move to active