#Vikas - Subscription & Connect
1 messages ยท Page 1 of 1 (latest)
HI ๐
Let's keep the discussion in this thread
I am using Stripe connect and need to add subscription feature.
I have already went through the document and I have one doubt
Please let me know to whom I can ask as I am new here.
Quoting here so we have it all together
Thank you Snufkin
I am using Stripe connect and need to add subscription feature.
I have already went through the document and I have one doubt
As per the documentation, to implement subscription we need to first create product, price and customer then we need to create suscription.
At the time of creating customer, product and price, I did not find any way to relate them to the stripe connect account.
Please suggest.
Are you there?
Please respond
@kind stirrup are you there?
Okay so how are your Connect accounts configured? Standard, Express, or Custom?
How can I create product, price and customer for already connect account?
It depends on the account type, so which ones are they?
I think it is standard
Users connect their account by going the process of adding bank accounts and then I save their account_id
How can I relate the product, price and customer to stripe account id
You need to create those records on the Connect Account. You use their Account ID in the Stripe Header when making those requests.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay in that case, all Customer, Product, Price and Payment records live on the Platform
And you will make Destination charges
my question is
I want to create product, price and customer for this account (acct_1LJFiz2HmHNN2L1Z)
and subscription as well.
Okay you won't create them on the account though
All of that will live on the platform
You just specify that account as the destination when creating the subscription
at the time of calling the api I did not find any way to send this acct_1LJFiz2HmHNN2L1Z to relate my subscription for this account
I would also recommend reviewing our docs on Express accounts:
https://stripe.com/docs/connect/express-accounts
at the time of calling the api I did not find any way to send this acct_1LJFiz2HmHNN2L1Z to relate my subscription for this account
This is the destination charge approach I just provided you
That is fine.
$stripe->products->create([
'name' => 'Gold Special',
]);
How can I create this product for this account(acct_1LJFiz2HmHNN2L1Z)
You dont
Please read up about Express Accounts and Destination charges. I think you are serious misunderstanding how/where the records exist in that relationship
ok, is there any option or way so that I can achieve my goal?
I hope you got my point now
No, you are not making any sense as far as how to create records with Connect accounts. Please please read the docs.
Stripe Connect is a complex system of related accounts and it can differ greatly depending on how you have configured the accounts. In your case you will not create products for specific accounts.
You will only ever create products on your account and then use them to create charges
So, you are saying connected stripe account will not be able to create product, price and customer for the subscription?
No that is not what I am saying. I am saying because you created Express accounts it means all the product, price, and customer records need to be saved to your platform account
I got your point.
Then, when you create a Subscription you specify the Connect account as the transfer_data.destination
Now, please suggest, which type of account I should go with so that I will be able to created product, price and customer for those connected accounts?
It depends on how you want your integration to work. You can do this if you use Standard accounts but that means each customer, price, product, and charge will be unique to that account.
Yes, I need in that way
Each connected stripe account will have their own product, price, customer and subscriptions
Please review account types then: https://stripe.com/docs/connect/accounts