#felix_api

1 messages ¡ Page 1 of 1 (latest)

primal larkBOT
#

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

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

pliant hollow
obsidian sparrow
#

req_Wyy5AwfbiV4jf5?t=1732521440

#

req_Wyy5AwfbiV4jf5

#

note that this was done on test

pliant hollow
#

Thanks for the ID

#

the paymentIntent was created on the platform, but your code was trying to capture it on the connected account, and that's why it failed.

obsidian sparrow
#

thank you very much,

i want to also confirm, because in my flow (i.e. for my application use case), there is no way i can get the connect account id for that particular user, so can i update the payment intent after it has been created to then add the stripe connect account

primal larkBOT
oblique pond
#

hi! I'm taking over this thread.

#

if the PaymentIntent hasn't been confirmed, then yes you should be able to update it

obsidian sparrow
#

thank you
will i be able to know if the user have enough for the authorization hold while creating the payment intent?

oblique pond
#

no you can't know this before confirmin the PaymentIntent

obsidian sparrow
#

ooh, and now there is no way i can cancel an already confimed payment intent?

oblique pond
#

you could refund the PaymentIntent

obsidian sparrow
#

okay, one more issue as regards my flow,
since i can't update after confirmation,
is there a way i can make the payment intent know that i will providing a stripe connect account id when i want to charge,

because in my case, i will have to confirm if the user has the amount of money before i know the connect account to pay into.

oblique pond
#

I'm not sure I follow. could you describe in more details your complete flow? using a concrete example would help.

obsidian sparrow
#

the app has a part where i create an authorization hold, to pay a service provider, but i will not pay the servoce provider until he delivers the service.

before the customer, searches for possible service providers, i want to be sure the customer has enough money for the authorization hold,

so when one service provider accepts, then i will need to update the payment intent with the servoce provider's connect account id..

now the issue is
for me to know if the customer have enough money for the authorisation hold, i have to confirm the payment intent, and i also cannot update a payment intent that is already confirmed

oblique pond
#

why don't you set the connected account ID when placing a hold?

#

ad then the connected account will only receive the funds when/if you capture the funds

obsidian sparrow
#

the reason why we don't want to do that is,
we don't know the one out of the pool of service providers that will provide the service to the customer

it is until there is an agreement between the customer and service provider, that we can now create payment intent... and we don't want it to now be at that point we will now be verifying if the customer has the money or not...

we want to know if he has the money before they agree

oblique pond
#

got it, give me a few minuts to test something

obsidian sparrow
#

okay, thank you

primal larkBOT
obsidian sparrow
#

hi vanya, will you continue from where soma stopped?

oblique pond
#

I think what you are trying to do is not possible with Destination Charges. but you would use Separate Charges & Transfer for this:

  1. create the PaymentIntent with a hold on your own account
  2. capture the funds later
  3. then transfer the funds to the connected account
obsidian sparrow
#

ookay,
thank you very much soma

#

kindly refer me to the docs for transfering