Registry / http-client / stripe-stripe-go

stripe-stripe-go

JSON →
library70.15.0+incompatiblegogounverified

Package stripe provides the binding for Stripe REST APIs.

go get github.com/stripe/stripe-go
INSTALL
IMPORT
SIG · STRIPE-STRIPE-GO
S
stripe-stripe-go
http-clientgov70.15.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

stripe
github.com/stripe/stripe-go

Shows how to create a charge using the Stripe Go library.

package main import ( "fmt" "github.com/stripe/stripe-go" "github.com/stripe/stripe-go/charge" ) func main() { stripe.Key = "sk_test_..." ch, _ := charge.New(&stripe.ChargeParams{ Amount: 2000, Currency: "usd", Source: &stripe.SourceParams{Token: "tok_visa"}, }) fmt.Println(ch.ID) }
Debug
Known issues
breakingMajor version incompatibility: v70 uses a different API structure than earlier versions.
fix
Use the correct import path for your version; v70+ uses github.com/stripe/stripe-go/v70.
affects: >=70.0.0
Upgrade
Version history
70.15.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources
stripe-stripe-go — go get stripe-stripe-go · libregistry