#useRef
1 messages ยท Page 1 of 1 (latest)
here is in test mode
Hi there ๐ based on what you're showing, I don't think the 3DS challenge was completed so no payment attempt was made and therefore the payment attempt didn't fail.
the exemple in dev it shows the 3ds challenge but we killed the app for test case
i am asking because we decrement our stock when the payment intent created and we send the secret to the client to confirm payment so we decrement our stock when the hook respond with success we confirm the payment else w increment out stock if we got a failure event
so in scenario like that we can't increment our stock again
Can you share the ID of the Payment Intent from livemode?
sorry let me rephrease : i am asking because we decrement our stock when the payment intent created and we send the secret to the client to confirm payment and when the hook respond we increment out stock if we got a failure event
pi_3LcQb6HzY6Td5duF0CuWtW1q
here is the payment intent
the payment stated in requires_action status for 2 months
Yeah, the 3DS challenge wasn't completed, so no attempt was made to pay that Payment Intent (indicated by intent still being in a requires_action state).
Since no attempt was made, there was no attempt to either fail or succeed so no webhook was generated.
so there is no expiration time for the requires action, this kinde of payment will stay for ever in this state ?
Correct, there is not a built-in expiration for those, though you do have the option to generate a request to cancel the Payment Intents:
https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you much @lament kraken