payolapayments / payola

Drop-in Rails engine for accepting payments with Stripe
http://www.payola.io
Other
818 stars 154 forks source link

Fix undefined method error on newer stripe gem version #340

Closed JeremiahChurch closed 6 years ago

JeremiahChurch commented 6 years ago

With Stripe gem 3.11.0 there looks to be a new start_with? check against the secret key - this PR adds the necessary method to support that.

Similar to the fix employed for #256

top of stacktrace:

undefined method `start_with?' for #<Payola::EnvWrapper:0x000055d02982d6c0 @key="STRIPE_SECRET_KEY">
…/ruby/gems/2.5.0/gems/stripe-3.11.0/lib/stripe/util.rb:  294:in `request_id_dashboard_url'
…s/2.5.0/gems/stripe-3.11.0/lib/stripe/stripe_client.rb:  468:in `log_response'
…s/2.5.0/gems/stripe-3.11.0/lib/stripe/stripe_client.rb:  201:in `execute_request_with_rescues'
…s/2.5.0/gems/stripe-3.11.0/lib/stripe/stripe_client.rb:  152:in `execute_request'