#mudassir_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/1300427192915988612
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
i am unable to create invoice for connect account we want to charge connect account with stripe invoice but there is no way i found to charge with invoice the connect account
We want to use stripe invoicing for payments with our stripe connect
we have connect accounts we collect money on their behalf from customer
let suppose customer comes and place order for 100 usd
we will have three invoices
5 platform transaction (stripe invoice to customer)
50 for connect account A (stripe invoice to customer)
45for connect account B (stripe invoice to customer)
once the order placed money with stripe invoice gets paid by customer and send to influencer
we have manual payouts so our connect accounts cant withdraw money until manual processing
After completion of order by connect account we want to invoice and charge 20 percent of order amount to our connect account. but stripe invoicing do not have details how can we invoice and charge 20 percent to to our connect account could you please specify how can we sort this scenario ?
Hey! Taking over for my colleague. Let me catch up.
sure we have implemented stripe invoicing to charge customer and get transaction and transacions on behalf of connect account but after the order get deliever we want to invoice and charge connect account with 20 percent of their invoice amount but invocing for connect accounts is not working how can we charge connect accounts with invoice
What is not working exactly ?
What API are you using ?
Have you passed the transfer_data, when you created the invoice ?
https://docs.stripe.com/api/invoices/create#create_invoice-transfer_data-amount
let suppose user comes to our website
he select services of two of our connect accounts total bill is 12 euro
3 invoices our system issue them 5 euro for connect account A and 5 euro for connect account B and 2 euro for platform fee to customer
now 12 euro deducted and comes to accounts like
5 euro to Connect Account A
5 euro to Connect Account B
2 Euro come to us
Now connect accounts need to complete the order if the order get completed we want the 5 euro amount account to be charge with 20 percent with stripe invoice so we can track the invoices but there is no option to create invoice and charge connect account
if the order not complete we refund that is working
only issue is we want to charge 20 percent to our connect account A & B on order completion with stripe invoice that thing we unable to find on stripe docs how can we invoice and charge our connect accounts
How are you creating the charge?
can you share some stripe object Ids and what API are you using currently exactly ?
5 euro to Connect Account A
5 euro to Connect Account B
2 Euro come to us
This seems to be like a separate charge and transfer case
Have you had a chance to check this guide ๐
actually we dont want to create charges we want to use stripe invoicing
sure i can share my block of code with you we are creating invoices and paying by customer
could u check i attached
this block created 3 invoices and paying same time
Yes it's the same, each invoice has a charge generated
Why are you creating 3 invoices ?
You should create just one
and then use Transfers APIs
in order to send each Connected account 5โฌ
but it might possible one connect account will complete order one will not
we dont want to receive money in our stripe account we want to send directly to connect account we just want to receieve 5 percent as platform fee from customer
after connect account mark the order complete and customer accept that it is completed now we want to charge 20 percent with stripe invoice to our connect account at that time we want to receive his 20 percent invoice earning
if one of connect account not complete we refund that specific invoice
In that case you can create a Stripe Customer for your Connect Account and create for them an invoice like you are creating it for an end user
Between, why no creating two invoices with desintation charge ?
but if we create connect account a Customer he can withdraw money
we want manual payouts so if connect account receive the money he still cant withdraw until we are sure about the order
Creating a Customer Stripe Object that represents a Connected Account has no impact on withdraw or payout
it's a link you set in your integration/database, there is no link in Stripe side
What about this ?
destination charges not have details how can they refunded the docs for invoicing was clear and we need to show customer invoices for each connect account
You create two invoice for each Connected Account and you take 20% for each one separatly
It's the case. Can you share more details ?
What is blocking you from using two invoices with destination charge each ?
it is highly possible one of connect account will not complete the order he will need refund and also need to show invoicing to customer for each connect account
we want to handle each transaction independent what looks good to you ? should we opt for destination charges ? the only case is we need to handle with stipe invoicing what best looks to you you can suggest we can try
but if creating a connect account customer has any drawback then let us know then we can think for charge connect account without stripe invoicing as i get from you that is only possible with stripe customer privilge
Yes that's ok, then one single invoice is paid and the other you void it.
If you create two invocies, you are indeed handling each transaction independently
Have you tried to make test following the suggestion I made ?
yes as each connect account is different we dont want to impact one transaction thats why we keep it separte so what you suggest should we stay or follow what you said also let us know if any drawback using stripe customer on connect
not yet i can try with that suggest need your expert opinion as our database structure is like handling each connect payment so we followed that
Yes and that should feet correctly to your use case.
Between, who do you want to be responsible for refunds ? you or the Connected Account?
if you want that the Connected Account is responsible for the refunds and funds flow....then you need to use Standard Connect Account with Direct Charge
and you set the application_fees:
https://docs.stripe.com/api/invoices/object#invoice_object-application_fee_amount
The amount you want to receive as a platform (in your case 20% of the amount)
we actually directly refund the invoice currently. we kept manual payouts so the connect account not do anything
and we charge 5 percent on our example like 2 euro it basically for covering the refunds on behalf of connect account
that is not refundable
12 euro order
2 euro for platform invoice
5 for connect account A
5 for connect account B
if both connect accunts will not deliever we just create the refund. the 2 euro is our platform fee which is not refunable so we will cover the balance with that for negative case
if both connect accunts will not deliever we just create the refund. the 2 euro is our platform fee which is not refunable so we will cover the balance with that for negative case
Yes it's still applicable
?
i didnt get you how can i check that ?
actually i am developer i got connect account stripe access and i have implemented the payments with invoicing now only issue iam facing the 20 percent charge ๐
that as per you not possible with stripe invoice we have two options one is charge connect account or make connect account a customer ? could you suggest best way for this 20 percent ( the only requirement we have is we dont want to hold funds in our account we want to transfer to influencer and only charge connect account if order is complete if not refund this is our case if we keep in future we will have lots of transactions and legally it could be issue as those money are for connect accounts we only want after completion of order)
this is our refund code
$charge = \Stripe\Charge::retrieve($txn_id);
// If it's an influencer payment, proceed with refund
$result = \Stripe\Refund::create([
'charge' => $txn_id,
'refund_application_fee' => true, // If you want to refund the application fee
'reverse_transfer' => true // This will reverse the transfer to the connected acc
]);
i didnt get you how can i check that ?
What type of Connected Account are you using ? Express, Standard, Custom or Unifed accounts ?
we are not charging any fee but still we keep true for future
they are registering as standard accounts
so now your expert option is needed what we can do for that 20 percent what is best making a customer or charge the connect account
the only requirement the money not to land in our account until order is approved by connect and customer ( other than 5 percent which invoice we showed to customer and come to us on placing of order)
You porbably want to use Standard Connect Account with direct charge.
You create two invoices (one for each Connect Account), with Direct charge and 20% application_fees
u mean for 20 percent right ? as for other cases we want invoicing
Yes
please confirm didnt get for this 20 percent what is better direct charge or invoice based by registering connect account as Customer ?
Using Direct Charge.
thanks yes i also think it will be the issue by following steps to register as customer for connect account. thank you so much i will do this and in future if i will have a question i will get back here. it is really nice talking to you