Comments (16)
I'll look into it this evening and add a repository for you to have a look!
from pay.
Hey @paulpyrb thanks for checking out Pay. 🤘We're getting really close to a stable version.
You'll want to make sure to use the gem directly from git for now. We've been doing a lot of work on it in the past 3 weeks.
Can you paste some more info on the 3rd one there? What's the stacktrace and what line of code was it running when you got that error?
from pay.
Hi @excid3
Here's the stacktrace, not really sure what line of code it was running though!
Faraday::Response::RaiseError#on_complete faraday (0.15.4) lib/faraday/response/raise_error.rb, line 13
block in Faraday::Response::RaiseError#call faraday (0.15.4) lib/faraday/response.rb, line 9
Faraday::Response#on_complete faraday (0.15.4) lib/faraday/response.rb, line 61
Faraday::Response::RaiseError#call faraday (0.15.4) lib/faraday/response.rb, line 8
Faraday::Request::UrlEncoded#call faraday (0.15.4) lib/faraday/request/url_encoded.rb, line 15
Faraday::Request::Multipart#call faraday (0.15.4) lib/faraday/request/multipart.rb, line 15
Faraday::RackBuilder#build_response faraday (0.15.4) lib/faraday/rack_builder.rb, line 143
Faraday::Connection#run_request faraday (0.15.4) lib/faraday/connection.rb, line 387
block in Stripe::StripeClient#execute_request stripe (4.5.0) lib/stripe/stripe_client.rb, line 179
Stripe::StripeClient#execute_request_with_rescues stripe (4.5.0) lib/stripe/stripe_client.rb, line 225
Stripe::StripeClient#execute_request stripe (4.5.0) lib/stripe/stripe_client.rb, line 178
Stripe::Customer.request stripe (4.5.0) lib/stripe/api_operations/request.rb, line 19
Stripe::Customer.create stripe (4.5.0) lib/stripe/api_operations/create.rb, line 7
User#create_stripe_customer () home/paul/.rvm/gems/ruby-2.5.3/bundler/gems/pay-927dbbaca833/lib/pay/billable/stripe.rb, line 86
User#stripe_customer () home/paul/.rvm/gems/ruby-2.5.3/bundler/gems/pay-927dbbaca833/lib/pay/billable/stripe.rb, line 8
User#customer () home/paul/.rvm/gems/ruby-2.5.3/bundler/gems/pay-927dbbaca833/lib/pay/billable.rb, line 25
User#create_stripe_subscription () home/paul/.rvm/gems/ruby-2.5.3/bundler/gems/pay-927dbbaca833/lib/pay/billable/stripe.rb, line 26
User#subscribe () home/paul/.rvm/gems/ruby-2.5.3/bundler/gems/pay-927dbbaca833/lib/pay/billable.rb, line 37
block in ActiveSupport::Callbacks::CallTemplate#make_lambda activesupport (5.2.1) lib/active_support/callbacks.rb, line 426
block in ActiveSupport::Callbacks::Filters::After.halting_and_conditional activesupport (5.2.1) lib/active_support/callbacks.rb, line 236
block in ActiveSupport::Callbacks::CallbackSequence#invoke_after activesupport (5.2.1) lib/active_support/callbacks.rb, line 517
ActiveSupport::Callbacks::CallbackSequence#invoke_after activesupport (5.2.1) lib/active_support/callbacks.rb, line 517
User#run_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 133
User#_run_create_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 816
User#_create_record activerecord (5.2.1) lib/active_record/callbacks.rb, line 346
User#_create_record activerecord (5.2.1) lib/active_record/timestamp.rb, line 102
User#_create_record bullet (5.9.0) lib/bullet/active_record52.rb, line 6
User#create_or_update activerecord (5.2.1) lib/active_record/persistence.rb, line 704
block in User#create_or_update activerecord (5.2.1) lib/active_record/callbacks.rb, line 342
User#run_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 132
User#_run_save_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 816
User#create_or_update activerecord (5.2.1) lib/active_record/callbacks.rb, line 342
User#save activerecord (5.2.1) lib/active_record/persistence.rb, line 275
User#save activerecord (5.2.1) lib/active_record/validations.rb, line 46
block (2 levels) in User#save activerecord (5.2.1) lib/active_record/transactions.rb, line 310
block in User#with_transaction_returning_status activerecord (5.2.1) lib/active_record/transactions.rb, line 387
block in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#transaction activerecord (5.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb, line 254
block in ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction activerecord (5.2.1) lib/active_record/connection_adapters/abstract/transaction.rb, line 239
ActiveSupport::Concurrency::LoadInterlockAwareMonitor#mon_synchronize /home/paul/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/monitor.rb, line 226
ActiveRecord::ConnectionAdapters::TransactionManager#within_new_transaction activerecord (5.2.1) lib/active_record/connection_adapters/abstract/transaction.rb, line 236
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#transaction activerecord (5.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb, line 254
User.transaction activerecord (5.2.1) lib/active_record/transactions.rb, line 212
User#with_transaction_returning_status activerecord (5.2.1) lib/active_record/transactions.rb, line 385
block in User#save activerecord (5.2.1) lib/active_record/transactions.rb, line 310
User#rollback_active_record_state! activerecord (5.2.1) lib/active_record/transactions.rb, line 325
User#save activerecord (5.2.1) lib/active_record/transactions.rb, line 309
User#save activerecord (5.2.1) lib/active_record/suppressor.rb, line 44
Devise::RegistrationsController#create devise (4.5.0) app/controllers/devise/registrations_controller.rb, line 19
Devise::RegistrationsController#send_action actionpack (5.2.1) lib/action_controller/metal/basic_implicit_render.rb, line 6
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/abstract_controller/base.rb, line 194
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/action_controller/metal/rendering.rb, line 30
block in Devise::RegistrationsController#process_action actionpack (5.2.1) lib/abstract_controller/callbacks.rb, line 42
Devise::RegistrationsController#run_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 132
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/abstract_controller/callbacks.rb, line 41
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/action_controller/metal/rescue.rb, line 22
block in Devise::RegistrationsController#process_action actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb, line 34
block in ActiveSupport::Notifications.instrument activesupport (5.2.1) lib/active_support/notifications.rb, line 168
ActiveSupport::Notifications::Instrumenter#instrument activesupport (5.2.1) lib/active_support/notifications/instrumenter.rb, line 23
ActiveSupport::Notifications.instrument activesupport (5.2.1) lib/active_support/notifications.rb, line 168
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/action_controller/metal/instrumentation.rb, line 32
Devise::RegistrationsController#process_action actionpack (5.2.1) lib/action_controller/metal/params_wrapper.rb, line 256
Devise::RegistrationsController#process_action activerecord (5.2.1) lib/active_record/railties/controller_runtime.rb, line 24
Devise::RegistrationsController#process actionpack (5.2.1) lib/abstract_controller/base.rb, line 134
Devise::RegistrationsController#process actionview (5.2.1) lib/action_view/rendering.rb, line 32
Devise::RegistrationsController#dispatch actionpack (5.2.1) lib/action_controller/metal.rb, line 191
Devise::RegistrationsController.dispatch actionpack (5.2.1) lib/action_controller/metal.rb, line 252
ActionDispatch::Routing::RouteSet::Dispatcher#dispatch actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb, line 52
ActionDispatch::Routing::RouteSet::Dispatcher#serve actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb, line 34
block in <class:Constraints> actionpack (5.2.1) lib/action_dispatch/routing/mapper.rb, line 18
ActionDispatch::Routing::Mapper::Constraints#serve actionpack (5.2.1) lib/action_dispatch/routing/mapper.rb, line 48
block in ActionDispatch::Journey::Router#serve actionpack (5.2.1) lib/action_dispatch/journey/router.rb, line 52
ActionDispatch::Journey::Router#serve actionpack (5.2.1) lib/action_dispatch/journey/router.rb, line 35
ActionDispatch::Routing::RouteSet#call actionpack (5.2.1) lib/action_dispatch/routing/route_set.rb, line 840
Xray::Middleware#call xray-rails (0.3.1) lib/xray/middleware.rb, line 38
Bullet::Rack#call bullet (5.9.0) lib/bullet/rack.rb, line 15
block in Warden::Manager#call warden (1.2.8) lib/warden/manager.rb, line 36
Warden::Manager#call warden (1.2.8) lib/warden/manager.rb, line 34
Rack::TempfileReaper#call rack (2.0.6) lib/rack/tempfile_reaper.rb, line 15
Rack::ETag#call rack (2.0.6) lib/rack/etag.rb, line 25
Rack::ConditionalGet#call rack (2.0.6) lib/rack/conditional_get.rb, line 38
Rack::Head#call rack (2.0.6) lib/rack/head.rb, line 12
ActionDispatch::ContentSecurityPolicy::Middleware#call actionpack (5.2.1) lib/action_dispatch/http/content_security_policy.rb, line 18
ActionDispatch::Session::CookieStore#context rack (2.0.6) lib/rack/session/abstract/id.rb, line 232
ActionDispatch::Session::CookieStore#call rack (2.0.6) lib/rack/session/abstract/id.rb, line 226
ActionDispatch::Cookies#call actionpack (5.2.1) lib/action_dispatch/middleware/cookies.rb, line 670
ActiveRecord::Migration::CheckPending#call activerecord (5.2.1) lib/active_record/migration.rb, line 559
block in ActionDispatch::Callbacks#call actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb, line 28
ActionDispatch::Callbacks#run_callbacks activesupport (5.2.1) lib/active_support/callbacks.rb, line 98
ActionDispatch::Callbacks#call actionpack (5.2.1) lib/action_dispatch/middleware/callbacks.rb, line 26
ActionDispatch::Reloader#call actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb, line 14
BetterErrors::Middleware#protected_app_call better_errors (2.5.0) lib/better_errors/middleware.rb, line 84
BetterErrors::Middleware#better_errors_call better_errors (2.5.0) lib/better_errors/middleware.rb, line 79
BetterErrors::Middleware#call better_errors (2.5.0) lib/better_errors/middleware.rb, line 57
ActionDispatch::DebugExceptions#call actionpack (5.2.1) lib/action_dispatch/middleware/debug_exceptions.rb, line 61
WebConsole::Middleware#call_app web-console (3.7.0) lib/web_console/middleware.rb, line 135
block in WebConsole::Middleware#call web-console (3.7.0) lib/web_console/middleware.rb, line 30
WebConsole::Middleware#call web-console (3.7.0) lib/web_console/middleware.rb, line 20
ActionDispatch::ShowExceptions#call actionpack (5.2.1) lib/action_dispatch/middleware/show_exceptions.rb, line 33
Rails::Rack::Logger#call_app railties (5.2.1) lib/rails/rack/logger.rb, line 38
block in Rails::Rack::Logger#call railties (5.2.1) lib/rails/rack/logger.rb, line 26
block in ActiveSupport::Logger#tagged activesupport (5.2.1) lib/active_support/tagged_logging.rb, line 71
ActiveSupport::Logger::SimpleFormatter#tagged activesupport (5.2.1) lib/active_support/tagged_logging.rb, line 28
ActiveSupport::Logger#tagged activesupport (5.2.1) lib/active_support/tagged_logging.rb, line 71
Rails::Rack::Logger#call railties (5.2.1) lib/rails/rack/logger.rb, line 26
Sprockets::Rails::QuietAssets#call sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb, line 13
ActionDispatch::RemoteIp#call actionpack (5.2.1) lib/action_dispatch/middleware/remote_ip.rb, line 81
ActionDispatch::RequestId#call actionpack (5.2.1) lib/action_dispatch/middleware/request_id.rb, line 27
Rack::MethodOverride#call rack (2.0.6) lib/rack/method_override.rb, line 22
Rack::Runtime#call rack (2.0.6) lib/rack/runtime.rb, line 22
ActiveSupport::Cache::Strategy::LocalCache::Middleware#call activesupport (5.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb, line 29
ActionDispatch::Executor#call actionpack (5.2.1) lib/action_dispatch/middleware/executor.rb, line 14
Rack::LiveReload#_call rack-livereload (0.3.17) lib/rack/livereload.rb, line 23
Rack::LiveReload#call rack-livereload (0.3.17) lib/rack/livereload.rb, line 14
ActionDispatch::Static#call actionpack (5.2.1) lib/action_dispatch/middleware/static.rb, line 127
Rack::Sendfile#call rack (2.0.6) lib/rack/sendfile.rb, line 111
Onair::Application#call railties (5.2.1) lib/rails/engine.rb, line 524
Puma::Configuration::ConfigMiddleware#call puma (3.12.0) lib/puma/configuration.rb, line 225
Puma::Server#handle_request puma (3.12.0) lib/puma/server.rb, line 658
Puma::Server#process_client puma (3.12.0) lib/puma/server.rb, line 472
block in Puma::Server#run puma (3.12.0) lib/puma/server.rb, line 332
block in Puma::ThreadPool#spawn_thread puma (3.12.0) lib/puma/thread_pool.rb, line 133
from pay.
Looks like it was an error on Stripe::Customer.create
.
We might be clobbering the error unintentionally. It could be something as simple as reusing the same card token multiple times. I'll look into this and make sure that the error message is passed back correctly.
from pay.
@paulpyrb did you find anything more on this since we last talked?
from pay.
Hi @excid3, unfortunately not.
I had to integrate the subscription the old fashion way. I'm more than happy to help though! :)
from pay.
If you happen to have a way for me to replicate the error, let me know! I haven't come across this in testing, so any tips you have to reproduce it would be awesome.
from pay.
https://github.com/paulpyrb/pay-test
Here's the repo @excid3, I can't reproduce the original issue, but a new one has appeared.
"No such plan: default"
It's triggered by the subscribe method in lib/pay/billable.rb:26
Is Pay expecting a "default" plan to exist on the Stripe account?
from pay.
Yeah, if you don't specify a plan it will look for one called default
.
from pay.
And good about the other issue, might have solved it in some of the changes I made recently.
from pay.
Hi,
After creating the config/initializers/pay.rb
I'm also facing the issues:
- NoMethodError: undefined method `application_name=' for Pay:Module
- NoMethodError: undefined method `support_email=' for Pay:Module
from pay.
@jean-francois-labbe since I wasn't able to provide an example repo that replicated this issue, could you do that instead?
from pay.
Yes, here it is: https://github.com/jean-francois-labbe/pay-integration
from pay.
For some reason those attributes on the Pay module went missing during a merge. Just added them back in along with tests to verify they're there. 👍
from pay.
Hi @excid3 I cannot find the commit that fixes the issue, is that into master?
from pay.
@jean-francois-labbe oh sorry, it's on my fork. I need to push that up to jason's repo.
from pay.
Related Issues (20)
- [BUG] CheckoutSessionCompleted webhook handler with delayed payment methods
- [BUG] Duplicate processor_id not allowed in Pay::Customer HOT 4
- Stripe Webhook Issue HOT 1
- How to switch Stripe accounts after user connected/merchant accounts have already been created
- Add ability to specify queue name for ActiveJob
- undefined local variable or method `pay_subscription' for Pay::PaddleBilling::Subscription:Class HOT 6
- Charging 3D secure cards HOT 1
- [BUG] DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. HOT 1
- [BUG] NameError: uninitialized constant Paddle::VERSION
- [BUG] Calling charge HOT 6
- More info on tracking one-time charges
- [BUG] Subscription.active does not return subscriptions with status="active" and `trial_ends_at` is in the past HOT 4
- [BUG] cancel_now! no longer does what the name implies HOT 3
- Support for subscription schedules HOT 1
- Charge with customer using fake_processor fail with additional options HOT 2
- It's unclear how to cancel multiple subscriptions
- [BUG] Paddle Billing nil values not handled properly
- add a description to line item
- [BUG] Unpausing a Stripe subscription
- [Feature Request] Ignore test webhook events on live HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pay.