#wema_24327
1 messages · Page 1 of 1 (latest)
Hi there!
We know nothing about "microsoft power pages".
But I am unable to do it with jQuery. Is there any way to do it?
What are you trying to do exactly?
I want to checkout with coupon
Maybe you can try Payment Links? https://stripe.com/docs/payment-links
I used redirectToCheckout api
So you are creating Checkout Sessions in the backend?
yes
So what's the issue? Once you have a Checkout Session, you can directly redirect users to the Checkout Session URL. No need to use redirectToCheckout.
to create checkout session server side scripting is needed
but in MS Power Pages only client side scripting is allowed
is not allowed*
You have two options to redirect to a Checkout Session URL:
- Return the checkout.url from your backend, and then on the frontend update the
window.location - Or do a <form action="xxx" method="POST"> on the frontend and the backend can do a redirect directly
we can not use server side scripting
Then you can't use Checkout Session. But you could use Payment Links.