GithubHelp home page GithubHelp logo

mindinventory / golang-payu Goto Github PK

View Code? Open in Web Editor NEW
58.0 7.0 50.0 148 KB

Quick PayU Integration using Golang

Home Page: https://www.mindinventory.com/golang-development.php

License: MIT License

Go 100.00%
golang golang-payment golang-payu payu payumoney easy-to-use

golang-payu's Introduction

Quick PayU Integration using Golang

License: MIT

PayU is one of the widely accepted payment gateways for online payment integration especially in India and other countries like Poland, Brazil, SouthAfrica and Turkey. It might be interesting for you if you are having your website made in GoLang and looking for integrating Payu it as it might be even more simple for you with this repository.

What it is?

It is a well managed repository, using which one can integrate PayU in their GoLang Website in quick simple steps once they get PayU Merchant Key from PayU official website.

Prerequisite

  1. Create a merchant account in PayU.
  2. Get PAYU_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 PAYU_MERCHANT_KEY in .env file

#PayU Payment sandbox details
merchant_key_stage = "XXXXXXXXX"
merchant_salt_stage = "XXXXXXX"
redirect_url_stage = `https://test.payu.in/_payment`

#PayU Payment Production details
merchant_key = "XXXXXXXXX"
merchant_salt = "XXXXXXXX"
redirect_url = `https://secure.payu.in/_payment`

PAYMENT_MIDDLEWARE_URL = `http://localhost/payu.php`

  1. Verify Checksum Hash for successful transactions.

A checksum hash is generated by the payu which is verified on merchant server for successful transaction. For this there is a file payu.go which need to be copied to your local as it works for generation and verification of checksum.

  1. Set Mode

PayU integration can be done in two stages i.e. staging and production modes have different PayU transaction urls.

  1. In staging mode we are using sandbox details for testing the payU working
 Staging mode transaction url 
 https://test.payu.in/_payment
  1. If you are using production mode means it accepts original details of payU
 Production mode transaction url    
 https://secure.payu.in/_payment

LICENSE!

PayU integration using Golang is MIT-licensed

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.

golang-payu's People

Contributors

malvikiran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.