Skip to content
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

Allow proration mode argument for paddle_billing subscription update #1085

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

jjatinggoyal
Copy link
Contributor

Pull Request

Summary:
While swapping plans / updating quantity for a subscription, allow users to set proration mode for paddle billing.

Description:
Currently, proration mode is hardcoded to prorated_immediately, but users may choose different proration mode depending on their use case. Ref: https://developer.paddle.com/api-reference/subscriptions/update-subscription.

The implementation in this PR is similar to Stripe's subscription model: https:/pay-rails/pay/blob/main/app/models/pay/stripe/subscription.rb#L277

@excid3 excid3 merged commit e0f5a81 into pay-rails:main Oct 7, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants