https://github.com/ravi8x/laravel-paytm-server
PayTM backend for e-commerce app
https://github.com/ravi8x/laravel-paytm-server
e-commerce-example laravel5 payment-integration paytm paytm-merchant
Last synced: 3 months ago
JSON representation
PayTM backend for e-commerce app
- Host: GitHub
- URL: https://github.com/ravi8x/laravel-paytm-server
- Owner: ravi8x
- Created: 2019-02-26T13:19:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T17:57:53.000Z (about 6 years ago)
- Last Synced: 2025-02-01T04:31:38.357Z (4 months ago)
- Topics: e-commerce-example, laravel5, payment-integration, paytm, paytm-merchant
- Language: PHP
- Size: 278 KB
- Stars: 48
- Watchers: 4
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel PayTM Backend - REST API
===================
Larvel e-commerce project including PayTM payement gateway solution.## Android Demo App
Refer [Mart 9](https://github.com/ravi8x/Android-PayTM) e-commerce that was built using the REST API provided in this project.
REST API
===================
Base Url: [https://demo.androidhive.info/paytm/public/api/](https://demo.androidhive.info/paytm/public/api/)Postman collection: [https://www.getpostman.com/collections/8b2e7763a8b7e0673918](https://www.getpostman.com/collections/8b2e7763a8b7e0673918)
|Header|Value|Description|
|----------|--------|------|
|**Authorization**|Bearer A492Kdleo3d83ba21699…|Use the token received in /login or /register call||Endpoint|Method|Description|
|----------|--------|------|
|**/appConfig**|GET|PayTM app config like Merchant ID and app environment (dev / production)|
|**/register**|POST|Registering a new user. This returns auth token needed to make further calls|
|**/login**|POST|Login of an existing user. This returns auth token needed to make further calls|
|**/products**|GET|Fetching all products along with name, thumbnail and price|
|**/prepareOrder**|POST|Preparing a new order. This takes list of cart items and gives the unique Order ID that needs to be sent to PayTM|
|**/getChecksum**|POST|Generates the checksum needed while redirecting to PayTM payment screen|
|**/transactionStatus**|POST|Verifies the transaction status once the payment is done. This involves our backend server making call to PayTM server and verifies the transaction|
|**/transactions**|GET|List of transactions made by a user|
|**/orders/{id}**|GET|Complete details of a single order including the total amount and list of items ordered|