Skip to content

paladium/yigim-gateway-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yigim gateway SDK

The package provides ability to access the Yigim payment's api via the Go language.

Usage

To install run:

go get github.com/paladium/yigim-gateway-go

Importing

import yigim "github.com/paladium/yigim-gateway-go"

Start card linking

import yigim "github.com/paladium/yigim-gateway-go"

client := yigim.NewClient(&yigim.Configuration{
    Secret:   "YOUR_SECRET",
    Merchant: "YOUR_MERCHANT",
    Address:  "https://sandbox.api.pay.yigim.az",
})
result, err := client.Create(&yigim.PaymentCreate{
    Reference:   reference,
    Type:        "SMS",
    Save:        "y",
    Amount:      100,
    Currency:    "944",
    Biller:      "[YOUR_BILLER]",
    Description: "Test",
    Template:    "TPL0001",
    Language:    "en",
    Callback:    "[YOUR_WEBHOOK_URL]",
})
if err != nil{
    panic(err)
}

Testing

To run tests, open the file run_tests.sh and set your variables, after that run:

sh ./run_tests.sh

Releases

No releases published

Packages

No packages published