#BrianC

1 messages · Page 1 of 1 (latest)

carmine cobaltBOT
pure geyser
#

Hi there. Give me a bit to catch up on context

#

Reading the previous thread this has to do with the accounts you're creating objects on. Could be a bug in the code

#

That's controlled by how you're forming the request in your code

jaunty fractal
#

Which parameter would be causing that though?

pure geyser
#

From the example from the previous thread it seems like the customer existed on the platform but the charge was made on the connect account

#

So you would have needed to pass the stripe account header to create the customer on the connect account

#

That is if you were intending to make direct charges

#

Would be different for destination charges

jaunty fractal
#

I see. So the one that succeeded first created a customer on the connected account and then made the charge, the one that failed tried to charge first? I'm sorry to be so confused about this. The code has been working for about a year and today it decided not to 🙂

pure geyser
#

The one you linked in this thread succeeded? Is that the one you're talking about?

#

I can see what happened

jaunty fractal
#

Yes. The request Id in this thread succeeded

#

The one in the previous thread did not

#

Same customer,

pure geyser
#

So the one that succeeded was a destination charge. The charge was created and settled on the platform (not a direct charge and no stripe account header was passed) and then funds were transfered to the connect account. It succeded because the customer object also exists on the platform account. Since you are using Express accounts this destination charge fund flow is what you should be doing. So, you need to find the place in your code where you erroneously are passing the stripe account header to create the payment intent

jaunty fractal
#

Ah! OK. Thank you very much.

pure geyser
#

Actually you need to find where you are passing the stripe account header to create the charge

#

It looks like the one that failed was a Charge object not a PaymentIntent