#nakasho0363

1 messages ยท Page 1 of 1 (latest)

bold wingBOT
night fossil
#

Hello ๐Ÿ‘‹
I don't really grasp your question. Can you elaborate? Maybe an example would help

fair rose
#

Hi, nice to meet you.

I am creating a margin style application. For example, it is like Amazon Ec site.
There are three people in the business there, โž€ me, the app operator, โž€ the seller user, and โž€ the buyer user.

In the past, I have created a system where the seller creates a stand-alone product and sends the commission to the app management.

What I would like to do now is to allow sellers to create products in subscription format. However, that is not working with an error.

For standalone products, I can create a product and even sell it within my app, and I can do that without accessing the Stripe dashboard.

Is that possible for subscriber products?

I am posting an image of the source code below.

#

Error:PAID ENROLLMENT ERR StripeInvalidRequestError: You must provide at least one recurring price in subscription mode when using prices.

night fossil
#

For subscription mode checkout sessions, you need to set a price that's recurring

#

Right now, the price you're passing in is for one-time payment

#

does that make sense @fair rose ?

fair rose
#

Why do I get a one-time fee when I am in subscription mode?

Does this mean there is no recurring fee?

night fossil
bold wingBOT
fair rose
#

Is this the way to do it?

#

By the way, if the seller changes the price of the plan in the app, it will not affect the price paid for the subscriptions already created.
That being said, if I change the plan fees, I would like to synchronously change the subscription fees as well. In that case, which API should I use to create the products to be given to subscriptions?

serene cave
#

@fair rose give me a few minutes to catch up. my teammate needs to step away

#

@fair rose That looks correct and yes, if the seller changes the price of the plan in the app, it won't affect the price paid for the already-created subscriptions

#

That being said, if I change the plan fees, I would like to synchronously change the subscription fees as well
If I follow your question correctly, you're asking if it's possible to change a price's amount and have any subscriptions that use that price automatically update to use the new amount?

fair rose
#

Yes, that's right.

#

In my app, sellers can create a plan, but when they create that plan, I would like to add properties that can be referenced later in the subscription.

Which API is the right one to use?

serene cave
#

What do you mean by properties and "later in the subscription"?

fair rose
#

They want to know what its properties are.

For example, the property that detects rate changes. If I add such a property when I create a plan in my app, then when the price of the plan increases, for example, I would like to automatically change the price of subscriptions that have already been created to the changed price for the next month, etc.

It seems to me that such a property could be done with a Price object, for example. Is it possible to add a Price property to a subscription using the API for creating Price objects?

serene cave
#

Okay, I'm a bit lost. A customer can subscribe to a price, yes.

#

So, in your example above, you can pass a price in line items instead of creating a new price (using price_data)