Skip to content

Recommendations for showing subscription plan pricing when a promo code is supplied #449

Answered by excid3
robbyrussell asked this question in Q&A
Discussion options

You must be logged in to vote

Sup @robbyrussell 👋

You'd just include the promo code in the subscribe call. The additional options get passed over to the Stripe API. See: https://github.com/pay-rails/pay/blob/v2.2.2/lib/pay/stripe/billable.rb#L56

You'll probably need to add something to keep track of which promo code and the discount that's applied. We're not currently saving any of those details.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@robbyrussell
Comment options

@excid3
Comment options

Answer selected by robbyrussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants