#bowbow-checkout-asp.net
1 messages · Page 1 of 1 (latest)
hello sir
the problem is unable to redirect me to the Stripe checkout page
when i clicked the button (btnpay) it justt nothing happens
and the code i am putting it at the page load
session id can be generate
so not sure what is the problem right now
Simplify your integration drastically. Don't try to redirect client-side with redirectToCheckout(). Instead, the Session you create server-side has the Url property, just redirect with asp.net, server-side, to that URL
what do this means
sry i am just new to programming
Totally fine, we'll get there but I have never written asp.NET in my life, so I can only respond in abstract and you have to adapt this to your own programming language/stack
Right now, if you read your code, you have Javascript client-side, that will get the Session's id (the cs_test_123456) and then redirect to Checkout. This is complex and that's where you are stuck
so don't do that, instead, write code that can redirect you from your server side code
Look at https://stripe.com/docs/checkout/integration-builder?server=dotnet which does var service = new SessionService(); Session session = service.Create(options); Response.Headers.Add("Location", session.Url); return new StatusCodeResult(303);
you'll want something equivalent in dotnet