Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spaghettifunk/go-mollie
Mollie wrapper API written in Go
https://github.com/spaghettifunk/go-mollie
golang-wrapper mollie mollie-payments-api
Last synced: about 1 month ago
JSON representation
Mollie wrapper API written in Go
- Host: GitHub
- URL: https://github.com/spaghettifunk/go-mollie
- Owner: spaghettifunk
- License: mit
- Created: 2018-07-16T19:27:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-20T16:17:59.000Z (over 6 years ago)
- Last Synced: 2024-10-02T09:26:31.991Z (about 2 months ago)
- Topics: golang-wrapper, mollie, mollie-payments-api
- Language: Go
- Size: 1.39 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/davideberdin/go-mollie.svg?branch=master)](https://travis-ci.com/davideberdin/go-mollie) [![Go Report Card](https://goreportcard.com/badge/github.com/davideberdin/go-mollie)](https://goreportcard.com/report/github.com/davideberdin/go-mollie)
# Mollie Go SDK
Mollie wrapper API written in Go.```bash
go get github.com/davideberdin/go-mollie/mollie
```### Usage Example
```
package mainimport (
"fmt"
"github.com/davideberdin/go-mollie/mollie"
)func main() {
// true for testing mode
c := mollie.NewClient("your-api-key", true)
p := &mollie.PaymentRequest{
Amount: map[string]string{
"currency": "EUR",
"value": "100.00",
},
Description: "Testing Payment",
RedirectURL: "http://2e9fafad.ngrok.io",
WebhookURL: "http://2e9fafad.ngrok.io",
Method: "banktransfer",
BillingEmail: "[email protected]",
DueDate: "2018-09-12",
Locale: "nl_NL",
}
r, err := c.CreatePayment(p)
if err != nil {
panic(err)
}
fmt.Println(r)
}
```