[GH-ISSUE #3428] Add metadata to subscription using stripe plugin #9600

Closed
opened 2026-04-13 05:09:01 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @CyrilPERIE on GitHub (Jul 17, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3428

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). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3428 ### 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 locked label 2026-04-13 05:09:01 -05:00
Author
Owner

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

duplicate #3429

<!-- gh-comment-id:3085894445 --> @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#9600