Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

mrzen/axcessms

Repository files navigation

Axcessms Tests

API Client library for Axcessms payment gateway.

Usage

import "fmt"
import "github.com/mrzen/axcessms"

func main() {
    client := accessms.New(axcessms.EnvironmentTokenProvider("AXCESSMS_TOKEN"))

    checkout, err := client.Checkout(&axcessms.CreateCheckoutRequest{
        EntityId: EntityId,
        Currency: "USD",
        Amount: 6969,
        PaymentType: "DB"
    })

    if err != nil {
        fmt.Println("Got an error: %s", err)
    } else {
        fmt.Println("Checkout Token: %s", checkout.ID)
    }
}