Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Product error: Unexpected unit_label #158

Open
sanderpick opened this issue Oct 6, 2020 · 1 comment
Open

Create Product error: Unexpected unit_label #158

sanderpick opened this issue Oct 6, 2020 · 1 comment

Comments

@sanderpick
Copy link

Using the latest Go client, I get the following error when creating a product:

Request error from Stripe (status 400): {"status":400,"message":"Unexpected unit_label","type":"invalid_request_error"}

Go client code:

product, err := client.Products.New(&stripe.ProductParams{
	Name:      stripe.String("Stored Data"),
	UnitLabel: stripe.String("50 MiB"),
})

Perhaps unit_label is missing from the mocked model?

@adrienverge
Copy link
Owner

Perhaps unit_label is missing from the mocked model?

Probably! Contributions welcome. Please see similar issues and pull requests for how to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants