This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'stripedotcom' | |
| # Set the default hostname for omniauth to send callbacks to. | |
| # seems to be a bug in omniauth that it drops the httpS | |
| # this still exists in 0.2.0 | |
| # note: you will have to change this url to your Heroku app url when you deploy it to Heroku. | |
| OmniAuth.config.full_host = 'http://localhost:3000' | |
| module OmniAuth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'multi_json' | |
| module OmniAuth | |
| module Strategies | |
| class Stripedotcom < OAuth2 | |
| def initialize(app, client_id = nil, client_secret = nil, options = {}, &block ) | |
| client_options = { | |
| :site => " https://manage.stripe.com/oauth/authorize", | |
| :authorize_path => "/oauth/authorize", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| omniauth (1.1.0) lib/omniauth/strategy.rb:136:in `initialize' | |
| lib/stripedotcom.rb:13:in `initialize' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `new' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `block in use' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `[]' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `block in to_app' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `each' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `inject' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `to_app' | |
| omniauth (1.1.0) lib/omniauth/builder.rb:48:in `call' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def initialize(client_id = nil, client_secret = nil, options = {}, &block ) | |
| client_options = { | |
| :site => " https://manage.stripe.com/oauth/authorize", | |
| :authorize_path => "/oauth/authorize", | |
| :access_token_path => "/oauth/token" | |
| } | |
| super(client_id, client_secret, client_options, &block) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArgumentError | |
| Received wrong number of arguments. ["APIKEY"] | |
| Rails.root: /home/afresta/rails_projects/GarageSellr.com | |
| Application Trace | Framework Trace | Full Trace | |
| lib/stripedotcom.rb:12:in `initialize' | |
| Request | |
| Parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'multi_json' | |
| module OmniAuth | |
| module Strategies | |
| class Stripedotcom < OAuth2 | |
| def initialize(app, client_id = nil, client_secret = nil, options = {}, &block) | |
| client_options = { | |
| :site => "https://manage.stripe.com", | |
| :authorize_path => "/oauth/authorize", | |
| :access_token_path => "/oauth/token" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- omniauth/oauth (LoadError) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config/initiliazers/omniauth.rb | |
| require 'stripedotcom' | |
| # Set the default hostname for omniauth to send callbacks to. | |
| # seems to be a bug in omniauth that it drops the httpS | |
| # this still exists in 0.2.0 | |
| # note: you will have to change this url to your Heroku app url when you deploy it to Heroku. | |
| OmniAuth.config.full_host = 'http://localhost:3000' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArgumentError | |
| Received wrong number of arguments. ["PRIVATEKEy"] | |
| Rails.root: /home/afresta/rails_projects/GarageSellr.com | |
| Application Trace | Framework Trace | Full Trace | |
| omniauth (1.1.0) lib/omniauth/strategy.rb:136:in `initialize' | |
| lib/stripedotcom.rb:11:in `initialize' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `new' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `block in use' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Received wrong number of arguments. ["PRIVATEKEY"] | |
| Rails.root: /home/afresta/rails_projects/GarageSellr.com | |
| Application Trace | Framework Trace | Full Trace | |
| omniauth (1.1.0) lib/omniauth/strategy.rb:136:in `initialize' | |
| lib/stripedotcom.rb:11:in `initialize' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `new' | |
| rack (1.4.1) lib/rack/builder.rb:82:in `block in use' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `[]' | |
| rack (1.4.1) lib/rack/builder.rb:130:in `block in to_app' |