koudoku icon indicating copy to clipboard operation
koudoku copied to clipboard

Robust subscription support for Rails with Stripe.

Results 73 koudoku issues
Sort by recently updated
recently updated
newest added

after upgrade to Rails 7 we get following error in production mode RAILS_ENV=production bundle exec rails zeitwerk:check --trace it helps when this line is added to lib/koudoku/engine.rb ```require_relative '../../app/helpers/koudoku/application_helper'``` ```...

After successfully upgrading the plan. I receive the "update_subscription" method error. Does anyone know why this is happenining?

#### We have used Koudoku gem with BulletTrain. We've faced the issue within creation Subscriptions with ```"metered usage"``` and ```"pricing over limits"```. There is 'quantity' parameter that is sent from...

I'm using Rails 5.2 and Ruby 2.4.4 ``` Fetching bluecloth 2.2.0 Installing bluecloth 2.2.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bluecloth-2.2.0/ext C:/Ruby24-x64/bin/ruby.exe -r...

see https://stripe.com/docs/subscriptions#canceling-a-customers-subscriptions usage example: subscription.rb ``` ruby # we want customers to use the paid subscription until the paid billing period def prepare_for_cancelation self.cancel_at_period_end = true end ```

## Fix ``` DEPRECATION WARNING: update_attributes is deprecated and will be removed from Rails 6.1 (please, use update instead) (called from update at /Users/user/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/bundler/gems/koudoku/app/controllers/koudoku/subscriptions_controller.rb:163) ```

So when i choose a plan as a user in my project, stripe registers it and the new subscription is visible in the stripe dashboard. This seem to be working...

(Creating this PR in anticipation of #199, which we're going to merge into `master`.)