stripe-samples/connect-direct-charge-checkout

redirect to checkout from server api

Closed this issue · 1 comments

First, thanks for having a bunch of samples to play around.

would like to redirect the checkout session created at the server (node).

Could you please help in creating checkout api endpoint with session at server. If we have this endpoint, we shall enforce the response to redirect from the server rather than the client initiating the redirectToCheckout({ sessionId }).

Thanks.

Hey @saravanakj! Sorry for the delay in responding. We don't actually have a way to redirect from the server currently. All redirection requires passing the ID to the client and using Stripe.js to redirect.