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

SubscriptionParams does not support Metadata #1362

Closed
dissoupov opened this issue Oct 21, 2021 · 2 comments
Closed

SubscriptionParams does not support Metadata #1362

dissoupov opened this issue Oct 21, 2021 · 2 comments
Assignees

Comments

@dissoupov
Copy link

As per documentation, https://stripe.com/docs/api/subscriptions/create
CreateSubscription should support metadata to attach additional information.
This is not supported in Go library as of v72.72

@richardm-stripe
Copy link
Contributor

richardm-stripe commented Oct 21, 2021

Hello @dissoupov, thank you for the report.

Can you provide more details? I was able to

params := &stripe.SubscriptionParams{}
params.AddMetadata("foo", "bar")
sub.New(params)

on my local test project and things worked.

I suspect the issue you are running into was that the .AddMetadata method is hard to discover because it works differently to the other fields that are specific to SubscriptionParams.

@dissoupov
Copy link
Author

Confirmed, works as expected.

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