No record of coupon / promotion code stored w/ subscription. #868
Replies: 4 comments
-
We don't support coupons / discounts yet. Haven't decided if we need to we should shove this into the Pay::Subscription or if we need to introduce another model (ideally we don't). Coupons on Stripe apply to both Customers and Subscriptions as well. Ideally, we also support this for Braintree & Paddle which is why it's easier said than done. |
Beta Was this translation helpful? Give feedback.
-
@excid3 Totally fair. Just thought I'd mention it as I ran into it. Honestly, I'm impressed with how easy it was to support with Stripe, so kudos. Not a blocker for me, so definitely understand if it's a "down the line" thing. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@excid3 if I wanted to modify the sync code to store the coupon from stripe during a webhook how would I do that? |
Beta Was this translation helpful? Give feedback.
-
You can override the method. |
Beta Was this translation helpful? Give feedback.
-
I've been working on implementing the usage of promotion codes and coupons to allow discounts to users. Overall, this was super easy to implement with the gem, but one thing I noticed was that when a coupon or promotion code is used, it's not stored w/ the subscription, so you wouldn't know (until you look at charges) that the user had a discounted subscription.
Not sure if this is a bug or just not accounted for yet? I'd think either a new "discount" field could be added or maybe this could be stored in the data or metadata fields (this is what I'm doing now, manually adding it to the metadata)?
Additional information...
What gets stored on the subscription:
Request POST body (to STRIPE):
Response body:
Beta Was this translation helpful? Give feedback.
All reactions