{"repo":"stripe/stripe-go","free":true,"listed":false,"github":"https://github.com/stripe/stripe-go","clone":"git clone https://github.com/stripe/stripe-go.git","description":"Go library for the Stripe API.","language":"Go","stars":2627,"topics":["stripe-sdk","stripe"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Go Stripe [!TIP] Want to chat live with Stripe engineers? Join us on our Discord server. The official [Stripe][stripe] Go client library. Requirements Per our Language Version Support Policy, we support the 4 most recent Go versions at the time of release. Currently, that's Go 1.22+ . Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=go#stripe-sdk-language-version-support-policy Installation Make sure your project is using Go Modules (it will have a go.mod file in its root if it already is): Then, reference stripe-go in a Go program with import : Run any of the normal go commands ( build / install / test ). The Go toolchain will resolve and fetch the stripe-go module automatically. Alternatively, you can also explicitly go get the package into a project: Documentation For a comprehensive list of examples, check out the [API documentation][api-docs]. For details on all the functionality in this library, see the [Go documentation][goref]. Below are a few simple examples: Customers PaymentIntents Events Alternatively, you can use the event.Data.Raw property to unmarshal to the appropriate struct. Authentication with Connect There are two ways of authenticating requests when performing actions on behalf of a connected account, one that uses the Stripe-Account header containing an account's ID, and one that uses the account's keys. Usually the former is the recommended approach. [See the documentation for more information][connect]. To u","default_branch":null,"files":null,"tree":[],"storefront":"/r/stripe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stripe/stripe-go/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."}