How to change proration method for a paddle subscription? #1114
Unanswered
danielschnee
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Any chance to get an answer/help to this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey. As the title asks: How to change proration method for a paddle subscription?
I read through the source code and found: https://github.com/pay-rails/pay/blob/937b85b55e2c94ae2194dfc28ac03c56a7d05e7d/app/models/pay/paddle_billing/subscription.rb#L162C1-L176C10
So i tried doing the following:
@user.payment_processor.subscription.swap("yearly", proration_billing_mode: "full_next_billing_period")
But i got an error: "Error 400: Your request was malformed. 'subscription_new_items_not_valid'"
How can i change the proration method? Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions