Skip to content
forked from GoFarsi/paygap

Payment gateway providers SDK Go for zarinpal, idpay, pay.ir, and other gateway providers

License

Notifications You must be signed in to change notification settings

ErfanTech/paygap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayGap Go Reference

Payment gateway providers SDK Go for zarinpal, idpay, pay.ir, and other gateway providers.

paygap

Install For Go Version

go get -u github.com/GoFarsi/paygap

Usage

example for zarinpal provider (Other examples)

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/GoFarsi/paygap/client"
	"github.com/GoFarsi/paygap/providers/zarinpal"
)

func main() {
	c := client.New()
	z, err := zarinpal.New(c, "YOUR_MERCHANT_ID", false)
	if err != nil {
		log.Fatal(err)
	}

	resp, err := z.RequestPayment(context.Background(), 1000, "YOUR_CALL_BACK", "YOUR_CURRENCY", "description", nil)
	if err != nil {
		log.Fatal(err)
	}
	
	fmt.Println(resp)
}

Contributing

  1. fork project in your GitHub account.
  2. create new branch for new changes.
  3. after change code, send Pull Request.

00

TODO

  • zarinpal
  • idpay
  • pay.ir
  • payping
  • vandar.io
  • rayanpay
  • nextpay
  • mellat
  • parsian
  • pasargad
  • sadad
  • zibal

About

Payment gateway providers SDK Go for zarinpal, idpay, pay.ir, and other gateway providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%