#layne_payment-confirmation
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/1227289920037453965
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey @zenith iris ! I'm sorry I don't fully understand the question unfortunately and the context around your integration and what you are doing
Hi @vague tiger we are trying to to charge a card and know if that transaction was approved or declined on one api call? We need to know if there are funds available on the card as soon as possible for our flow on our app side. What we are experiencing is that we first have to call the Paymentinitate API then call the API to see if it was approved or delcined. Is there a way around this or are we missing something?
I'm sorry that's still a bit cryptic unfortunately. Can you give a concrete example maybe or share what exact code/API method you are referring to?
Overall in our API when you confirm the PaymentIntent using https://docs.stripe.com/api/payment_intents/confirm we will attempt to debig the card and you know synchronously if it succeeded or failed
@zenith iris ae you still around?
Yes, we have customer created and payment method added for the users.
We are using the intents API to create an instant with capture being true, but this itself takes about 1.8-2.5 seconds for the API to give a response whether the payment was successful or failed. Is there a way to know if the intent created will be successful as the payments do get failed after calling stripe api with creating and capturing the intents?
I'm super confused I'm really sorry for being dense but I'm super lost with the vocabulary being used
If you have a Customer cus_123 with a saved card pm_123, then you make one API request to the Create PaymentIntent API https://docs.stripe.com/api/payment_intents/create and pass all the info and confirm: true and you know immediately if the payment succeeded or not
Do you know the typical response time for that?
I will try to re-ask here soon in a more consise way.
Why does the response time matter overall? You can't do anything until after that call succeeds anyways. The response time is variable since it depends on many factors and requires talking to the card's issuer and then the bank so it can take multiple seconds
layne_payment-confirmation
Our app is dependent on this response and we need to give a response in less then 2 seconds overall. Trying to make sure that the user has funds to appove our response on our side of the platform.
Hello! I'm taking over and catching up...