#ying-wang_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1245811288131502081
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hey there, can you explain what you're trying to do, exactly?
The first case is before the session has a payment intent created, typically before you visit the url
where as having a payment intent with requires_payment_method means payment details are required to confirm the payment, but this is all handled for you by checkout so there isn't actually anything for you to do
hello
so the context is we have customer compain they don't see the payment result reflected from our UI after they make the payment via the checkout session
so we want to list all pending checkout sessions give a signal to users if the payment is still being processed
If the payment was "complete" from a customer perspective you'd find the session itself completed, but the payment intent status could be processing for async payment methods
https://docs.stripe.com/payments/checkout/fulfill-orders#delayed-notification
i see
so I should list payment intent and check if the status is succeeded instead?
One more things to clarify, before user provide the card/adress info, the session.PaymentIntent will be null right? session.PaymentIntent will be set after user fill in the payment info from the url?
If you need that detail, yes
One more things to clarify, before user provide the card/adress info, the session.PaymentIntent will be null right? session.PaymentIntent will be set after user fill in the payment info from the url and click 'pay` button?
I don't think we specify when we might create the payment intent for the first time, so i would not build any logic around that. We might change when we do this without notice.