#chengyu-Connect
1 messages · Page 1 of 1 (latest)
Yes you can do that. So basically you can create a customer in the connected account and then make a direct charge to it.
any idea how to create a customer for a connected account?
it is so amazing u can understand my poor english and crappy described question 🙏
I understand you completely 🙂 Making API calls for connected accounts is easy, you still use the same customer API to create a customer https://stripe.com/docs/api/customers/create?lang=curl , just need to pass in the StripeAccount=ConnectedAccountId header, see https://stripe.com/docs/connect/authentication#stripe-account-header
If you prefer to communicate in other languages, just want to let you know that I can also speak Chinese.
老铁 我问题问这样你都能理解 绝对的华人啦
哈哈,有问题可以随时来 Discord 联系我们
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
在python的API里面好像没有讲这个parameter
stripe.Customer.create(
email="person@example.edu",
stripe_account="{{CONNECTED_STRIPE_ACCOUNT_ID}}"
)
# Fetching an account just needs the ID as a parameter
stripe.Account.retrieve("{{CONNECTED_STRIPE_ACCOUNT_ID}}")```