#leanvitale_api
1 messages · Page 1 of 1 (latest)
👋 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/1360182394052677642
📝 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.
- leanvitale_api, 15 hours ago, 19 messages
- leanvitale_api, 3 days ago, 4 messages
👋
It depends how are you create the invoice
is it direct or destiantion, with on_behalf or not
Hmm
Wait a minute please
Yes, when i create the paymentIntent:
this.stripeConnect.paymentIntents.create(payload)
I use “on_behalf_of” with my client's “acc”.
In this case, is the invoice generated in the name of my customer?
I never use “invoices.create”, because Stripe creates invoices only when payments are made. Is this ok?
No Stripe creates just receipt, but no invoices for payment intent
Hmmm are you sure?
yes
Can you share an Invoice Id?
Sure
In test mode, ok?
in_1RCcstLAwobXIPtpzvV6ic81
This invoice is for a subscription paid by a customer, this is charged only monthly, and the invoice is generated automatically, I only receive through Webhook the event “invoice.paid” where I get the invoice.id and invoice.pdf.
This was created from a Subscription and not PaymentIntent
Ah oka!
Yes, that is the case
Now I have another case.
We request to store a payment method with a SetupIntent, and then after 30 days, we have to charge this payment method but in the name of a connected account, we only charge a commission.
How should I proceed to make the charge in the name of the connected account and have the invoice issued in your name?
Is it possible?
How should I proceed to make the charge in the name of the connected account and have the invoice issued in your name?
You mean the Connected Account name ?
Yes
You need to create a Direct Charge or a destination charge using on_behalf_of
Well, I use the on_behalf_of and I use the almacendo method. This will generate the invoice in the name of the connected account, right?
Could you provide me with a link where it explains or shows how to do it?
hi! I'm taking over this thread.
so you are using Destination Charges with on_behalf_of? if this case it's the informatino of the connected account that will be used.
Oka, thanks!