#borja-snchez_connect-charges

1 messages · Page 1 of 1 (latest)

hollow spireBOT
lapis solsticeBOT
#

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.

hollow spireBOT
#

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

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

mellow walrus
#

How would you like the connected account ID to be shown? Is it just a reference field for your own system, or do you want to make it visible on the invoice itself?

eternal tendon
#

Hello ! We want to include in the connected accounts invoices the tax Id of our clients (connected accounts).
We are using the checkout to redirect everything to our connected accounts using StripeAccount in requestOptions.
Seems that is not working, do we need a different approach ? We want to make it visible on the invoice itself, yes.

mellow walrus
#

Could you share an example invoice ID (in_xxx), so that I can take a look how your integration works?

eternal tendon
#

I guees we have never generated one ... My question is ... This StripeAccount in RequestOptions is it enough to generate one when the charge is succeeded and done ?

mellow walrus
#

What type of connected account are you using? Standard, Express or Custom?

eternal tendon
#

I've used OnBehalfOf parameter on my checkout session, looks like I cannot use StripeAccount (I guess is like a global direction for the whole information) on requestOptions and OnBehalfOf SessionPaymentIntentDataOptions or SessionSubscriptionDataOptions combined, The error is this => The 'subscription_data[on_behalf_of]' param cannot be set to your own account.

eternal tendon
#

Would this solve the problem ?

mellow walrus
#

For Express connected account, you should use Destination Charge with on_behalf_of.

Stripe-Account header is for Direct Charges which is strongly discouraged to be used on the Express connected account

#

What mode are you using in Checkout Session? Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request

eternal tendon
#

Sorry, what do you mean by "mode" I'm generating my checkout seesion through my API 😅

#

Stripe-Account header is for Direct Charges which is strongly discouraged to be used on the Express connected account

May be I should change this.

mellow walrus
#

In Checkout Session, there are a few types of mode such as payment, subscription, and setup: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-mode

It's a required field to create a Checkout Session. It'll be helpful to share a request ID (req_xxx) or Checkout Session (cs_xxx), so that I can take a look how your integration works

eternal tendon
#

I use both payment, subscription,

#

let me check that for u, one sec.

#

cs_live_a109KD6edwseO8aNDEjI3BHaArB4yoChotyw2g8H0h1mXIXjzqQPic28rC

mellow walrus
#

Thanks for waiting! Discord is busy now

eternal tendon
#

Sure, let me know

mellow walrus
#

Take as an example https://dashboard.stripe.com/logs/req_FWRcRyfir8jjWf, this is a Direct Charge. Direct Charge is discouraged on the Express connected.

Destination Charge (https://docs.stripe.com/connect/destination-charges) should be used on Express connected account, i.e. StripeAccount shouldn't be set. Instead, the connected account ID should be set under subscription_data.transfer_data.destination: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-transfer_data-destination

To display the Tax ID of the connected account, subscription_data.on_behalf_of should be included: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-on_behalf_of

Create charges on your platform account, collect fees, and immediately transfer the remaining funds to your connected accounts.

eternal tendon
#

and for payments ?

mellow walrus
eternal tendon
#

Same thng, right ? TransferData and Onbehalfof

mellow walrus
#

Correct!

hollow spireBOT
eternal tendon
#

SHOULD I remove then the StripeAccount parámeter from requestOptions from my checkout session if I implement these ?

high perch
#

If you want to not issue a Direct Charge, yes you need to remove the Stripe Account header.

eternal tendon
#

Looks like when I revome StripeAccount from the requestOptions it doesn't find the customer.

#

Customer needs to be passed in other proccess ?

#

during the checkout

high perch
#

You need to choose a customer that is available on the Platform Account and the no Connect Account.

eternal tendon
#

but my clients are in my connect Account

high perch
#

You have two options, recreate the customer on the platform account if you'll opt ot use Destination Charge or keep using Direct Charge with customer on the Connect Account side

#

What type of Charges that fits your business needs ?

hollow spireBOT
#

borja-snchez_connect-charges

empty pewter
#

@eternal tendon are you still here?