#Suzz
1 messages ยท Page 1 of 1 (latest)
Hi ๐ a guide for canceling Subscriptions can be found here:
https://stripe.com/docs/billing/subscriptions/cancel
and guides related to updating Subscriptions are linked to from here:
https://stripe.com/docs/billing/subscriptions/change
Please let me know if they leave any of your questions unanswered.
how will the subscritpion gets created using checkout session?
while referring the stripe docs i could see an api in dotnet to create subscritpion
i'm not using it. is it possible to change or cancel without using it?
how can i do with the help of asp.net core api and react fe?
what is the exact step i should do after do the checkout-session?
what all the datas i need to save in my local db for that?
That's what Checkout Sessions do, they create the underying Subscription when the customer completes checkout.
Yes, it's only used for creating Subscriptions, if you aren't direclty creating them you don't need to use that endpoint.
To accomplish what?
To accomplish what?
i'm trying to integrate stripe with my react-asp.net core spa app. to do the payment
i have done upto checkout. i have to implement the change and cancel the subscription
Once you create the Checkout Session, you provide your customer with the url to that session so they can complete the checkout process.
which url?
you mean this one?
SuccessUrl = $"{_baseUrl}/success.html?session_id={{CHECKOUT_SESSION_ID}}",
CancelUrl = $"{_baseUrl}/canceled.html",
var options = new SessionCreateOptions
{
PaymentMethodTypes = new List<string> { "card" },
SuccessUrl = $"{_baseUrl}/success.html?session_id={{CHECKOUT_SESSION_ID}}",
CancelUrl = $"{_baseUrl}/canceled.html",
Mode = "subscription",
LineItems = new List<SessionLineItemOptions>
{
new()
{
Price = paymentRequest.PriceId,
Quantity = 1
}
}
};
The url that is returned when the Checkout Session is created:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-url
not one of the URLs that you provide to it.
Checkout Sessions are hosted checkout pages, first you create one then you navigate your customer to it so they can complete the checkout process.
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