Skip to content

omurbekjk/paybox.money-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go client for paybox.money

Paybox.money

https://paybox.money/docs/

Install

go get github.com/omurbekjk/paybox.money-go
go mod download
go mod vendor

Usage

payboxClient, err := NewClient("https://api.paybox.money", "merchantId", "merchantSecret", "test")
if err != nil {
    t.Fatalf("unexpected error %s", err.Error())
}
paymentRequest := &GeneratePaymentRequest{
    PgOrderId:       "isbn-1234-5678-90",
    PgAmount:        2022,
    PgCurrency:      "KGS",
    PgDescription:   "order to buy a book",
    PgTestingMode:   "1",
    PgRequestMethod: "POST",
}
response, err := payboxClient.GeneratePayment(paymentRequest)
if err != nil {
    t.Fatalf("unexpected error %s", err.Error())
}
fmt.Println(*response.PgRedirectUrl)

Todo

  • Enable/Disable testing mode
  • Cover with tests
  • etc...

About

go client for paybox.money

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages