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/v74
Creates a new Stripe customer.
package main
import (
"fmt"
"github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/customer"
)
func main() {
stripe.Key = "sk_test_..."
params := &stripe.CustomerParams{}
result, err := customer.New(params)
if err != nil {
panic(err)
}
fmt.Println(result.ID)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
74.30.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.