Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
/ go-mollie Public archive

API for Mollie (Dutch Payment Service Provider) in Golang

License

Notifications You must be signed in to change notification settings

rikvdh/go-mollie

Repository files navigation

Go Mollie API

Build Status Go Report Card GoDoc codecov

The Go Mollie API is designed for use with the Mollie Payment Service Provider. Mollie is a Dutch Payment Service Provider. This API is an interface to Mollie for Golang.

Installation

Installation is very simple:

go get -u github.com/rikvdh/go-mollie

Usage

A very basic example is shown below. Just get an instance of the API with mollie.Get("<API-KEY>") and use one of the available API's. Other examples are show in the _examples directory.

package main

import (
	"fmt"

	"github.com/rikvdh/go-mollie"
)

func main() {
	m := mollie.Get("<apikey>")

	methods, err := m.Methods().List()
	if err != nil {
		panic(err)
	}

	for _, method := range methods {
		fmt.Printf("method %s: %s\n", method.ID, method.Description)
	}
}

Status

It works and I myself use it in production without issues. Currently only authentication by API keys. See the documentation of Mollie for more information on the API's. Currently implemented API's:

  • Payments API
  • Methods API
  • Issuers API
  • Refunds API
  • Customers API
  • Mandates API
  • Subscriptions API

Other API's which require OAuth API authentication:

  • Connect API
  • Permissions API
  • Organizations API
  • Profiles API
  • Settlements API
  • Invoices API

Contributing

Please read the Contribution Guidelines. Furthermore: Fork -> Patch -> Push -> Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.

Releases

No releases published

Packages

No packages published