Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Scanpay Go client

The official Go client library for the Scanpay API (docs). You can always e-mail us at help@scanpay.dk, or chat with us on IRC at Freenode #scanpay.

Installation

go get github.com/scanpaydk/go-scanpay

Usage

To create a payment link all you need to do is:

package main
import(
    "github.com/scanpaydk/go-scanpay"
    "fmt"
)

func main() {
    client := scanpay.NewClient(" API KEY ")
    data := scanpay.PaymentURLData {
        Items: []scanpay.Item {
            {
                Name:    "Pink Floyd: The Dark Side Of The Moon",
                Quantity: 2,
                Total:   "199.98 DKK",
                SKU:     "fadf23",
            },
        },
    }
    url, err := client.NewURL(&data, nil)
    if err != nil {
        fmt.Println("Error:", err)
        return
    }
    fmt.Println(url)
}

About

Scanpay Go client library

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages