Skip to content

Commit

Permalink
Merge pull request #119 from excid3/master
Browse files Browse the repository at this point in the history
Add support for Stripe v4.x
  • Loading branch information
rmm5t authored Dec 4, 2018
2 parents a5135ca + 05d7451 commit 8ea37ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/webhook_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def generate_signature(params, secret)
def webhook(signature, params)
request.env['HTTP_STRIPE_SIGNATURE'] = signature
request.env['RAW_POST_DATA'] = params.to_json # works with Rails 3, 4, or 5
post :event
post :event, body: params.to_json
end

def webhook_with_signature(params, secret = secret1)
Expand Down
2 changes: 1 addition & 1 deletion stripe_event.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- Appraisals {spec,gemfiles}/*`.split("\n")

s.add_dependency "activesupport", ">= 3.1"
s.add_dependency "stripe", [">= 2.8", "< 4.0"]
s.add_dependency "stripe", [">= 2.8", "< 5.0"]

s.add_development_dependency "rails", [">= 3.1"]
s.add_development_dependency "rake", "< 11.0"
Expand Down

0 comments on commit 8ea37ad

Please sign in to comment.