#ying-wang_api

1 messages ¡ Page 1 of 1 (latest)

fallow cipherBOT
#

👋 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.

mortal bane
#

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

main bluff
#

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

mortal bane
main bluff
#

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?

mortal bane
#

If you need that detail, yes

main bluff
#

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?

mortal bane
main bluff
#

i see

#

thanks for clarification