{"repo":"craftgate/craftgate-go-client","free":true,"listed":false,"github":"https://github.com/craftgate/craftgate-go-client","clone":"git clone https://github.com/craftgate/craftgate-go-client.git","description":"Go library for Craftgate API","language":"Go","stars":17,"topics":["client-library","craftgate","craftgate-api","golang","golang-client","payment-gateway","golang-library","payment","payment-orchestration"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Craftgate Go Client This repo contains the Go library for Craftgate API. Requirements - Go 1.19 or newer Installation Usage You can import Craftgate client using: To access the Craftgate API you'll first need to obtain API credentials (e.g. an API key and a secret key). If you don't already have a Craftgate account, you can signup at https://craftgate.io Once you've obtained your API credentials, you can start using Craftgate by instantiating a Craftgate with your credentials. Also, you can pass the options to make localization for API responses. You can use tr or en right now. You should use production API servers at https://api.craftgate.io for real world. For testing purposes, please use the sandbox URL https://sandbox-api.craftgate.io . Examples Included in the project are a number of examples that cover almost all use-cases. Refer to the tests/ folder] for more info. Running the Examples If you've cloned this repo on your development machine and wish to run the examples you can run an example with the command go test ./... or run single test with the command go test tests/installment test.go Credit Card Payment Use Case Let's quickly review an example where we implement a credit card payment scenario. For more examples covering almost all use-cases, check out the examples in the tests/ folder Idempotency Mutating operations accept an optional idempotency key. Set it on the request and the client sends it as the x-idempotency-key header, so a request can be safely retried","default_branch":null,"files":null,"tree":[],"storefront":"/r/craftgate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/craftgate/craftgate-go-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}