SkillAgentSearch skills...

Paygap

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

Install / Use

/learn @GoFarsi/Paygap
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

TODO

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

Related Skills

View on GitHub
GitHub Stars53
CategoryDevelopment
Updated3mo ago
Forks18

Languages

Go

Security Score

97/100

Audited on Dec 23, 2025

No findings