iqan / paytm-checksum-api-nodejs

A PayTM checksum api in nodejs to provide backend for Mobile/Web apps
MIT License
8 stars 3 forks source link

Endpoint not found #1

Closed pyanishjain closed 4 years ago

pyanishjain commented 4 years ago

when i run start server it gives me Endpoint not found on webpage for localhost:3000 and localhost:3000/paytm

iqan commented 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

avani17101 commented 4 years ago

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