#wurm41208

1 messages · Page 1 of 1 (latest)

rancid pecanBOT
inner lily
#

Hey there

#

I'd recommend integrating Stripe Checkout and using the Customer Portal for your customer's to manage their Subscriptions

#

You said: So far I've set up an embedded checkout but it seems that each checkout creates a new customer and subscription. I need each user/customer to be able to purchase multiple subscriptions for multiple business, and a way to pass that business name to the app but also link it so its obvious to a user which business they are modifying.

#

So when you create your Checkout Session you can pass in the Customer ID

#

Then a new one won't be created each time

thorn warren
#

I was thinking about doing that - so I could create that by also establishing a Stripe customer ID when a user creates an account? Is there a way for me to pre-load certain app information at the chekout then based on the customer eg:give them a constrained list to pick from for the businesses they're subscribing?

inner lily
#

Yeah I would create a Customer ID when you collect their authentication information

#

Is there a way for me to pre-load certain app information at the chekout then based on the customer eg:give them a constrained list to pick from for the businesses they're subscribing?
You control all of this yourself, really.

#

You basically want to just create a Checkout Session based on what they select from your list of products

thorn warren
#

Thanks. Also, what's the recommended way to differentiate the subscription level for each business account? eg: User1 owns 3 subscriptions and can modify/cx each - Biz1 (silver tier), Biz2 (gold tier), Biz3 (free tier). Right now I have 2 products set up, just the Silver and Gold Tier. Is there a way or field within the subscription object I should use to associate the business name within the app and for the user on their customer portal, or does each subscription for each business need be its own unique product?

inner lily
#

The name is based on the Product

thorn warren
#

So for the example above, is it 2 products in the catalog (Silver and Gold) or 6?

inner lily
#

So yeah sounds like you want multiple Products here.

thorn warren
#

Ok, thats what I was thinking because as deescribed now a customer for login and just see 1 silver sub, 1 gold sub but not be able to know which business each sub is attached to.

inner lily
#

Yep

thorn warren
#

So to do the create multiple products method, I need to create the product (Unique Business+Tier)at the time of checkout selection, is that possible? Also, then there wouldn't be subscription upgrades, just cancellations because Biz1 (Silver) upgrading to Biz1(Gold) is a completely new product?

inner lily
#

Not sure I understand exactly when you say:

Also, then there wouldn't be subscription upgrades, just cancellations because Biz1 (Silver) upgrading to Biz1(Gold) is a completely new product?

thorn warren
#

Maybe I'm misunderstanding, but if each business+unique tier is a unique product then a customer going into their portal to upgrade Biz1 from silver to gold isn't modifying the same subscrID, but creating a new one and canceling the old?

#

I might need to dive deeper into price/product data to understand how it's handled better.

inner lily
#

No you can still upgrade between Products in the Custoemr Portal

#

But yes, best thing to do is to test this out.

thorn warren
#

So i can create a completely new subscription product at the time of establishing the checkout session - it doesn't need an existing priceID and to exist in my catalog beforehand?

inner lily
#

Correct

thorn warren
#

that's done through the line_items dict?

inner lily
#

Yep

thorn warren
#

Ok I will see if using line_items.price_data will work for what I need.

#

Thanks for the adviice

inner lily
#

👍