#batz_api

1 messages ¡ Page 1 of 1 (latest)

cold valeBOT
#

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

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

cyan flare
#

Hi there

#

It sounds like you are trying to do a "grandchild" flow.

#

Which is prohibitted.

#

You can only create charges on your Connected Accounts -- not your Connected Accounts' Connected Accounts.

leaden latch
#

Sorry i dont fully follow on that

cyan flare
#

Can you provide the request ID for the error you are seeing?

leaden latch
#

Apologies where can i find that

cyan flare
#

It looks like req_xxxxx

leaden latch
#

ah sorry

#

i see

cyan flare
#

All good

leaden latch
#

so

#

its actually not even reaching

#

because the payment intent fails to create

#

so its stopped before the request is sent fully

cyan flare
#

Unless you are throwing that error from your own code then it is coming from our API (which it is).

#

And that error is occurring on the attempted PaymentIntent creation

#

If you provide your account ID I can also help locate the request

leaden latch
#

well actually heres the problem i suppose. I am using a plugin used for most woocommerce stores Stripe Woocommerce Payment Gateway and I am actually trying to edit the headers of the request before its sent fully to a connect account id not our main account ID as the plugin doesnt natively support connect accounts.

cyan flare
#

Yeah that won't work

leaden latch
#

This is the connect account ID: acct_1SNDjgPJuTutPjzn and this is the main account id acct_1CDWVwA7kW3XX0IW

cyan flare
#

As I said above... grandchild access isn't allowed.

#

What you are trying to do right now is have WooCommerce make a request on your Connected Accounts

#

That's not possible as WooCommerce is your platform.

#

You need to do it directly in your own API request

leaden latch
#

okay understood so i would need to ditch the plugin and when the woocommerce checkout process happens some how take over and do my own payment intents ?

#

Or how do you think you would do that ?

cyan flare
#

Yep pretty much. I'm not intimately familiar with how the WooCommerce flow works but mostly at the point where your customer is paying you need to control the collection of the payment method and the creation of the PaymentIntent via your own integration (using your API keys directly).

leaden latch
#

crap

#

fair enough

#

thanks for your help

cyan flare
#

Sure thing

leaden latch
#

have a great day.