#felix_api

1 messages ¡ Page 1 of 1 (latest)

blazing sundialBOT
#

👋 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/1328264767378296916

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

robust apex
graceful mica
#

not really,
let me explain my use case, then you can advice

i have a system that connects a service provider to a customer, i am creating an invoice (like a one off invoice) for every service to e rendered when the customer looks for the service provider.
i want to confirm that the customer has enough money before i connect the service provider with the customer.

before i was using authorization hold, of which authorization hold would fail if they don't have enough money in their account.
but now i wan to use invoice, so after finalizing and paying the invoice on the backend, is when i will now finally connect the customer with with the service provider.

but the issue is that most payments can take long, so i don't want to keep the customer waiting for too long,
how can check to confirm that the customer has that amount, then i will just go ahead to charge them later on

robust apex
#

No there's no API to check the customer's payment method's balance. You need to handle the payment failure and ask your customer to pay again with a different paymen method/.

graceful mica
#

okay, so if i may ask, when i hit the pay for an invoice API, will i get a response from that api whether the payment was successful immediately, or i will have to listen for the webhook..
the reason why i am asking this is beacsue of the complexity of a micorservoce and a websocket together.
so actuall my system is running on a websocket.

robust apex
#

It depends on the payment method type.

#

If it's a payment method can be confirmed immeidately (e.g., card), then yes you can know the payment result right away.

graceful mica
#

okay then thanks.

#

this will help