#mudassir_api

1 messages ยท Page 1 of 1 (latest)

thin violetBOT
#

๐Ÿ‘‹ 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.

lofty pine
#

hi there!

#

what's your question?

final cargo
#

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 ?

thin violetBOT
rocky niche
#

Hey! Taking over for my colleague. Let me catch up.

final cargo
#

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

rocky niche
#

What is not working exactly ?

#

What API are you using ?

final cargo
#

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

rocky niche
#

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 ๐Ÿ‘†

final cargo
#

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

#

this block created 3 invoices and paying same time

rocky niche
#

Why are you creating 3 invoices ?

#

You should create just one

#

and then use Transfers APIs

#

in order to send each Connected account 5โ‚ฌ

final cargo
#

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

rocky niche
#

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 ?

final cargo
#

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

rocky niche
#

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

rocky niche
final cargo
rocky niche
#

You create two invoice for each Connected Account and you take 20% for each one separatly

rocky niche
#

What is blocking you from using two invoices with destination charge each ?

final cargo
#

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

rocky niche
#

Yes that's ok, then one single invoice is paid and the other you void it.

rocky niche
#

Have you tried to make test following the suggestion I made ?

final cargo
#

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

final cargo
rocky niche
#

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

#

The amount you want to receive as a platform (in your case 20% of the amount)

final cargo
#

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

rocky niche
#

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

final cargo
#

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
            ]);
rocky niche
#

i didnt get you how can i check that ?
What type of Connected Account are you using ? Express, Standard, Custom or Unifed accounts ?

final cargo
#

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)

thin violetBOT
rocky niche
#

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

final cargo
#

u mean for 20 percent right ? as for other cases we want invoicing

rocky niche
#

Yes

final cargo
#

please confirm didnt get for this 20 percent what is better direct charge or invoice based by registering connect account as Customer ?

rocky niche
#

Using Direct Charge.

final cargo
#

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