Skip to content

IAmRadek/cashbill.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cashbill.go

Go Reference

Go implementation of Cashbill API

Cashbill Documentation

https://api.cashbill.pl/api/payment-gateway/cashbill-payments-api

Usage

package main

import (
    "net/http"
    "time"

    "github.com/IAmRadek/cashbill.go"
)

func main() {
    // Create a new API client with default settings
    api := cashbill.NewAPI("your-shop-id", "your-secret")

    // Create a new API client with a custom HTTP client
    customClient := &http.Client{
        Timeout: 10 * time.Second,
    }
    apiWithCustomClient := cashbill.NewAPI("your-shop-id", "your-secret", cashbill.WithHTTPClient(customClient))

    // Create a new test API client
    testApi := cashbill.NewTestAPI("your-shop-id", "your-secret")

    // Create a new test API client with a custom HTTP client
    testApiWithCustomClient := cashbill.NewTestAPI("your-shop-id", "your-secret", cashbill.WithHTTPClient(customClient))

    // Use the API clients...
}

About

Go implementation of Cashbill API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages