#dineshkumar6419
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dineshkumar6419, 1 hour ago, 10 messages
- dineshkumar6419, 2 hours ago, 22 messages
- dineshkumar6419, 2 days ago, 10 messages
Hi there!
How are you creating Subscriptions? With Checkout Session, the Subscription endpoint, something else?
the subscription endpoint
var subscriptionCreateOptions = new SubscriptionCreateOptions
{
Customer = customerId,
Items = new List<SubscriptionItemOptions>
{
new SubscriptionItemOptions
{
Price = price.Id, //req.PriceId,
},
},
PaymentSettings = paymentSettings,
PaymentBehavior = "default_incomplete",
};
subscriptionCreateOptions.AddExpand("latest_invoice.payment_intent");
var subscriptionService = new SubscriptionService();
try
{
Subscription subscription = subscriptionService.Create(subscriptionCreateOptions);
}
Got it. And what's the issue with the code you shared?
no issue in code
can i create different subscriptions using same priceID and customerID?
Yes sure
Eg: my product is "Propertywebsite" price is monthly=10 and annualy =90
same customer can create diffrent subscription?for product "Propertywebsite"
they can create Propertywebsite1, Propertywebsite2, Propertywebsite3 etc,.
You can create as many Subscription as you want for each customer, yes. I don't really understand the issue.
I recommend doing some tests in test mode to see how this works.
Eg: first subscription item -Propertywebsite1 and priceid is price_1xxx
second subscription item -Propertywebsite2 and priceid is price_1xxx (same)
is this possible and correct way?
That's completely up to you. But yes if needed you can create 2 (or more) Subscriptions with the same Price for the same Customer. Or you can create a single Subscription with the Price and set quantity:2.
You can update the Subscription to increase/decrease the quantity, yes.
example please
example please for this
Hi there ๐ jumping in as my teammate needs to step away soon. Can you help me understand what you're part of updating a Subscription you're looking for assistance with? Our function for making that change, along with a list of the parameters it accepts, can be found here:
https://stripe.com/docs/api/subscriptions/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok thanks!]