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
 
 
 
 
 
 
 
 
 
 

Go wrapper for MultiSafepay

MultiSafepay is a payment service provider that supports several international payment methods. This package is a wrapper for the MultiSafepay API, created to simplify and standardize the integration into Go projects.

This project is maintained by the MultiSafepay community. There are several wrappers in other programming languages, some maintained by the development team and some by the community. See the page [Plugin integration]

Don't hesitate to contact me for questions about this wrapper. I'm a professional developer and partner of MultiSafepay. I've integrated several webshops with this payment service provider.

import "github.com/kurt-stolle/go-multisafepay/multisafepay"

Documentation

See GoDoc

Contributing

Pull requests and issues are welcome.

Basic example

The following code example shows the creation of an order, and outputs the response from the API.

package main

import (
  "errors"
  "fmt"
  
  "github.com/kurt-stolle/go-multisafepay/multisafepay"
)

func main() {
  // Set-up the client with the required parameters (api url and key)
  var client = multisafepay.NewClient(multisafepay.TestAPIURL, "my_api_key")
  
  // Define the order
  var order = multisafepay.Order{
    // order parameters go here, see documentation
  }
  
  // Create the order using the client defined above
  var response, err = client.CreateOrder(order)
  if err != nil {
    panic("could not create order: " + err.Error())
  }
  
  // Print the response data
  fmt.Print(response.Data)
}

About

Go wrapper for the MultiSafePay API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages