#Suzz

1 messages ยท Page 1 of 1 (latest)

uneven prawnBOT
simple axle
dusk marsh
#

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?

simple axle
simple axle
simple axle
simple axle
dusk marsh
#

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

simple axle
#

Once you create the Checkout Session, you provide your customer with the url to that session so they can complete the checkout process.

dusk marsh
#

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

simple axle
#

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.

dusk marsh
#

ok