Skip to content

blackestwhite/zibalgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zibalgo

Run Tests

add package to your project:

go get github.com/blackestwhite/zibalgo

Example of creating and verifying payments:

// Create a new ZibalClient instance
client := zibalgo.NewClient("zibal")

// Create a PaymentRequest instance
paymentRequest := PaymentRequest{
    CallbackURL: "https://example.com/callback",
    Description: "Test payment",
    Amount:      10000,
}

// Call the NewPayment method with a context
ctx := context.Background()
res, err := client.NewPayment(ctx, paymentRequest)
if err != nil {
    log.Println(err)
}

verificationRequest := VerificationRequest{
    TrackID: res.TrackID,
}
// Call the VerifyPayment method with a context
_, err = client.VerifyPayment(ctx, verificationRequest)
if err != nil {
    log.Println(err)
}

About

golang package to use Zibal payment gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages