#nakasho0363
1 messages ยท Page 1 of 1 (latest)
Hello ๐
I don't really grasp your question. Can you elaborate? Maybe an example would help
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.
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 ?
Why do I get a one-time fee when I am in subscription mode?
Does this mean there is no recurring fee?
The price data you're passing in line_items.price_data creates a one-time price.
In order to create a recurring price (for subscriptions) you need to set line_items.price_data.recurring
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-recurring
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?
@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'samountand have any subscriptions that use that price automatically update to use the newamount?
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?
What do you mean by properties and "later in the subscription"?
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?