#wema_24327

1 messages · Page 1 of 1 (latest)

main needleBOT
stray solar
#

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?

wary pier
#

I want to checkout with coupon

stray solar
wary pier
#

I used redirectToCheckout api

stray solar
#

So you are creating Checkout Sessions in the backend?

wary pier
#

yes

stray solar
#

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.

wary pier
#

to create checkout session server side scripting is needed

#

but in MS Power Pages only client side scripting is allowed

wary pier
stray solar
#

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
wary pier
#

we can not use server side scripting

stray solar
#

Then you can't use Checkout Session. But you could use Payment Links.