#Birendra
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
You can list all customers with this: https://stripe.com/docs/api/customers/list
And if you want the customers of a connected account, then use the Stripe-Account header: https://stripe.com/docs/connect/authentication
Can you please share a get-connected customer for a particular connect account example?
Do I need to use the connected account sk live key?
Can you please share a get-connected customer for a particular connect account example?
I'm sorry but I don't understand the question. Can you rephrase it?
Do I need to use the connected account sk live key?
No, use the platform API key with the Stripe-Account header as explained in the link I shared above
I have tried with the above code, but getting the error "does not have access to account"
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
Can you please review the below code? and let me know what I'm doing wrong in it.
$accountID ="acct_1A9XEKFRmwOYocSG";
$details = $stripe->customers->all(
['limit' => 3],
['stripe_account' => '{{acct_1A9XEKFRmwOYocSG}}']);
echo "<pre>";
print_R($details);
Okay, let me check
'stripe_account' => '{{acct_1A9XEKFRmwOYocSG}}' should be 'stripe_account' => 'acct_1A9XEKFRmwOYocSG'
ok let me try
Great, It work thanks
I have one more question regarding charge to connected account.
I would like to charge the connected account.
I reviewed the below API "Direct Charge".
Are there any extra fees.
I would like to charge the connected account.
What does that mean? What do you want to change?
depends what you mean by that. The connected account is owned by a person or a company. Are you looking to charge that person's/company's credit card they own for example? Or trying to take some funds from the balance of their Stripe account?
Yes, I'm looking to charge that person's/company's credit card
then you would mostly just collect a credit card from them and create a Customer object on your own platform account, the same as any other end-customer in your system, and you can charge that (https://stripe.com/docs/payments/accept-a-payment) . It's not directly linked to the connected account, from the Stripe API perspective(though you can keep some logic in your own records/database to indicate that Customer is the same entity as the connected account).
Okay
and what about this "Or trying to take some funds from the balance of their Stripe account?"
Is it possible?
you can read about https://stripe.com/docs/connect/account-debits and see how the limitations may or may not impact you
I have reviewed the doc
yep but that still uses the PaymentIntents API
it's just called "Direct Charges" as that's the name that flow has, but you always use the PaymentIntent API to process payments
Both look like connected account charges.
I'll use the PaymentIntent API to process payments
Thanks for helping
Have a Good day.
Hi
Can you please share an API link?
To Get all charges under connected account
same answer as earlier but using the Charge API
You can list all charges with this: https://stripe.com/docs/api/charges/list
And if you want the charges of a connected account, then use the Stripe-Account header: https://stripe.com/docs/connect/authentication