Go IDPay API Wrapper
go get github.com/haashemi/go-idpay
package main
import (
"fmt"
"github.com/haashemi/go-idpay"
)
func main() {
// 1- create new idpay client
idp := idpay.New("My-IDPay-APIKey")
// 2- create new transaction
tr, _ := idp.CreateTransaction(orderID, callbackURL, amount, nil)
// 3- verify the transaction
trInfo, _ := idp.VerifyTransaction(tr.ID, orderID)
}