How best to store the billing period of a Stripe Subscription #693
Unanswered
mpvosseller
asked this question in
General
Replies: 1 comment
-
It would be nice to have Want to send a PR? I would probably add them as datetime columns. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to store the "current billing period" of a Stripe Subscription so I can display a message like "Your plan renews on September 9, 2023.". Any recommendations on how best to do that?
The best I've come up with (at a high level) is:
1- Create a new model called
SubscriptionDetail
with abelongs_to :subscription
relationship2- Override the
Pay::Stripe::Subscription.sync
method by prepending something like:Any better ideas or suggestions?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions