Closed J7mbo closed 4 weeks ago
Hi @J7mbo metadata
isn't a valid param for subscription cancellation. You can refer to the API reference for the list of params that you can pass when cancelling a subscription.
You can get the customer ID from customer.subscription.deleted
event data. If you use a different ID to identify your customer and you want to attach the ID as a metadata to a subscription, you should use the update API
Describe the bug
I have an error when trying to attach metadata to SubscriptionCancelParams:
I get the same error from:
and also from:
Problems:
customer.subscription.deleted
if I can't even pluck out the user id of the person that cancelled? If that's the case, then the event is useless for me.To Reproduce
Try the code above.
Expected behavior
I can attach metadata to SubscriptionCancelParams without an error.
Code snippets
No response
OS
macOS
Go version
go version go1.23.2 darwin/arm64
stripe-go version
v80
API version
latest
Additional context
No response