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 is very simple:
go get -u github.com/rikvdh/go-mollie
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)
}
}
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
Please read the Contribution Guidelines. Furthermore: Fork -> Patch -> Push -> Pull Request
This project is licensed under the MIT License. See the LICENSE file for the full license text.