Skip to content

pilinux/stripego

Repository files navigation

stripego

CodeQL Go Linter MIT license Codecov Go Reference

Made stripe integration easy based on the official Stripe Go client library.

Requirements

Go 1.19 or later

Installation

Use Go Modules in your project:

go mod init <project>

Then, reference stripego in your code:

import (
	"github.com/pilinux/stripego"
)

Add the missing dependencies by tidying up go.mod file:

go mod tidy

Features

PaymentIntent

  • create a new PaymentIntent object
  • update the amount of an existing PaymentIntent object
  • update the payment method of an existing PaymentIntent object
  • cancel an existing PaymentIntent object

Transfer

  • transfer balance to a connected Stripe account

Transaction

  • get details of a balance transaction

Usage

Please check the test files.