Closed pyanishjain closed 4 years ago
The endpoint url is : http://<host>:<port>/api/v1/paytm/<endpoint>
Examples: http://localhost:3000/api/v1/paytm/healthcheck - To verify if API is running correctly http://localhost:3000/api/v1/paytm/initiatePayment - Will redirect to PayTM gateway for payments http://localhost:3000/api/v1/paytm/callback - This endpoint is called from PayTM with payload about operation
on http://localhost:3000/api/v1/paytm/healthcheck I get "Working" but on http://localhost:3000/api/v1/paytm/initiatePayment "Something went wrong" and http://localhost:3000/api/v1/paytm/callback "Endpoint not found"
I updated my appConfig as const appConfig = {
port: process.env.PORT || 3000,
hostUrl: process.env.HOST_URL || http://localhost
};
and updated mid, key, and transaction URL according to details in Paytm for business dashboard.
Any idea @iqans on what is going wrong? thanks
when i run start server it gives me Endpoint not found on webpage for localhost:3000 and localhost:3000/paytm