Made stripe integration easy based on the official Stripe Go client library.
Go 1.19
or later
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
- 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 balance to a connected Stripe account
- get details of a balance transaction
Please check the test files.