#dineshkumar6419

1 messages ยท Page 1 of 1 (latest)

scenic hearthBOT
#

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.

teal canopy
#

Hi there!

#

How are you creating Subscriptions? With Checkout Session, the Subscription endpoint, something else?

noble tundra
#

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);
}

teal canopy
#

Got it. And what's the issue with the code you shared?

noble tundra
#

no issue in code

#

can i create different subscriptions using same priceID and customerID?

teal canopy
#

Yes sure

noble tundra
#

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,.

teal canopy
#

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.

noble tundra
#

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?

teal canopy
#

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.

noble tundra
#

ok got it.

#

if quantity is 2, can i cancel only one from quantity 2?

teal canopy
#

You can update the Subscription to increase/decrease the quantity, yes.

noble tundra
#

example please

noble tundra
idle quail
#

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

noble tundra
#

ok thanks!]