package stripe import ( "context" "os" "github.com/stripe/stripe-go/v86" // "github.com/stripe/stripe-go/v86/customer" ) type Customer struct { Name string } func MakeCustomer() (*Customer, error) { sc := stripe.NewClient(os.Getenv("LX_STRIPE_KEY")) // sc.Prar params := &stripe.CustomerCreateParams{ Name: stripe.String("my_customer"), Email: stripe.String("my_customer@mydomain.com"), } result, err := sc.V1Customers.Create(context.Background(), params) return &Customer{Name: result.Name}, err }