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

paytm-checksum-api-nodejs

A PayTM checksum api in nodejs to provide backend for Mobile/Web apps

Getting Started

Prerequisites

Run api

Endpoints

V1 Base url pattern: 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?order_id=123&customer_id=123&amount=10&email=abc@gmail.com - Will redirect to PayTM gateway for payments
http://localhost:3000/api/v1/paytm/callback - This endpoint is called from PayTM with payload about operation

Deploy API to Firebase Cloud Functions

You can also refer to firebase-functions-example.