Add metadata to subscription using stripe plugin #1514

Closed
opened 2026-03-13 08:44:41 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @CyrilPERIE on GitHub (Jul 17, 2025).

Is this suited for github?

  • Yes, this is suited for github

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",
}

Describe the solution you'd like

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

Describe alternatives you've considered

Ideally in the stripe plugin setup add a metadata column that store the metadatas.

Additional context

No response

Originally created by @CyrilPERIE on GitHub (Jul 17, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. 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", } ``` ### Describe the solution you'd like 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 ### Describe alternatives you've considered Ideally in the stripe plugin setup add a metadata column that store the metadatas. ### Additional context _No response_
GiteaMirror added the plugin label 2026-03-13 08:44:41 -05:00
Author
Owner

@Kinfe123 commented on GitHub (Jul 17, 2025):

duplicate #3429

@Kinfe123 commented on GitHub (Jul 17, 2025): duplicate #3429
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1514