Add metadata to subscription using stripe plugin

In our application, a user can pay for other users. Once someone is tagged as a consumer, they are considered subscribed. To handle this, we created a view where a user can select other users to subscribe. We implemented the subscription logic using await authClient.subscription.upgrade, and we passed metadata like this: metadata: { consumerIds: "test,test,test,test", } We would like these metadata to be stored in the subscription metadata on Stripe’s side, so we can retrieve them from the available hooks: onSubscriptionUpdate onSubscriptionComplete This would allow us to store them in our database
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?