Reputation: 9
when redirecting URL then showing this error
My server is nodeJS but when redirecting my specific pages from SSLCommerzsuccess_url: I can not show my pages when I hit the redirect URL manually and then show this page info;
Upvotes: 0
Views: 615
Reputation: 1
I was facing a similar issue, here is how I fixed it.
Example code:
app.post('payment/success', async (req, res) => {
res.redirect('http://{clientURL}/payment/invoice')
});
Code Flow: SSLCommerz will hit the success route in your server as a POST method and after that, it will redirect to your client success page.
Upvotes: 0
Reputation: 16
ssl commerz is making a post request to get the success route, we normally use get request to get a page, change the request to post for that page and it should work
Upvotes: 0
Reputation: 21
Not related to redirection or sslcommerz. You need to define a route which can serve the page at that URL.
Upvotes: 0