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

[WIP] Topher/add subscription options #3

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

topherfangio
Copy link

Add subscription_options method for use by mothership subscriptions to add default tax rates

sergeychernyakov and others added 12 commits August 29, 2016 12:10
[Payment] Accounts that are Past due. CC, cannot be updated. #433

[Payment] Accounts that are Past due. CC, cannot be updated. #433

[Payment] Accounts that are Past due. CC, cannot be updated. #433
…Past-due-CC-cannot-be-updated

[Payment] Accounts that are Past due. CC, cannot be updated. #433
tell stripe that we want to skip prorating when a plan
changes.

Setting skip_prorate_plan_changes=true on the subscription
will skip prorating
Update the call to stripe so that we can optionally
two descrete steps.  This allows us to record teh stripe id before
creating the strip subscription. This prevents race conditions
within our system where by stripe was triggering invoice webhook callbacks
to our endpoints before we had time to save the stripe_id.  Apparently
stripe is really fast!
…ions2

Broke the creation of a stripe customer and a stripe subscription into
handle them locally and add them to the ActiveRecord errors collection.
Updated error handling to not bubble up Stripe errors but to
…tr_changed

Fix deprecation warning for rails 5.1
end

# CF Template methods.
def subscription_options(opts = {})
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the relevant new method. I'm not sure what the other stuff is or why it's showing up in this PR. I guess those changes haven't been merged to master? Or maybe they were reverted?

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.

4 participants