Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindinventory/golang-paytm
Quick Paytm Integration using Golang
https://github.com/mindinventory/golang-paytm
easy-to-use golang golang-library golang-payment golang-paytm golang-paytm-integration paytm
Last synced: 2 months ago
JSON representation
Quick Paytm Integration using Golang
- Host: GitHub
- URL: https://github.com/mindinventory/golang-paytm
- Owner: Mindinventory
- License: mit
- Created: 2019-04-22T08:51:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-14T11:16:42.000Z (over 5 years ago)
- Last Synced: 2024-06-21T06:13:49.296Z (8 months ago)
- Topics: easy-to-use, golang, golang-library, golang-payment, golang-paytm, golang-paytm-integration, paytm
- Language: Go
- Homepage: https://www.mindinventory.com/blog/paytm-integration-using-golang/
- Size: 150 KB
- Stars: 58
- Watchers: 7
- Forks: 48
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quick Paytm Integration using Golang
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/mindinventory/Golang-Paytm/blob/master/LICENSE)Paytm is India’s most popular and widely accepted Payment Gateway. Moreover, integration of it to your website or mobile app is simple enough if you possess Paytm Merchant Key. Though, paytm integration is available for various platforms, integrating it in the Golang might not be known to all.
Read about how we made this on our blog (https://www.mindinventory.com/blog/paytm-integration-using-golang/)
## What it is?
It is a well managed repository, using which one can integrate Patym in their GoLang Website in quick simple steps once they get Paytm Merchant Key from Paytm official website.
## Prerequisite
1. Create a merchant account in Paytm.
2. Get PAYTM_MERCHANT_KEY which will be get once the onboarding process is completed.## Steps to Follow
1. Set Up Merchant Key got from above process
Provide the value for PAYTM_MERCHANT_KEY in .env file
```
PAYTM_MID = "XXXXXXXXXXXXXXXXXXXXXXXXXX"
PAYTM_MERCHANT_KEY = "XXXXXXXXXXXXXXXX"
PAYTM_CHANNEL_ID = "WAP"
PAYTM_CHANNEL_ID_WEB = "WEB"
PAYTM_WEBSITE = "XXXXXXX"
PAYTM_WEBSITE_WEB = "XXXXX"
PAYTM_INDUSTRY_TYPE_ID = "XXX"
```2. Verify Checksum Hash for successful transactions.
A checksum hash is generated by the paytm which is verified on merchant server for successful transaction.
For this there is a file library.go in Paytm folder which need to be copied to your local as it works for generation and verification of checksum.3. Set Mode
Paytm integration can be done in two stages i.e. staging and production modes have different Paytm transaction urls.
* Staging mode transaction url *
PAYTM_TXN_URL = "https://securegw-stage.paytm.in/theia/processTransaction"
PAYTM_TXN_STATUS_URL = `https://securegw-stage.paytm.in/merchant-status/getTxnStatus`* Production mode transaction url *
PAYTM_TXN_URL_STAGE = "https://secure.paytm.in/oltp-web/processTransaction"
PAYTM_TXN_STATUS_URL_STAGE = `https://securegw-stage.paytm.in/merchant-status/getTxnStatus`For more details about Paytm refer this link
https://developer.paytm.com/docs/v1/payment-gateway
## LICENSE!PayTm integration using Golang is [MIT-licensed](https://github.com/mindinventory/Golang-Paytm/blob/master/LICENSE)
## Let us know!
We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.