Skip to content

[UBP ] Allow users to apply promotion codes for coupons in the UBP payment form #12341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #15148
gtsiolis opened this issue Aug 24, 2022 · 8 comments
Closed
Tracked by #15148
Labels
component: dashboard feature: billing meta: stale This issue/PR is stale and will be closed soon needs visual design team: webapp Issue belongs to the WebApp team type: feature request New feature or request

Comments

@gtsiolis
Copy link
Contributor

gtsiolis commented Aug 24, 2022

Problem to solve

Some Gitpod programs will use Stripe coupons with predefined discounts and expirations.

Entering these coupons manually (by Gitpod admins) is doable through the Stripe dashboard, but it would be better if this were self-serve, and users could perform this actions on their own while setting up their billing account in Gitpod.

Unfortunately, Stripe promotion codes cannot be used in the Stripe self-service Portal in our case. Customers can only use the portal to cancel (not modify) their subscriptions. See https://stripe.com/docs/customer-management/get-started#limitations

This suggests that we need to extend our payment configuration form to accept promo codes on initial configuration.

See investigation in comments below, and discussion (internal).

An ideal solution would be one where a promo-code could be applied not just during the initial signup, but also later once the subscription is active.

@jankeromnes
Copy link
Contributor

Hmm -- according to the Stripe docs, it seems that promotion codes can only be added in a "checkout" flow, which we don't use (we only use a "setup" flow, where you add your credit card details, and your subscription is then created automatically by Gitpod behind the scenes).

I think that's why, even though we do allow Stripe users to use promotion codes:

Screenshot 2022-08-24 at 14 53 48

there doesn't seem to be any way in the Stripe customer portal to add a promotion code to your existing subscription:

Screenshot 2022-08-24 at 14 58 35

I think we may need to have some custom UI to apply coupon codes, maybe. 🤔

@jankeromnes jankeromnes moved this to Next Milestone in 🍎 WebApp Team Aug 24, 2022
@geropl geropl moved this from Next Milestone to Scheduled in 🍎 WebApp Team Sep 9, 2022
@geropl geropl removed the status in 🍎 WebApp Team Sep 12, 2022
@jldec jldec moved this to Scheduled in 🍎 WebApp Team Sep 13, 2022
@geropl geropl removed the status in 🍎 WebApp Team Sep 19, 2022
@jldec jldec moved this to Scheduled in 🍎 WebApp Team Sep 22, 2022
@jldec
Copy link
Contributor

jldec commented Sep 22, 2022

According to https://stripe.com/docs/billing/subscriptions/coupons#promotion-codes

If you’ve implemented the customer portal and turned on promotion codes, customers can apply a discount to their existing subscriptions in the portal.

@jldec jldec changed the title Allow users to apply (discount) coupons on their billing account Allow users to apply promotion codes for coupons on their UBP billing account Sep 22, 2022
@geropl geropl removed the status in 🍎 WebApp Team Oct 7, 2022
@jldec
Copy link
Contributor

jldec commented Nov 23, 2022

More research reveals that promotion codes cannot be used in the Stripe Portal in our case customers can only cancel their subscriptions. See https://stripe.com/docs/customer-management/get-started#limitations

This means that the promo code would have to be entered earlier, when first setting up the subscription.

@jldec jldec moved this to Scheduled in 🍎 WebApp Team Nov 23, 2022
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 23, 2022

@jldec Could it help if we added a functionality to Add funds (balance) to the billing and use a promo code there?

To clarify, the initial idea of the proposal of this issue was to allow users to add funds (balance) but with a discounted price or no price at all, not apply a discounted rate or something.

@jldec
Copy link
Contributor

jldec commented Nov 23, 2022

Thanks for the suggestion @gtsiolis

This issue is specifically to enable self-service use of Stripe promo codes by extending our payment form. We need all the nice coupon features built into Stripe e.g. expirations, and single-use

There's a separate issue to extend our credits model with our own coupon-like behavior, which would allow Gitpod or 3rd parties to grant credits, and maybe your suggested approach would make sense for that.

@jldec jldec changed the title Allow users to apply promotion codes for coupons on their UBP billing account Allow users to apply promotion codes for coupons in our payment form when first configuring their UBP billing account Nov 23, 2022
@jldec
Copy link
Contributor

jldec commented Nov 23, 2022

@gtsiolis I updated the issue title and description to reflect this new information.

@gtsiolis
Copy link
Contributor Author

Thanks, @jldec !

@jldec jldec changed the title Allow users to apply promotion codes for coupons in our payment form when first configuring their UBP billing account [UBP ] Allow users to apply promotion codes for coupons in the UBP payment form Nov 25, 2022
@jldec jldec removed the status in 🍎 WebApp Team Jan 9, 2023
@jldec jldec moved this to Scheduled in 🍎 WebApp Team Jan 23, 2023
@geropl geropl removed the status in 🍎 WebApp Team Feb 7, 2023
@stale
Copy link

stale bot commented May 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 2, 2023
@stale stale bot closed this as completed Jun 11, 2023
@github-project-automation github-project-automation bot moved this to In Validation in 🍎 WebApp Team Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard feature: billing meta: stale This issue/PR is stale and will be closed soon needs visual design team: webapp Issue belongs to the WebApp team type: feature request New feature or request
Projects
Status: In Validation
Development

No branches or pull requests

3 participants