#borja-snchez_connect-charges
1 messages · Page 1 of 1 (latest)
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.
- borja-snchez_api, 2 days ago, 29 messages
- borja-snchez_api, 2 days ago, 70 messages
- borja-snchez_api, 5 days ago, 18 messages
👋 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.
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?
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.
Could you share an example invoice ID (in_xxx), so that I can take a look how your integration works?
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 ?
To display the Tax ID from the connected account, I'd recommend checking the guide here: https://docs.stripe.com/invoicing/connect#account-tax-ids
What type of connected account are you using? Standard, Express or Custom?
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.
let me check
Express
should I use the principal account in my StripeAccount on my RequestOptions and the connected account at the OnBehalfOf parameter ?
Would this solve the problem ?
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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.
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
I'm on test mode, if that what you mean, using my CLI i think I won't be able to retrieve that error from the dashboard.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I use both payment, subscription,
let me check that for u, one sec.
cs_live_a109KD6edwseO8aNDEjI3BHaArB4yoChotyw2g8H0h1mXIXjzqQPic28rC
Thanks for waiting! Discord is busy now
Sure, let me know
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Create charges on your platform account, collect fees, and immediately transfer the remaining funds to your connected accounts.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and for payments ?
For mode: payment, you can set the same fields under payment_intent_data hash: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Same thng, right ? TransferData and Onbehalfof
Correct!
SHOULD I remove then the StripeAccount parámeter from requestOptions from my checkout session if I implement these ?
If you want to not issue a Direct Charge, yes you need to remove the Stripe Account header.
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
You need to choose a customer that is available on the Platform Account and the no Connect Account.
but my clients are in my connect Account
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 ?
@eternal tendon are you still here?