Skip to content

Instantly share code, notes, and snippets.

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
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",
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'
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
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:
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"
activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- omniauth/oauth (LoadError)
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'
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'
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'