[GH-ISSUE #3189] Add Discounts to subscriptions in Stripe plugin for customers #26829

Closed
opened 2026-04-17 17:32:48 -05:00 by GiteaMirror · 13 comments
Owner

Originally created by @zapobyte on GitHub (Jun 27, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3189

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts.

Describe the solution you'd like

Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users.

Describe alternatives you've considered

I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription.

Additional context

No response

Originally created by @zapobyte on GitHub (Jun 27, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3189 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts. ### Describe the solution you'd like Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users. ### Describe alternatives you've considered I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription. ### Additional context _No response_
GiteaMirror added the lockedenhancement labels 2026-04-17 17:32:48 -05:00
Author
Owner

@MikeCodeur commented on GitHub (Jul 1, 2025):

Could be great

<!-- gh-comment-id:3022389779 --> @MikeCodeur commented on GitHub (Jul 1, 2025): Could be great
Author
Owner

@MarkLee425 commented on GitHub (Jul 12, 2025):

Would really like to use it if officially supported.

<!-- gh-comment-id:3065774582 --> @MarkLee425 commented on GitHub (Jul 12, 2025): Would really like to use it if officially supported.
Author
Owner

@MarkLee425 commented on GitHub (Jul 12, 2025):

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts.

Describe the solution you'd like

Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users.

Describe alternatives you've considered

I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription.

Additional context

No response

Did you find any alternatives to do that?

<!-- gh-comment-id:3065779083 --> @MarkLee425 commented on GitHub (Jul 12, 2025): > ### Is this suited for github? > * [x] Yes, this is suited for github > > ### Is your feature request related to a problem? Please describe. > Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts. > > ### Describe the solution you'd like > Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users. > > ### Describe alternatives you've considered > I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription. > > ### Additional context > _No response_ Did you find any alternatives to do that?
Author
Owner

@DrewJohnsonGT commented on GitHub (Jul 14, 2025):

There doesn't seem to be a way via the current API to set allow_promotion_codes :(

<!-- gh-comment-id:3069584499 --> @DrewJohnsonGT commented on GitHub (Jul 14, 2025): There doesn't seem to be a way via the current API to set `allow_promotion_codes` :(
Author
Owner

@zapobyte commented on GitHub (Jul 14, 2025):

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts.

Describe the solution you'd like

Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users.

Describe alternatives you've considered

I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription.

Additional context

No response

Did you find any alternatives to do that?

No, but what we did was to use the stripe api and created a different integrated session for that part. A bit more work to do, but currently we didn't find any other way

<!-- gh-comment-id:3069630618 --> @zapobyte commented on GitHub (Jul 14, 2025): > > ### Is this suited for github? > > > > > > * [x] Yes, this is suited for github > > ### Is your feature request related to a problem? Please describe. > > Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts. > > ### Describe the solution you'd like > > Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users. > > ### Describe alternatives you've considered > > I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription. > > ### Additional context > > _No response_ > > Did you find any alternatives to do that? No, but what we did was to use the stripe api and created a different integrated session for that part. A bit more work to do, but currently we didn't find any other way
Author
Owner

@MarkLee425 commented on GitHub (Jul 14, 2025):

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts.

Describe the solution you'd like

Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users.

Describe alternatives you've considered

I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription.

Additional context

No response

Did you find any alternatives to do that?

No, but what we did was to use the stripe api and created a different integrated session for that part. A bit more work to do, but currently we didn't find any other way

Good to know. I am also considering to separate stripe logic without using this plugin. Thanks.

<!-- gh-comment-id:3070247010 --> @MarkLee425 commented on GitHub (Jul 14, 2025): > > > ### Is this suited for github? > > > > > > > > > * [x] Yes, this is suited for github > > > ### Is your feature request related to a problem? Please describe. > > > Currently there seems to be no way to add discounts to subscriptions. I looked over the Stripe plugin documentation but i do not see any way to add discounts. > > > ### Describe the solution you'd like > > > Would be really nice to be able to add coupon, as I had to create 2 different plans and manually subtract the value of the coupon from the original price so that I can add it as an "discount" plan for my users. > > > ### Describe alternatives you've considered > > > I've check all the stripe plugin documentation and there's no discount / coupon way to add for a subscription. > > > ### Additional context > > > _No response_ > > > > Did you find any alternatives to do that? > > No, but what we did was to use the stripe api and created a different integrated session for that part. A bit more work to do, but currently we didn't find any other way > Good to know. I am also considering to separate stripe logic without using this plugin. Thanks.
Author
Owner

@MarkLee425 commented on GitHub (Jul 14, 2025):

My use case is to have a discounted price for first 1000 registration, so probably what I will do is to directly set the price in stripe to the discounted price and keep using better auth plugin until it supports coupon code...

<!-- gh-comment-id:3070253834 --> @MarkLee425 commented on GitHub (Jul 14, 2025): My use case is to have a discounted price for first 1000 registration, so probably what I will do is to directly set the price in stripe to the discounted price and keep using better auth plugin until it supports coupon code...
Author
Owner

@zapobyte commented on GitHub (Jul 14, 2025):

Yes that can work as an alternative and the easiest approach.

<!-- gh-comment-id:3070299264 --> @zapobyte commented on GitHub (Jul 14, 2025): Yes that can work as an alternative and the easiest approach.
Author
Owner

@DrewJohnsonGT commented on GitHub (Jul 14, 2025):

I actually was able to allow promotion codes via the session params override
Which solved the issue for my use case

 subscription: {
  enabled: true,
  getCheckoutSessionParams: async () => {
    return {
      params: {
        allow_promotion_codes: true,
      },
    };
  },
<!-- gh-comment-id:3071372861 --> @DrewJohnsonGT commented on GitHub (Jul 14, 2025): I actually was able to allow promotion codes via the session params override Which solved the issue for my use case ``` subscription: { enabled: true, getCheckoutSessionParams: async () => { return { params: { allow_promotion_codes: true, }, }; }, ```
Author
Owner

@MarkLee425 commented on GitHub (Jul 15, 2025):

I actually was able to allow promotion codes via the session params override Which solved the issue for my use case

 subscription: {
  enabled: true,
  getCheckoutSessionParams: async () => {
    return {
      params: {
        allow_promotion_codes: true,
      },
    };
  },

Yes it will work for promotion codes, but in my use case, I am using coupon unfortunately :( and I dont want to allow promotion codes either. But anyway, thanks and good to know this approach.

<!-- gh-comment-id:3073383739 --> @MarkLee425 commented on GitHub (Jul 15, 2025): > I actually was able to allow promotion codes via the session params override Which solved the issue for my use case > > ``` > subscription: { > enabled: true, > getCheckoutSessionParams: async () => { > return { > params: { > allow_promotion_codes: true, > }, > }; > }, > ``` Yes it will work for promotion codes, but in my use case, I am using coupon unfortunately :( and I dont want to allow promotion codes either. But anyway, thanks and good to know this approach.
Author
Owner

@dosubot[bot] commented on GitHub (Oct 14, 2025):

Hi, @zapobyte. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested native support for adding discounts or coupons directly to subscriptions in the Stripe plugin.
  • Currently, users must create separate plans with adjusted prices to simulate discounts.
  • Other users like MarkLee425 and DrewJohnsonGT have shared workarounds, including using promotion codes via session params or the Stripe API directly.
  • The main limitation remains that coupon support is missing, and promotion codes are only a partial workaround.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of better-auth by commenting here to keep the discussion open.
  • If I don’t hear back within 7 days, I will automatically close this issue.

Thanks for your understanding and contribution!

<!-- gh-comment-id:3402609187 --> @dosubot[bot] commented on GitHub (Oct 14, 2025): Hi, @zapobyte. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested native support for adding discounts or coupons directly to subscriptions in the Stripe plugin. - Currently, users must create separate plans with adjusted prices to simulate discounts. - Other users like MarkLee425 and DrewJohnsonGT have shared workarounds, including using promotion codes via session params or the Stripe API directly. - The main limitation remains that coupon support is missing, and promotion codes are only a partial workaround. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of better-auth by commenting here to keep the discussion open. - If I don’t hear back within 7 days, I will automatically close this issue. Thanks for your understanding and contribution!
Author
Owner

@neverstew commented on GitHub (Mar 12, 2026):

Not stale - still required!

<!-- gh-comment-id:4048678091 --> @neverstew commented on GitHub (Mar 12, 2026): Not stale - still required!
Author
Owner

@github-actions[bot] commented on GitHub (Mar 31, 2026):

This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.

<!-- gh-comment-id:4165921976 --> @github-actions[bot] commented on GitHub (Mar 31, 2026): This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26829