#Vikas - Subscription & Connect

1 messages ยท Page 1 of 1 (latest)

kind stirrup
#

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

tiny haven
#

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?

kind stirrup
#

There's a lot of people here all at once

#

I't going to take some time

tiny haven
#

I completely understand.

#

I just need one clarification.

kind stirrup
#

Okay so how are your Connect accounts configured? Standard, Express, or Custom?

tiny haven
#

How can I create product, price and customer for already connect account?

kind stirrup
#

It depends on the account type, so which ones are they?

tiny haven
#

I think it is standard

#

Users connect their account by going the process of adding bank accounts and then I save their account_id

kind stirrup
#

You define the account type when you create them

#

So you should know

tiny haven
#

How can I relate the product, price and customer to stripe account id

kind stirrup
#

You need to create those records on the Connect Account. You use their Account ID in the Stripe Header when making those requests.

tiny haven
#

Just checked in my script.

#

It is express

kind stirrup
#

Okay in that case, all Customer, Product, Price and Payment records live on the Platform

#

And you will make Destination charges

tiny haven
#

my question is
I want to create product, price and customer for this account (acct_1LJFiz2HmHNN2L1Z)

#

and subscription as well.

kind stirrup
#

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

tiny haven
#

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

kind stirrup
#

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

tiny haven
#

That is fine.

#

$stripe->products->create([
'name' => 'Gold Special',
]);

#

How can I create this product for this account(acct_1LJFiz2HmHNN2L1Z)

kind stirrup
#

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

tiny haven
#

ok, is there any option or way so that I can achieve my goal?

#

I hope you got my point now

kind stirrup
#

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

tiny haven
#

So, you are saying connected stripe account will not be able to create product, price and customer for the subscription?

kind stirrup
#

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

tiny haven
#

I got your point.

kind stirrup
#

Then, when you create a Subscription you specify the Connect account as the transfer_data.destination

tiny haven
#

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?

kind stirrup
#

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.

tiny haven
#

Yes, I need in that way

#

Each connected stripe account will have their own product, price, customer and subscriptions

kind stirrup