Go
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.mattildapayments.com/payment-method-definitions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
{ "items": [ { "id": "bank", "icon_url": "https://api.sandbox.mattildapayments.com/assets/payment-method-definitions/bank.svg", "display_name": "Bank", "long_display_name": "Bank (BACS)", "method": "BACS" } ] }
payment-method-definitions.read
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Returns a list of payment method definitions.
A list of available payment method definitions.
Was this page helpful?