DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 11:30:07 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.4ms)[0m [1mSELECT "orders".* FROM "orders"[0m
SQLite3::SQLException: no such table: orders: SELECT "orders".* FROM "orders"
Rendered orders/index.html.erb within layouts/application (5.1ms)
Completed 500 Internal Server Error in 19ms
ActionView::Template::Error (SQLite3::SQLException: no such table: orders: SELECT "orders".* FROM "orders"):
10:
|
11:
12:
13: <% @orders.each do |order| %>
14:
15: <%= order.name %> |
16: <%= order.amount %> |
app/views/orders/index.html.erb:13:in `_app_views_orders_index_html_erb__4530349267403895331_70135719940480'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (44.2ms)
[1m[36m (1.1ms)[0m [1mCREATE TABLE "opay_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payable_id" integer, "payable_type" varchar(255), "session_id" varchar(255) NOT NULL, "provider" varchar(255) NOT NULL, "amount" integer NOT NULL, "finished" boolean DEFAULT 'f' NOT NULL, "status" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (1.0ms)[0m CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type")
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id")[0m
[1m[35m (1.1ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "amount" varchar(255), "finished" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130326152550')
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
Rendered orders/index.html.erb within layouts/application (4.7ms)
Completed 200 OK in 91ms (Views: 85.5ms | ActiveRecord: 1.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:30:30 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 11:30:32 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (25.1ms)
Rendered orders/new.html.erb within layouts/application (33.3ms)
Completed 200 OK in 38ms (Views: 36.4ms | ActiveRecord: 0.3ms)
Started POST "/orders" for 127.0.0.1 at 2014-03-25 11:30:50 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"pierwsze", "amount"=>"100"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "100"], ["created_at", Tue, 25 Mar 2014 10:30:50 UTC +00:00], ["name", "pierwsze"], ["updated_at", Tue, 25 Mar 2014 10:30:50 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Redirected to http://localhost:3000/orders/1
Completed 302 Found in 11ms (ActiveRecord: 4.8ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 11:30:50 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sGpiXxyyGCHc37tWV9wC' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", Tue, 25 Mar 2014 10:30:50 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "sGpiXxyyGCHc37tWV9wC"], ["updated_at", Tue, 25 Mar 2014 10:30:50 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (73.4ms)
Completed 200 OK in 79ms (Views: 74.5ms | ActiveRecord: 2.5ms)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 11:30:56 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"sGpiXxyyGCHc37tWV9wC", "amount"=>"100", "js"=>"1", "pay_type"=>"t", "ts"=>"1395743450", "sig"=>"c841392bbc75546f0b8943ad160cd614", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (4.0ms)
Completed 200 OK in 23ms (Views: 22.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:30:56 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:30:56 +0100
Started GET "/opay/payu/correct_authorization?session_id=sGpiXxyyGCHc37tWV9wC" for 127.0.0.1 at 2014-03-25 11:31:36 +0100
Processing by Opay::PayuController#correct_authorization as HTML
Parameters: {"session_id"=>"sGpiXxyyGCHc37tWV9wC"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sGpiXxyyGCHc37tWV9wC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 10:31:36 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 10:31:36 UTC +00:00]]
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/?success
Completed 302 Found in 13ms (ActiveRecord: 4.9ms)
Started GET "/?success" for 127.0.0.1 at 2014-03-25 11:31:36 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.5ms)
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.3ms)
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 11:31:39 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (2.1ms)
Rendered orders/new.html.erb within layouts/application (2.7ms)
Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
Started POST "/orders" for 127.0.0.1 at 2014-03-25 11:31:46 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"order 2", "amount"=>"200"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "200"], ["created_at", Tue, 25 Mar 2014 10:31:46 UTC +00:00], ["name", "order 2"], ["updated_at", Tue, 25 Mar 2014 10:31:46 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Redirected to http://localhost:3000/orders/2
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:31:46 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 's8UWikuQKoV4p1EmqzBe' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 200], ["created_at", Tue, 25 Mar 2014 10:31:46 UTC +00:00], ["payable_id", 2], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "s8UWikuQKoV4p1EmqzBe"], ["updated_at", Tue, 25 Mar 2014 10:31:46 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (7.1ms)
Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 1.7ms)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'asTtvq85xgZx7TApyttj' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "asTtvq85xgZx7TApyttj"], ["updated_at", Tue, 25 Mar 2014 10:36:23 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (7.3ms)
Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 3.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:23 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'KRFvEZ1s1Znxvt9qzh9f' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.8ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "KRFvEZ1s1Znxvt9qzh9f"], ["updated_at", Tue, 25 Mar 2014 10:36:25 UTC +00:00]]
[1m[35m (3.6ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (9.7ms)
Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 4.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:36:25 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:42:14 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ZQrGyaMh1kQDXbM9GYUx' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "ZQrGyaMh1kQDXbM9GYUx"], ["updated_at", Tue, 25 Mar 2014 10:42:14 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (19.6ms)
Completed 500 Internal Server Error in 22ms
ActionView::Template::Error (undefined method `paypal_form_for' for #<#:0x007fd5b5c6deb8>):
22: <%= f.submit :pay_with_payu %>
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <% end -%>
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___1578014053204983250_70277927233140'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.4ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (1.9ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4qHpx8xoagtmRYyCKhtg' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "4qHpx8xoagtmRYyCKhtg"], ["updated_at", Tue, 25 Mar 2014 10:42:24 UTC +00:00]]
[1m[35m (2.6ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'BLBNxzSLs1ybCRJPWzG7' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "BLBNxzSLs1ybCRJPWzG7"], ["updated_at", Tue, 25 Mar 2014 10:42:24 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (44.0ms)
Completed 200 OK in 121ms (Views: 93.4ms | ActiveRecord: 10.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:24 +0100
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 11:42:27 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"BLBNxzSLs1ybCRJPWzG7", "amount"=>"200", "js"=>"0", "pay_type"=>"t", "ts"=>"1395744144", "sig"=>"3b91c4c7ba1246a16d428f1401cc4c9b", "commit"=>"pay_with_pay_pal"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (5.0ms)
Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:28 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:28 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'VFmGohH8tw9DkgxVzqqD' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "VFmGohH8tw9DkgxVzqqD"], ["updated_at", Tue, 25 Mar 2014 10:42:30 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1ZCrRoAEAxqkxa3KYj5G' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "1ZCrRoAEAxqkxa3KYj5G"], ["updated_at", Tue, 25 Mar 2014 10:42:30 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (14.2ms)
Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 5.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:42:30 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 's9bsjNgFxYHwNgLQEDRh' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "s9bsjNgFxYHwNgLQEDRh"], ["updated_at", Tue, 25 Mar 2014 10:46:08 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MHQv4JsdMqzCBHsqqydd' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "MHQv4JsdMqzCBHsqqydd"], ["updated_at", Tue, 25 Mar 2014 10:46:08 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (15.1ms)
Completed 200 OK in 20ms (Views: 14.5ms | ActiveRecord: 4.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 11:46:08 +0100
[1m[36m (1.6ms)[0m [1mCREATE TABLE "opay_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payable_id" integer, "payable_type" varchar(255), "session_id" varchar(255) NOT NULL, "provider" varchar(255) NOT NULL, "amount" integer NOT NULL, "finished" boolean DEFAULT 'f' NOT NULL, "status" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
[1m[35m (1.2ms)[0m CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type")
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id")[0m
[1m[35m (1.2ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "amount" varchar(255), "finished" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime)
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130326152550')
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 12:14:58 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
Completed 404 Not Found in 12ms
ActiveRecord::RecordNotFound (Couldn't find Order with id=2):
app/controllers/orders_controller.rb:51:in `set_order'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.9ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
Rendered orders/index.html.erb within layouts/application (1.7ms)
Completed 200 OK in 64ms (Views: 63.2ms | ActiveRecord: 0.2ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (55.7ms)
Rendered orders/new.html.erb within layouts/application (58.9ms)
Completed 200 OK in 63ms (Views: 62.0ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:15:06 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 12:15:14 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"order", "amount"=>"100"}, "commit"=>"Create Order"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "100"], ["created_at", Tue, 25 Mar 2014 11:15:14 UTC +00:00], ["name", "order"], ["updated_at", Tue, 25 Mar 2014 11:15:14 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/orders/1
Completed 302 Found in 10ms (ActiveRecord: 4.8ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:15:14 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9DcNk6fv2FAkpKafzFCS' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", Tue, 25 Mar 2014 11:15:14 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "9DcNk6fv2FAkpKafzFCS"], ["updated_at", Tue, 25 Mar 2014 11:15:14 UTC +00:00]]
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'umSxm2m13JAnFwKWDgNR' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "umSxm2m13JAnFwKWDgNR"], ["updated_at", Tue, 25 Mar 2014 11:15:14 UTC +00:00]]
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (93.6ms)
Completed 500 Internal Server Error in 97ms
ActionView::Template::Error (undefined local variable or method `new_paypal_payment_path' for #<#:0x007fe7668a1470>):
22: <%= f.submit :pay_with_payu %>
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__3880732906522106010_70315917269580'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (9.5ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:16:48 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YkduCkVxAk3GpzFqqQcW' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "YkduCkVxAk3GpzFqqQcW"], ["updated_at", Tue, 25 Mar 2014 11:16:48 UTC +00:00]]
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '7WMVgfTrmX8DeS5wzTGj' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "7WMVgfTrmX8DeS5wzTGj"], ["updated_at", Tue, 25 Mar 2014 11:16:48 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (20.1ms)
Completed 500 Internal Server Error in 23ms
ActionView::Template::Error (undefined local variable or method `new_paypal_payment_path' for #<#:0x007fe7668584f0>):
22: <%= f.submit :pay_with_payu %>
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__3880732906522106010_70315917269580'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.7ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:19:47 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CbMvYbGJPHHBqKCfZoMY' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "CbMvYbGJPHHBqKCfZoMY"], ["updated_at", Tue, 25 Mar 2014 11:19:47 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zRtbP9o3p8e8QgDw7CoM' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "zRtbP9o3p8e8QgDw7CoM"], ["updated_at", Tue, 25 Mar 2014 11:19:47 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (87.5ms)
Completed 500 Internal Server Error in 112ms
ActionView::Template::Error (undefined method `new_paypal_payment_path' for #<#:0x007fee7e901ba8>):
22: <%= f.submit :pay_with_payu %>
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__4309363615758850378_70331151292740'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (12.9ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:20:28 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.8ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pLhuy97J8yUr4sWDmiES' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "pLhuy97J8yUr4sWDmiES"], ["updated_at", Tue, 25 Mar 2014 11:20:29 UTC +00:00]]
[1m[35m (3.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CUddvRTdqTqRbxZRwUW9' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "CUddvRTdqTqRbxZRwUW9"], ["updated_at", Tue, 25 Mar 2014 11:20:29 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (88.1ms)
Completed 500 Internal Server Error in 108ms
ActionView::Template::Error (undefined method `new_paypal_payment_path' for nil:NilClass):
22: <%= f.submit :pay_with_payu %>
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__2062698909470057593_70105235471780'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.6ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:25:07 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (3.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hzn4apY7RxC7JsXrUYos' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.0ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "hzn4apY7RxC7JsXrUYos"], ["updated_at", Tue, 25 Mar 2014 11:25:08 UTC +00:00]]
[1m[35m (2.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FcbE5SqqoWwuFABxmC8s' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "FcbE5SqqoWwuFABxmC8s"], ["updated_at", Tue, 25 Mar 2014 11:25:08 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (55.0ms)
Completed 200 OK in 133ms (Views: 109.5ms | ActiveRecord: 11.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:25:08 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:25:08 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:08 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:08 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:08 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kYkcwPjgjaqdDpQ2KgWk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "kYkcwPjgjaqdDpQ2KgWk"], ["updated_at", Tue, 25 Mar 2014 11:25:11 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hH8LABZJsBVcTpsw6iA9' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "hH8LABZJsBVcTpsw6iA9"], ["updated_at", Tue, 25 Mar 2014 11:25:11 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (11.5ms)
Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 3.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:25:11 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:29:02 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (3.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'z9puzdzrjTCgU7PRAHn5' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "z9puzdzrjTCgU7PRAHn5"], ["updated_at", Tue, 25 Mar 2014 11:29:02 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yLFZpQ7pMd14ZqRGsQDJ' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "yLFZpQ7pMd14ZqRGsQDJ"], ["updated_at", Tue, 25 Mar 2014 11:29:02 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (90.7ms)
Completed 200 OK in 128ms (Views: 103.8ms | ActiveRecord: 11.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:29:03 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:29:03 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:29:03 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:29:03 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:29:03 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:42:30 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (3.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FMCmv9Pzcfdqz2ojuhsq' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "FMCmv9Pzcfdqz2ojuhsq"], ["updated_at", Tue, 25 Mar 2014 11:42:31 UTC +00:00]]
[1m[35m (2.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hzG9PSsy6wZ2oCNQeAfB' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "hzG9PSsy6wZ2oCNQeAfB"], ["updated_at", Tue, 25 Mar 2014 11:42:31 UTC +00:00]]
[1m[35m (1.3ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (72.6ms)
Completed 200 OK in 234ms (Views: 206.5ms | ActiveRecord: 12.1ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:31 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:31 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:31 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:31 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:31 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:42:37 +0100
ActionController::RoutingError (No route matches [PATCH] "/opay/paypal/new"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (31.5ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:42:52 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'QxzW3233fUrzCsi8sgcc' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "QxzW3233fUrzCsi8sgcc"], ["updated_at", Tue, 25 Mar 2014 11:42:52 UTC +00:00]]
[1m[35m (2.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'saX9NWjjFY1CfyudypP6' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "saX9NWjjFY1CfyudypP6"], ["updated_at", Tue, 25 Mar 2014 11:42:52 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (29.4ms)
Completed 200 OK in 86ms (Views: 26.9ms | ActiveRecord: 7.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rps3KWyzFsj7FZZVgUXQ' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "rps3KWyzFsj7FZZVgUXQ"], ["updated_at", Tue, 25 Mar 2014 11:42:54 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vo8yijoqnA5SUy4wFCsq' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "vo8yijoqnA5SUy4wFCsq"], ["updated_at", Tue, 25 Mar 2014 11:42:54 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (14.2ms)
Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 4.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:42:55 +0100
AbstractController::ActionNotFound (The action 'new' could not be found for Opay::PayuController):
actionpack (4.0.4) lib/abstract_controller/base.rb:131:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1656284164091537141__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.5ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1J9gbwYo6pXfxhoy9vxo' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "1J9gbwYo6pXfxhoy9vxo"], ["updated_at", Tue, 25 Mar 2014 11:43:58 UTC +00:00]]
[1m[35m (2.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1ZknCxZjSqdztnKrPMbT' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "1ZknCxZjSqdztnKrPMbT"], ["updated_at", Tue, 25 Mar 2014 11:43:58 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (27.9ms)
Completed 200 OK in 45ms (Views: 25.8ms | ActiveRecord: 6.7ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:00 +0100
LoadError (Unable to autoload constant Opay::PaypalController, expected /Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb to define it):
activesupport (4.0.4) lib/active_support/dependencies.rb:464:in `load_missing_constant'
activesupport (4.0.4) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `const_get'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `block in constantize'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `each'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `inject'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `constantize'
activesupport (4.0.4) lib/active_support/dependencies.rb:535:in `get'
activesupport (4.0.4) lib/active_support/dependencies.rb:566:in `constantize'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:66:in `controller'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:44:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1656284164091537141__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.7ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:13 +0100
RuntimeError (Circular dependency detected while autoloading constant Opay::PaypalController):
activesupport (4.0.4) lib/active_support/dependencies.rb:461:in `load_missing_constant'
activesupport (4.0.4) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `const_get'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `block in constantize'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `each'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `inject'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `constantize'
activesupport (4.0.4) lib/active_support/dependencies.rb:535:in `get'
activesupport (4.0.4) lib/active_support/dependencies.rb:566:in `constantize'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:66:in `controller'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:44:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1656284164091537141__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.8ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:37 +0100
LoadError (Unable to autoload constant Opay::PaypalController, expected /Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb to define it):
activesupport (4.0.4) lib/active_support/dependencies.rb:464:in `load_missing_constant'
activesupport (4.0.4) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `const_get'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `block in constantize'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `each'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `inject'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `constantize'
activesupport (4.0.4) lib/active_support/dependencies.rb:535:in `get'
activesupport (4.0.4) lib/active_support/dependencies.rb:566:in `constantize'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:66:in `controller'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:44:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1653409913774400652__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.8ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:55 +0100
RuntimeError (Circular dependency detected while autoloading constant Opay::PaypalController):
activesupport (4.0.4) lib/active_support/dependencies.rb:461:in `load_missing_constant'
activesupport (4.0.4) lib/active_support/dependencies.rb:184:in `const_missing'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `const_get'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `block in constantize'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `each'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `inject'
activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `constantize'
activesupport (4.0.4) lib/active_support/dependencies.rb:535:in `get'
activesupport (4.0.4) lib/active_support/dependencies.rb:566:in `constantize'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:66:in `controller'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:44:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1653409913774400652__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.8ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:45:07 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"1ZknCxZjSqdztnKrPMbT", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747838", "sig"=>"0f6147c550d317631df5d327e98482ae", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 43ms
NameError (uninitialized constant Opay::Providers::Paypal::YOUR_TOTAL_AMOUNT_IN_CENTS):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:16:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4340420675400776934__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1350959855575115120__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.5ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:45:21 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"1ZknCxZjSqdztnKrPMbT", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747838", "sig"=>"0f6147c550d317631df5d327e98482ae", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 4ms
NameError (uninitialized constant Opay::Providers::Paypal::YOUR_TOTAL_AMOUNT_IN_CENTS):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:16:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4340420675400776934__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1350959855575115120__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.3ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:45:31 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"1ZknCxZjSqdztnKrPMbT", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747838", "sig"=>"0f6147c550d317631df5d327e98482ae", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 1ms
NoMethodError (undefined method `setup_purchase' for nil:NilClass):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:16:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2266734620588492378__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3733468655116659807__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.7ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:46:01 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.5ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Y2W9o3bM5tivahKGBY54' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.7ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Y2W9o3bM5tivahKGBY54"], ["updated_at", Tue, 25 Mar 2014 11:46:01 UTC +00:00]]
[1m[35m (5.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'nwJzCJsdf7BGsLrSnmTk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "nwJzCJsdf7BGsLrSnmTk"], ["updated_at", Tue, 25 Mar 2014 11:46:01 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (90.3ms)
Completed 200 OK in 132ms (Views: 105.5ms | ActiveRecord: 13.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:46:03 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"nwJzCJsdf7BGsLrSnmTk", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747961", "sig"=>"db44435aa02fa271e2e26e541382f65d", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 1ms
NoMethodError (undefined method `setup_purchase' for nil:NilClass):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:14:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4438204853716001988__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2473439249865359230__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (14.2ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:46:23 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"nwJzCJsdf7BGsLrSnmTk", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747961", "sig"=>"db44435aa02fa271e2e26e541382f65d", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 0ms
NoMethodError (undefined method `setup_purchase' for nil:NilClass):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:14:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4438204853716001988__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2473439249865359230__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:46:32 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"nwJzCJsdf7BGsLrSnmTk", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747961", "sig"=>"db44435aa02fa271e2e26e541382f65d", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 2ms
NoMethodError (undefined method `setup_purchase' for nil:NilClass):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:14:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1617361557465493395__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4071135479324537749__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:46:55 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"nwJzCJsdf7BGsLrSnmTk", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395747961", "sig"=>"db44435aa02fa271e2e26e541382f65d", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 53ms
ArgumentError (An API Certificate or API Signature is required to make requests to PayPal):
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:76:in `initialize'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:14:in `new'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:14:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__169273132912189575__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1509519313643054622__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.9ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.6ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qfCesDzwiepMbRmmbB56' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.7ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "qfCesDzwiepMbRmmbB56"], ["updated_at", Tue, 25 Mar 2014 11:47:13 UTC +00:00]]
[1m[35m (3.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gqs3by94kz7MaEUaRZWm' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "gqs3by94kz7MaEUaRZWm"], ["updated_at", Tue, 25 Mar 2014 11:47:13 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (90.2ms)
Completed 200 OK in 126ms (Views: 102.4ms | ActiveRecord: 11.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:47:33 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PEuz3HZ6RpKGSaZ8gw6x' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "PEuz3HZ6RpKGSaZ8gw6x"], ["updated_at", Tue, 25 Mar 2014 11:47:33 UTC +00:00]]
[1m[35m (2.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LbZi52abVnLgAq8u1tSG' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "LbZi52abVnLgAq8u1tSG"], ["updated_at", Tue, 25 Mar 2014 11:47:33 UTC +00:00]]
[1m[35m (0.6ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (15.0ms)
Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 4.5ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'bBrqnq9X7JxvWfRYy91k' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "bBrqnq9X7JxvWfRYy91k"], ["updated_at", Tue, 25 Mar 2014 11:47:35 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FxTg5MmVCqZsyz3TFCmH' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "FxTg5MmVCqZsyz3TFCmH"], ["updated_at", Tue, 25 Mar 2014 11:47:35 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (13.0ms)
Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 5.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'HfhYXZsxT4NeRDqEdWPe' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "HfhYXZsxT4NeRDqEdWPe"], ["updated_at", Tue, 25 Mar 2014 11:47:40 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qYWszdpKcSFyYTjsgi96' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "qYWszdpKcSFyYTjsgi96"], ["updated_at", Tue, 25 Mar 2014 11:47:40 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (13.9ms)
Completed 200 OK in 19ms (Views: 13.1ms | ActiveRecord: 4.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:48:07 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kjNyXxBmgKwgTf4o9kH6' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.1ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "kjNyXxBmgKwgTf4o9kH6"], ["updated_at", Tue, 25 Mar 2014 11:48:08 UTC +00:00]]
[1m[35m (3.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Sb9Syw9huAXFhWJvDP1W' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Sb9Syw9huAXFhWJvDP1W"], ["updated_at", Tue, 25 Mar 2014 11:48:08 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (93.0ms)
Completed 200 OK in 134ms (Views: 109.3ms | ActiveRecord: 11.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'voHDJEyuzJjutvFmEBqh' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "voHDJEyuzJjutvFmEBqh"], ["updated_at", Tue, 25 Mar 2014 11:48:53 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rg38rpdX5dvg6JGUBirY' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "rg38rpdX5dvg6JGUBirY"], ["updated_at", Tue, 25 Mar 2014 11:48:53 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (51.7ms)
Completed 200 OK in 56ms (Views: 50.4ms | ActiveRecord: 4.8ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:53 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'W8cdxd7WshpM9z4uKYFF' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "W8cdxd7WshpM9z4uKYFF"], ["updated_at", Tue, 25 Mar 2014 11:49:00 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jpZBPw3YwpkLetRWcCwx' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "jpZBPw3YwpkLetRWcCwx"], ["updated_at", Tue, 25 Mar 2014 11:49:00 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (13.7ms)
Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 4.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:49:00 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (1.9ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'F2gYeeXcfrw4oMnRZ4Z7' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "F2gYeeXcfrw4oMnRZ4Z7"], ["updated_at", Tue, 25 Mar 2014 11:50:58 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zAXuCPCyEiVSykayLL8U' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "zAXuCPCyEiVSykayLL8U"], ["updated_at", Tue, 25 Mar 2014 11:50:58 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (50.4ms)
Completed 200 OK in 171ms (Views: 111.6ms | ActiveRecord: 47.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:50:58 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '61wMRCyQhUkizko1xJQZ' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "61wMRCyQhUkizko1xJQZ"], ["updated_at", Tue, 25 Mar 2014 11:51:06 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'HEUawSHYZ9rCx1Emj1fh' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "HEUawSHYZ9rCx1Emj1fh"], ["updated_at", Tue, 25 Mar 2014 11:51:06 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (14.4ms)
Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 4.5ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:51:06 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:51:08 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"HEUawSHYZ9rCx1Emj1fh", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395748266", "sig"=>"25786ffe435b715eacad7eb0f898ff9a", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 21ms
WebMock::NetConnectNotAllowedError (Real HTTP connections are disabled. Unregistered request: POST https://api-3t.sandbox.paypal.com/2.0/ with body 'dummy-facilitator_api1.gmail.comAGUkzh-MeQY9FWOCQ5.UwnNAI5EgABkxUU7ynmHt9IbLYXd5FwKiwy6K
72
?success
?cancel
0
0
Sole
Billing
10.00
ActiveMerchant
Order
1
10.00
Order description
Sale
' with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:post, "https://api-3t.sandbox.paypal.com/2.0/").
with(:body => {""\"1.0\" encoding=\"UTF-8\"?>dummy-facilitator_api1.gmail.comAGUkzh-MeQY9FWOCQ5.UwnNAI5EgABkxUU7ynmHt9IbLYXd5FwKiwy6K\n \n 72\n \n ?success\n ?cancel\n 0\n 0\n Sole\n Billing\n \n 10.00\n ActiveMerchant\n \n Order\n \n 1\n 10.00\n Order description\n \n \n Sale\n \n \n \n\n"},
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
============================================================):
webmock (1.17.4) lib/webmock/http_lib_adapters/net_http.rb:114:in `request'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:1390:in `send_entity'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:1179:in `post'
active_utils (2.0.2) lib/active_utils/common/connection.rb:64:in `block (2 levels) in request'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
active_utils (2.0.2) lib/active_utils/common/connection.rb:57:in `block in request'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:20:in `block in retry_exceptions'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:43:in `retry_network_exceptions'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:18:in `retry_exceptions'
active_utils (2.0.2) lib/active_utils/common/connection.rb:51:in `request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:58:in `raw_ssl_request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:36:in `ssl_request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:32:in `ssl_post'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:625:in `commit'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:43:in `setup_purchase'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:20:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__748812388579717134__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3987177520851748700__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:55:39 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'axxaXiuYxur56trXFUjw' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "axxaXiuYxur56trXFUjw"], ["updated_at", Tue, 25 Mar 2014 11:55:40 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rQLyDFxeW5aKkSWHZDYs' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "rQLyDFxeW5aKkSWHZDYs"], ["updated_at", Tue, 25 Mar 2014 11:55:40 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (58.4ms)
Completed 200 OK in 146ms (Views: 117.9ms | ActiveRecord: 9.3ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:55:42 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"rQLyDFxeW5aKkSWHZDYs", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395748540", "sig"=>"9bee0447e4d2eaa493a824d385e2e73c", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 17ms
NoMethodError (undefined method `request_without_webmock' for #):
webmock-disabler (0.0.2) lib/webmock/disabler/disabler.rb:20:in `request_with_disabling'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:1390:in `send_entity'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb:1179:in `post'
active_utils (2.0.2) lib/active_utils/common/connection.rb:64:in `block (2 levels) in request'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
active_utils (2.0.2) lib/active_utils/common/connection.rb:57:in `block in request'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:20:in `block in retry_exceptions'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:43:in `retry_network_exceptions'
active_utils (2.0.2) lib/active_utils/common/network_connection_retries.rb:18:in `retry_exceptions'
active_utils (2.0.2) lib/active_utils/common/connection.rb:51:in `request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:58:in `raw_ssl_request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:36:in `ssl_request'
active_utils (2.0.2) lib/active_utils/common/posts_data.rb:32:in `ssl_post'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:625:in `commit'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:43:in `setup_purchase'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:20:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1387608317513962421__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2866267208687037268__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.3ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (4.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'WMzyzbcVJSD3rds1pxQ4' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "WMzyzbcVJSD3rds1pxQ4"], ["updated_at", Tue, 25 Mar 2014 11:57:16 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xTK3xZTp2sD3JojBR8Ar' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "xTK3xZTp2sD3JojBR8Ar"], ["updated_at", Tue, 25 Mar 2014 11:57:16 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (91.2ms)
Completed 200 OK in 128ms (Views: 103.8ms | ActiveRecord: 12.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:57:19 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"xTK3xZTp2sD3JojBR8Ar", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395748636", "sig"=>"a6cb3aa623d7719d085cd1f5a334e696", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2426ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (4.8ms)
Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CkyE4fzr1zF1Tq9Rp291' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "CkyE4fzr1zF1Tq9Rp291"], ["updated_at", Tue, 25 Mar 2014 11:58:01 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'cxq6esMqhJYyScU4tqdu' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "cxq6esMqhJYyScU4tqdu"], ["updated_at", Tue, 25 Mar 2014 11:58:01 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (12.9ms)
Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 4.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:01 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JAnzQCT3U8xpG3gwmzXF' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "JAnzQCT3U8xpG3gwmzXF"], ["updated_at", Tue, 25 Mar 2014 11:58:12 UTC +00:00]]
[1m[35m (2.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'L1Z2vafsVJfHQpLKHbVS' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "L1Z2vafsVJfHQpLKHbVS"], ["updated_at", Tue, 25 Mar 2014 11:58:12 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (12.5ms)
Completed 200 OK in 17ms (Views: 10.6ms | ActiveRecord: 5.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:12 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.8ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'f4uBVKkMpcHDDvvUJXhm' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "f4uBVKkMpcHDDvvUJXhm"], ["updated_at", Tue, 25 Mar 2014 11:58:22 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vuUaPg3HtqGy7NPreAyx' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "vuUaPg3HtqGy7NPreAyx"], ["updated_at", Tue, 25 Mar 2014 11:58:22 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (84.0ms)
Completed 200 OK in 130ms (Views: 103.7ms | ActiveRecord: 10.5ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:58:22 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:58:25 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"vuUaPg3HtqGy7NPreAyx", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395748702", "sig"=>"47aee25e72b78cca8ca0d2972a83a21c", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1385ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:03:50 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.4ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (75.7ms)
Completed 200 OK in 110ms (Views: 101.2ms | ActiveRecord: 4.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:03:51 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:03:51 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:51 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:51 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:51 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wiTaSzBxyd1vESqQQy3N' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.8ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "wiTaSzBxyd1vESqQQy3N"], ["updated_at", Tue, 25 Mar 2014 12:03:53 UTC +00:00]]
[1m[35m (3.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Rww76R5JaPMqygPayMAp' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Rww76R5JaPMqygPayMAp"], ["updated_at", Tue, 25 Mar 2014 12:03:53 UTC +00:00]]
[1m[35m (0.6ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (25.2ms)
Completed 200 OK in 31ms (Views: 22.6ms | ActiveRecord: 7.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:03:53 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:03:54 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"Rww76R5JaPMqygPayMAp", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749033", "sig"=>"820f81588474f8ac0d6b1d0023e4c438", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1644ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:07:14 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.4ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.5ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.5ms)
Completed 200 OK in 146ms (Views: 135.4ms | ActiveRecord: 4.6ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:07:15 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:07:15 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:15 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:15 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:15 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ScbtKJXoz6eRtoNDiNqG' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "ScbtKJXoz6eRtoNDiNqG"], ["updated_at", Tue, 25 Mar 2014 12:07:17 UTC +00:00]]
[1m[35m (3.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Pe3sULXFSDDzfpBmWCzM' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Pe3sULXFSDDzfpBmWCzM"], ["updated_at", Tue, 25 Mar 2014 12:07:17 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.7ms)
Completed 200 OK in 29ms (Views: 20.5ms | ActiveRecord: 6.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:07:17 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:07:19 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"Pe3sULXFSDDzfpBmWCzM", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749237", "sig"=>"5670f47eb8a8f3728859fe84b7c7efde", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2466ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (74.9ms)
Completed 200 OK in 145ms (Views: 136.2ms | ActiveRecord: 4.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:38 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wqrCHHWkBMzQQPYyzHm5' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "wqrCHHWkBMzQQPYyzHm5"], ["updated_at", Tue, 25 Mar 2014 12:11:42 UTC +00:00]]
[1m[35m (2.6ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sks3nJEhn5pAcBz6xNwZ' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "sks3nJEhn5pAcBz6xNwZ"], ["updated_at", Tue, 25 Mar 2014 12:11:42 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.8ms)
Completed 200 OK in 29ms (Views: 21.6ms | ActiveRecord: 6.2ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:11:42 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:11:43 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"sks3nJEhn5pAcBz6xNwZ", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749502", "sig"=>"176a11413c32537d155cae9fae6d5c47", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2992ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (74.1ms)
Completed 200 OK in 142ms (Views: 129.7ms | ActiveRecord: 5.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:54 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kuVsx3dGqzoms9bh4Dky' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "kuVsx3dGqzoms9bh4Dky"], ["updated_at", Tue, 25 Mar 2014 12:12:56 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'fNkswzocycsDFfzTjrQE' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "fNkswzocycsDFfzTjrQE"], ["updated_at", Tue, 25 Mar 2014 12:12:56 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.9ms)
Completed 200 OK in 29ms (Views: 22.4ms | ActiveRecord: 5.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:12:56 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:12:57 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"fNkswzocycsDFfzTjrQE", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749576", "sig"=>"e141a299a67dac78acaa3453cdead958", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2109ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:14:04 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.7ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (74.0ms)
Completed 200 OK in 140ms (Views: 131.0ms | ActiveRecord: 4.7ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:14:05 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:14:05 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:05 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:05 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:05 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C1RSZFbzoVeFhPnqs5Ge' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "C1RSZFbzoVeFhPnqs5Ge"], ["updated_at", Tue, 25 Mar 2014 12:14:06 UTC +00:00]]
[1m[35m (2.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Vtczfpv39qVB58jnqFqL' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Vtczfpv39qVB58jnqFqL"], ["updated_at", Tue, 25 Mar 2014 12:14:06 UTC +00:00]]
[1m[35m (1.2ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.7ms)
Completed 200 OK in 28ms (Views: 20.5ms | ActiveRecord: 6.7ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:14:06 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:14:08 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"Vtczfpv39qVB58jnqFqL", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749646", "sig"=>"175e83b8a9e6e2826831729e03edc5a5", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 1024ms
NameError (undefined local variable or method `logger' for Opay::Providers::Paypal:Class):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:28:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__985296797032903030__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2110799044370535171__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:14:28 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"Vtczfpv39qVB58jnqFqL", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749646", "sig"=>"175e83b8a9e6e2826831729e03edc5a5", "commit"=>"pay_with_pay_pal"}
#
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2546ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:15:49 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.6ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (71.3ms)
Completed 200 OK in 135ms (Views: 125.8ms | ActiveRecord: 5.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'y2sRDp5yEqVUiNRzzRiz' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "y2sRDp5yEqVUiNRzzRiz"], ["updated_at", Tue, 25 Mar 2014 12:15:51 UTC +00:00]]
[1m[35m (3.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PAsoqSujxCyxBVrws5nE' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "PAsoqSujxCyxBVrws5nE"], ["updated_at", Tue, 25 Mar 2014 12:15:51 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (24.3ms)
Completed 200 OK in 30ms (Views: 22.4ms | ActiveRecord: 6.5ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:51 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:15:53 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"PAsoqSujxCyxBVrws5nE", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749751", "sig"=>"aeb1e7d3d9ad545359c942180609f799", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1108ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:16:11 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.7ms)
Completed 200 OK in 140ms (Views: 131.4ms | ActiveRecord: 4.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:16:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:16:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:12 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:12 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qbgongQDBPWAM4spUpS4' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.8ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "qbgongQDBPWAM4spUpS4"], ["updated_at", Tue, 25 Mar 2014 12:16:13 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'p6exyq8EFyogjX1QEitD' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "p6exyq8EFyogjX1QEitD"], ["updated_at", Tue, 25 Mar 2014 12:16:13 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (24.9ms)
Completed 200 OK in 30ms (Views: 22.0ms | ActiveRecord: 6.7ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:16:13 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:16:15 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"p6exyq8EFyogjX1QEitD", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395749773", "sig"=>"3b208fe1c529c8752abb51ed257e49ae", "commit"=>"pay_with_pay_pal"}
#"2014-03-25T12:16:20Z", "ack"=>"Failure", "correlation_id"=>"45d6a03fba195", "version"=>"72", "build"=>"10030158", "message"=>"Security header is not valid", "error_codes"=>"10002", "Timestamp"=>"2014-03-25T12:16:20Z", "Ack"=>"Failure", "CorrelationID"=>"45d6a03fba195", "Errors"=>{"ShortMessage"=>"Security error", "LongMessage"=>"Security header is not valid", "ErrorCode"=>"10002", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158"}, @message="Security header is not valid", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1537ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:22:41 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.5ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.8ms)
Completed 200 OK in 141ms (Views: 132.4ms | ActiveRecord: 4.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:22:42 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:22:42 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:42 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:42 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:42 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JQMxoKkni3yjKgq3KVhB' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "JQMxoKkni3yjKgq3KVhB"], ["updated_at", Tue, 25 Mar 2014 12:22:43 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'mYy5J1Qzyzystw3DSaMn' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "mYy5J1Qzyzystw3DSaMn"], ["updated_at", Tue, 25 Mar 2014 12:22:43 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (22.9ms)
Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 5.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:22:43 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:22:44 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"mYy5J1Qzyzystw3DSaMn", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395750163", "sig"=>"a39631e3a5a2c9271e1c9a125ae57eba", "commit"=>"pay_with_pay_pal"}
#"2014-03-25T12:22:50Z", "ack"=>"Failure", "correlation_id"=>"cfa5e54a76183", "version"=>"72", "build"=>"10030158", "message"=>"Security header is not valid", "error_codes"=>"10002", "Timestamp"=>"2014-03-25T12:22:50Z", "Ack"=>"Failure", "CorrelationID"=>"cfa5e54a76183", "Errors"=>{"ShortMessage"=>"Security error", "LongMessage"=>"Security header is not valid", "ErrorCode"=>"10002", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158"}, @message="Security header is not valid", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1069ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:28:11 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.9ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (81.8ms)
Completed 200 OK in 147ms (Views: 137.3ms | ActiveRecord: 5.2ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:12 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:28:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:28:12 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yYi2nycP9JqNczwzWVvp' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "yYi2nycP9JqNczwzWVvp"], ["updated_at", Tue, 25 Mar 2014 12:28:13 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qNFzWQvziqPPEFimuE3N' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "qNFzWQvziqPPEFimuE3N"], ["updated_at", Tue, 25 Mar 2014 12:28:13 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (22.8ms)
Completed 200 OK in 28ms (Views: 20.9ms | ActiveRecord: 5.9ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:28:13 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:28:14 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"qNFzWQvziqPPEFimuE3N", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395750493", "sig"=>"8b903976dc35fa028581639669282a61", "commit"=>"pay_with_pay_pal"}
#"2014-03-25T12:28:22Z", "ack"=>"Failure", "correlation_id"=>"d979efbbec49c", "version"=>"72", "build"=>"10030158", "message"=>"Security header is not valid", "error_codes"=>"10002", "Timestamp"=>"2014-03-25T12:28:22Z", "Ack"=>"Failure", "CorrelationID"=>"d979efbbec49c", "Errors"=>{"ShortMessage"=>"Security error", "LongMessage"=>"Security header is not valid", "ErrorCode"=>"10002", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158"}, @message="Security header is not valid", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 2370ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.5ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.0ms)
Completed 200 OK in 102ms (Views: 92.8ms | ActiveRecord: 4.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:55 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NnYwWDiq2s2En44Zey7i' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "NnYwWDiq2s2En44Zey7i"], ["updated_at", Tue, 25 Mar 2014 12:30:57 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MmCdS2Dx8FQStieAwwUk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "MmCdS2Dx8FQStieAwwUk"], ["updated_at", Tue, 25 Mar 2014 12:30:57 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.7ms)
Completed 200 OK in 29ms (Views: 21.3ms | ActiveRecord: 6.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:30:57 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:30:58 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"MmCdS2Dx8FQStieAwwUk", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395750657", "sig"=>"faf16f527e11391571710559cd88168e", "commit"=>"pay_with_pay_pal"}
#"2014-03-25T12:31:04Z", "ack"=>"Failure", "correlation_id"=>"9a30dd0f87d9e", "version"=>"72", "build"=>"10030158", "message"=>"Security header is not valid", "error_codes"=>"10002", "Timestamp"=>"2014-03-25T12:31:04Z", "Ack"=>"Failure", "CorrelationID"=>"9a30dd0f87d9e", "Errors"=>{"ShortMessage"=>"Security error", "LongMessage"=>"Security header is not valid", "ErrorCode"=>"10002", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158"}, @message="Security header is not valid", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1342ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (74.5ms)
Completed 200 OK in 138ms (Views: 129.1ms | ActiveRecord: 4.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:23 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'VsbkTL8SYJpoTwi6b2gz' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "VsbkTL8SYJpoTwi6b2gz"], ["updated_at", Tue, 25 Mar 2014 12:32:24 UTC +00:00]]
[1m[35m (2.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1piDrxLjxrBHFq6ezFwy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "1piDrxLjxrBHFq6ezFwy"], ["updated_at", Tue, 25 Mar 2014 12:32:24 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.2ms)
Completed 200 OK in 28ms (Views: 21.2ms | ActiveRecord: 5.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:32:24 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:32:25 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"1piDrxLjxrBHFq6ezFwy", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395750744", "sig"=>"bfe413190ec229ad25b6ea4457f0ce67", "commit"=>"pay_with_pay_pal"}
ollownia-facilitator_api1.gmail.com
AGUkzh-MeQY9FWOCQ5.UwnNAI5EgABkxUU7ynmHt9IbLYXd5FwKiwy6K
#"2014-03-25T12:32:31Z", "ack"=>"Failure", "correlation_id"=>"c470b28ee5322", "version"=>"72", "build"=>"10030158", "message"=>"Security header is not valid", "error_codes"=>"10002", "Timestamp"=>"2014-03-25T12:32:31Z", "Ack"=>"Failure", "CorrelationID"=>"c470b28ee5322", "Errors"=>{"ShortMessage"=>"Security error", "LongMessage"=>"Security header is not valid", "ErrorCode"=>"10002", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158"}, @message="Security header is not valid", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1325ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (2.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.6ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (77.1ms)
Completed 200 OK in 149ms (Views: 138.8ms | ActiveRecord: 5.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:33:09 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vrWp6WqYfbyS6jBfzMcx' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "vrWp6WqYfbyS6jBfzMcx"], ["updated_at", Tue, 25 Mar 2014 12:33:11 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C4D8tbSjpfEq3GTzmfPC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "C4D8tbSjpfEq3GTzmfPC"], ["updated_at", Tue, 25 Mar 2014 12:33:11 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.3ms)
Completed 200 OK in 28ms (Views: 22.4ms | ActiveRecord: 4.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:33:11 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 13:33:13 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"C4D8tbSjpfEq3GTzmfPC", "amount"=>"100", "js"=>"0", "pay_type"=>"t", "ts"=>"1395750791", "sig"=>"e40d8cb6dbaa10faf9aa0ef363ac2bc3", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7TM255451H9041252
Completed 302 Found in 1364ms (ActiveRecord: 0.0ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.5ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (21.6ms)
Completed 200 OK in 41ms (Views: 36.5ms | ActiveRecord: 2.3ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:10:18 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:15:11 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (2.4ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.5ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (81.1ms)
Completed 200 OK in 170ms (Views: 156.6ms | ActiveRecord: 5.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:15:12 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:15:12 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:15:13 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C3eUSUrmR6pvHCNsvDyQ' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "C3eUSUrmR6pvHCNsvDyQ"], ["updated_at", Tue, 25 Mar 2014 13:15:13 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '64sHYeQx76eSBED5vztW' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "64sHYeQx76eSBED5vztW"], ["updated_at", Tue, 25 Mar 2014 13:15:13 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (79.3ms)
Completed 500 Internal Server Error in 83ms
ActionView::Template::Error (undefined local variable or method `js' for #):
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.paypal_payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
29: <% end -%>
app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb__1155187797747124106_70247384892260'
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__1155187797747124106_70247384892260'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.6ms)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:15:39 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JyTbxiBzjHFpeSqBFQmj' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "JyTbxiBzjHFpeSqBFQmj"], ["updated_at", Tue, 25 Mar 2014 13:15:39 UTC +00:00]]
[1m[35m (2.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'y6Fzga1is3bTbzHgvvxA' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "y6Fzga1is3bTbzHgvvxA"], ["updated_at", Tue, 25 Mar 2014 13:15:39 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (24.2ms)
Completed 500 Internal Server Error in 27ms
ActionView::Template::Error (undefined local variable or method `js' for #):
23: <% end -%>
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.paypal_payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.submit :pay_with_pay_pal %>
28: <%= image_tag "https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" %>
29: <% end -%>
app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb__1155187797747124106_70247384892260'
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__1155187797747124106_70247384892260'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (2.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aLdWEcbDrYzv9o5DRntC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.7ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "aLdWEcbDrYzv9o5DRntC"], ["updated_at", Tue, 25 Mar 2014 13:15:47 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'V6TgfiswBjGdTvctyyKk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "V6TgfiswBjGdTvctyyKk"], ["updated_at", Tue, 25 Mar 2014 13:15:47 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (57.3ms)
Completed 200 OK in 144ms (Views: 113.6ms | ActiveRecord: 10.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:15:47 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:15:52 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"V6TgfiswBjGdTvctyyKk", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7XW57386WT438662T
Completed 302 Found in 1124ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (71.0ms)
Completed 200 OK in 143ms (Views: 134.5ms | ActiveRecord: 3.9ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:41 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JcaFDxwguv5UfL59pt3T' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "JcaFDxwguv5UfL59pt3T"], ["updated_at", Tue, 25 Mar 2014 13:18:43 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'RztNb4Bp61cFXzv12Rtg' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "RztNb4Bp61cFXzv12Rtg"], ["updated_at", Tue, 25 Mar 2014 13:18:43 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.0ms)
Completed 200 OK in 28ms (Views: 20.6ms | ActiveRecord: 6.1ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:18:43 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:18:45 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"RztNb4Bp61cFXzv12Rtg", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 65ms
ArgumentError (money amount must be a positive Integer in cents.):
activemerchant (1.42.7) lib/active_merchant/billing/gateway.rb:152:in `amount'
activemerchant (1.42.7) lib/active_merchant/billing/gateway.rb:163:in `localized_amount'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:556:in `block in add_payment_details'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:555:in `add_payment_details'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:159:in `block (3 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:124:in `block (2 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:122:in `block in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:121:in `build_setup_request'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:43:in `setup_purchase'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:19:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__616439896577272319__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1479451913471385490__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.8ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:18:59 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"RztNb4Bp61cFXzv12Rtg", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 1ms
ArgumentError (money amount must be a positive Integer in cents.):
activemerchant (1.42.7) lib/active_merchant/billing/gateway.rb:152:in `amount'
activemerchant (1.42.7) lib/active_merchant/billing/gateway.rb:163:in `localized_amount'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:556:in `block in add_payment_details'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:555:in `add_payment_details'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:159:in `block (3 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:124:in `block (2 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:122:in `block in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:121:in `build_setup_request'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:43:in `setup_purchase'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:19:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__616439896577272319__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1479451913471385490__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.3ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:19:09 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"RztNb4Bp61cFXzv12Rtg", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-9PA94950GM242225U
Completed 302 Found in 1180ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:23:00 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.4ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.5ms)
Completed 200 OK in 102ms (Views: 92.8ms | ActiveRecord: 4.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'UWTY5PBVndg7nymTzqyx' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "UWTY5PBVndg7nymTzqyx"], ["updated_at", Tue, 25 Mar 2014 13:23:03 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yAS8bhFuvEwJcmAZqjrw' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "yAS8bhFuvEwJcmAZqjrw"], ["updated_at", Tue, 25 Mar 2014 13:23:03 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (21.9ms)
Completed 200 OK in 28ms (Views: 21.6ms | ActiveRecord: 4.5ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:03 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:23:09 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"yAS8bhFuvEwJcmAZqjrw", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Completed 500 Internal Server Error in 17ms
TypeError (no implicit conversion of Symbol into Integer):
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:541:in `[]'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:541:in `block (2 levels) in add_payment_details_items_xml'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:540:in `block in add_payment_details_items_xml'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:539:in `each'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:539:in `add_payment_details_items_xml'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:584:in `block in add_payment_details'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb:555:in `add_payment_details'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:159:in `block (3 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:124:in `block (2 levels) in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:122:in `block in build_setup_request'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `call'
builder (3.1.4) lib/builder/xmlbase.rb:170:in `_nested_structures'
builder (3.1.4) lib/builder/xmlbase.rb:63:in `tag!'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:121:in `build_setup_request'
activemerchant (1.42.7) lib/active_merchant/billing/gateways/paypal_express.rb:43:in `setup_purchase'
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:19:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1543005001325590839__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3222652849150309468__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.9ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (1.9ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (75.1ms)
Completed 200 OK in 143ms (Views: 134.0ms | ActiveRecord: 3.8ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:45 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '65CTj7dWsVxECwCWZMQy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "65CTj7dWsVxECwCWZMQy"], ["updated_at", Tue, 25 Mar 2014 13:23:47 UTC +00:00]]
[1m[35m (3.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '8q3GQx9UYGcz249pQAcp' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "8q3GQx9UYGcz249pQAcp"], ["updated_at", Tue, 25 Mar 2014 13:23:47 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.6ms)
Completed 200 OK in 29ms (Views: 20.8ms | ActiveRecord: 6.5ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:47 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:23:48 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"8q3GQx9UYGcz249pQAcp", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-18F58897AF126712Y
Completed 302 Found in 1419ms (ActiveRecord: 0.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.8ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (74.1ms)
Completed 200 OK in 141ms (Views: 130.6ms | ActiveRecord: 5.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:34 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JU19uidMMdpfnMQi34ry' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "JU19uidMMdpfnMQi34ry"], ["updated_at", Tue, 25 Mar 2014 13:27:35 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Gpqq2FxHQbsW3dmuhzBy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Gpqq2FxHQbsW3dmuhzBy"], ["updated_at", Tue, 25 Mar 2014 13:27:35 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.2ms)
Completed 200 OK in 28ms (Views: 20.9ms | ActiveRecord: 6.1ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:27:35 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:27:37 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"Gpqq2FxHQbsW3dmuhzBy", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Gpqq2FxHQbsW3dmuhzBy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-05M599222W079654S
Completed 302 Found in 4474ms (ActiveRecord: 0.2ms)
Started GET "/?success&token=EC-05M599222W079654S&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-05M599222W079654S", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.5ms)
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:30:24 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/?success&token=EC-05M599222W079654S&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:31:08 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-05M599222W079654S", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (73.6ms)
Completed 200 OK in 149ms (Views: 139.5ms | ActiveRecord: 4.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:09 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:09 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:09 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:09 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:09 +0100
Started GET "/?success&token=EC-05M599222W079654S&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-05M599222W079654S", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.8ms)
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:10 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'z5sgSsbJyxiniJSGqX6p' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "z5sgSsbJyxiniJSGqX6p"], ["updated_at", Tue, 25 Mar 2014 13:31:12 UTC +00:00]]
[1m[35m (3.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jv5LxTsBv9nyiyq6CuBk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "jv5LxTsBv9nyiyq6CuBk"], ["updated_at", Tue, 25 Mar 2014 13:31:12 UTC +00:00]]
[1m[35m (0.6ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.8ms)
Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 6.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:12 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:31:13 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"jv5LxTsBv9nyiyq6CuBk", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jv5LxTsBv9nyiyq6CuBk' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=
Completed 302 Found in 1267ms (ActiveRecord: 0.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.6ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.9ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (73.3ms)
Completed 200 OK in 144ms (Views: 133.8ms | ActiveRecord: 5.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:44 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xqzx3yhW4LAv4UHUgv7M' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "xqzx3yhW4LAv4UHUgv7M"], ["updated_at", Tue, 25 Mar 2014 13:31:46 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'keyrKUCcybpMYKdwtVFh' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "keyrKUCcybpMYKdwtVFh"], ["updated_at", Tue, 25 Mar 2014 13:31:46 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.8ms)
Completed 200 OK in 29ms (Views: 21.2ms | ActiveRecord: 6.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:31:46 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:31:47 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"keyrKUCcybpMYKdwtVFh", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'keyrKUCcybpMYKdwtVFh' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-5BS46457N7300773X
Completed 302 Found in 2575ms (ActiveRecord: 0.2ms)
Started GET "/?success&token=EC-5BS46457N7300773X&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-5BS46457N7300773X", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.7ms)
Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:32:39 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/?success&token=EC-5BS46457N7300773X&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:36:23 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-5BS46457N7300773X", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOrder Load (1.5ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.6ms)
Completed 200 OK in 150ms (Views: 141.1ms | ActiveRecord: 4.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:36:24 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:24 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:36:24 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:24 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:24 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '185zWpmtEWfnYcUR1inC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "185zWpmtEWfnYcUR1inC"], ["updated_at", Tue, 25 Mar 2014 13:36:25 UTC +00:00]]
[1m[35m (2.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9XpHBskyQ3qz2pVcdMkg' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "9XpHBskyQ3qz2pVcdMkg"], ["updated_at", Tue, 25 Mar 2014 13:36:25 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (25.4ms)
Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 6.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:36:25 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:36:26 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"9XpHBskyQ3qz2pVcdMkg", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9XpHBskyQ3qz2pVcdMkg' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-24Y06447FR870994U
Completed 302 Found in 1098ms (ActiveRecord: 0.2ms)
Started GET "/?success&token=EC-24Y06447FR870994U&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-24Y06447FR870994U", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.8ms)
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:37:09 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/?success&token=EC-24Y06447FR870994U&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil, "token"=>"EC-24Y06447FR870994U", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (72.8ms)
Completed 200 OK in 141ms (Views: 131.6ms | ActiveRecord: 4.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:11 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ihzdPSxUrdU8pBvzzcpu' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "ihzdPSxUrdU8pBvzzcpu"], ["updated_at", Tue, 25 Mar 2014 13:45:13 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vkxNEpbkYTVtp27ZNuos' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "vkxNEpbkYTVtp27ZNuos"], ["updated_at", Tue, 25 Mar 2014 13:45:13 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.2ms)
Completed 200 OK in 28ms (Views: 21.1ms | ActiveRecord: 5.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:45:13 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:45:14 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"vkxNEpbkYTVtp27ZNuos", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vkxNEpbkYTVtp27ZNuos' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "EC-5MA88159E82167443"], ["updated_at", Tue, 25 Mar 2014 13:45:17 UTC +00:00]]
[1m[35m (3.2ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-5MA88159E82167443
Completed 302 Found in 2617ms (ActiveRecord: 3.9ms)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:45:34 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (36.5ms)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:45:53 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (26.4ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:46:04 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (35.4ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:46:22 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (31.6ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:46:57 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (34.8ms)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:47:29 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (20.8ms)
Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:47:46 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (60.8ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (40.9ms)
Completed 200 OK in 102ms (Views: 93.5ms | ActiveRecord: 4.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:00 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zpsU1qUB5T1racz11Qwz' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "zpsU1qUB5T1racz11Qwz"], ["updated_at", Tue, 25 Mar 2014 13:48:01 UTC +00:00]]
[1m[35m (3.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Jx16GfLxmcxYr1phonuV' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Jx16GfLxmcxYr1phonuV"], ["updated_at", Tue, 25 Mar 2014 13:48:01 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (24.0ms)
Completed 200 OK in 29ms (Views: 21.4ms | ActiveRecord: 6.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:48:01 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:48:03 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"Jx16GfLxmcxYr1phonuV", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.4ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Jx16GfLxmcxYr1phonuV' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "EC-66J00748NF570871Y"], ["updated_at", Tue, 25 Mar 2014 13:48:04 UTC +00:00]]
[1m[35m (1.8ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-66J00748NF570871Y
Completed 302 Found in 1501ms (ActiveRecord: 2.8ms)
Started GET "/paypal/create?token=EC-66J00748NF570871Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:48:21 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (25.3ms)
Started GET "/paypal/create" for 127.0.0.1 at 2014-03-25 14:49:09 +0100
ActionController::RoutingError (No route matches [GET] "/paypal/create"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (22.9ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 14:49:35 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (73.5ms)
Completed 200 OK in 104ms (Views: 95.1ms | ActiveRecord: 4.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:49:36 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:36 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:49:36 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:36 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:36 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wJZByYee9s14CwmVq65N' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "wJZByYee9s14CwmVq65N"], ["updated_at", Tue, 25 Mar 2014 13:49:37 UTC +00:00]]
[1m[35m (2.9ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'k8ujGGCQmYt2rtikEwQy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "k8ujGGCQmYt2rtikEwQy"], ["updated_at", Tue, 25 Mar 2014 13:49:37 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (23.4ms)
Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 6.5ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 14:49:37 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 14:49:39 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"k8ujGGCQmYt2rtikEwQy", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'k8ujGGCQmYt2rtikEwQy' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "EC-6WL71874RC882310Y"], ["updated_at", Tue, 25 Mar 2014 13:49:45 UTC +00:00]]
[1m[35m (2.9ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-6WL71874RC882310Y
Completed 302 Found in 5681ms (ActiveRecord: 3.6ms)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:50:03 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 6ms
NameError (uninitialized constant Opay::Providers::Paypal::EXPRESS_GATEWAY):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:36:in `confirm_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:10:in `create'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3838331575502749280__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4437566645923926014__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.2ms)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:50:16 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 5ms
NameError (uninitialized constant Opay::Providers::Paypal::EXPRESS_GATEWAY):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:36:in `confirm_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:10:in `create'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3838331575502749280__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4437566645923926014__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:50:29 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
#"2014-03-25T13:50:33Z", "ack"=>"Success", "correlation_id"=>"84ed4da332fec", "version"=>"72", "build"=>"10030158", "token"=>"EC-6WL71874RC882310Y", "transaction_id"=>"23P24289MG015460C", "parent_transaction_id"=>nil, "receipt_id"=>nil, "transaction_type"=>"express-checkout", "payment_type"=>"instant", "payment_date"=>"2014-03-25T13:50:33Z", "gross_amount"=>"1.00", "gross_amount_currency_id"=>"USD", "fee_amount"=>"0.33", "fee_amount_currency_id"=>"USD", "tax_amount"=>"0.00", "tax_amount_currency_id"=>"USD", "exchange_rate"=>nil, "payment_status"=>"Pending", "pending_reason"=>"payment-review", "reason_code"=>"none", "protection_eligibility"=>"Ineligible", "protection_eligibility_type"=>"None", "secure_merchant_account_id"=>"RJCAJBG9F5BSG", "success_page_redirect_requested"=>"false", "Token"=>"EC-6WL71874RC882310Y", "PaymentInfo"=>{"TransactionID"=>"23P24289MG015460C", "ParentTransactionID"=>nil, "ReceiptID"=>nil, "TransactionType"=>"express-checkout", "PaymentType"=>"instant", "PaymentDate"=>"2014-03-25T13:50:33Z", "GrossAmount"=>"1.00", "FeeAmount"=>"0.33", "TaxAmount"=>"0.00", "ExchangeRate"=>nil, "PaymentStatus"=>"Pending", "PendingReason"=>"payment-review", "ReasonCode"=>"none", "ProtectionEligibility"=>"Ineligible", "ProtectionEligibilityType"=>"None", "SellerDetails"=>{"SecureMerchantAccountID"=>"RJCAJBG9F5BSG"}}, "SuccessPageRedirectRequested"=>"false"}, @message="Success", @success=true, @test=true, @authorization="23P24289MG015460C", @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Completed 500 Internal Server Error in 3552ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__668143469469360037__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3108844185904781880__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (2.6ms)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:53:14 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1
#"2014-03-25T13:53:16Z", "ack"=>"Failure", "correlation_id"=>"af687b8197824", "version"=>"72", "build"=>"10030158", "do_express_checkout_payment_response_details"=>nil, "message"=>"A successful transaction has already been completed for this token.", "error_codes"=>"10415", "Timestamp"=>"2014-03-25T13:53:16Z", "Ack"=>"Failure", "CorrelationID"=>"af687b8197824", "Errors"=>{"ShortMessage"=>"Transaction refused because of an invalid argument. See additional error messages for details.", "LongMessage"=>"A successful transaction has already been completed for this token.", "ErrorCode"=>"10415", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158", "DoExpressCheckoutPaymentResponseDetails"=>nil}, @message="A successful transaction has already been completed for this token.", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Completed 500 Internal Server Error in 1362ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__668143469469360037__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3108844185904781880__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:05:43 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.7ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
#"2014-03-25T14:05:48Z", "ack"=>"Failure", "correlation_id"=>"f1555a1fcc3ab", "version"=>"72", "build"=>"10030158", "do_express_checkout_payment_response_details"=>nil, "message"=>"A successful transaction has already been completed for this token.", "error_codes"=>"10415", "Timestamp"=>"2014-03-25T14:05:48Z", "Ack"=>"Failure", "CorrelationID"=>"f1555a1fcc3ab", "Errors"=>{"ShortMessage"=>"Transaction refused because of an invalid argument. See additional error messages for details.", "LongMessage"=>"A successful transaction has already been completed for this token.", "ErrorCode"=>"10415", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158", "DoExpressCheckoutPaymentResponseDetails"=>nil}, @message="A successful transaction has already been completed for this token.", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Completed 500 Internal Server Error in 2938ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__668143469469360037__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3108844185904781880__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
Started GET "/opay/paypal/create?token=EC-6WL71874RC882310Y&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:06:17 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-6WL71874RC882310Y", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1
#"2014-03-25T14:06:21Z", "ack"=>"Failure", "correlation_id"=>"474b9ff4f3422", "version"=>"72", "build"=>"10030158", "do_express_checkout_payment_response_details"=>nil, "message"=>"A successful transaction has already been completed for this token.", "error_codes"=>"10415", "Timestamp"=>"2014-03-25T14:06:21Z", "Ack"=>"Failure", "CorrelationID"=>"474b9ff4f3422", "Errors"=>{"ShortMessage"=>"Transaction refused because of an invalid argument. See additional error messages for details.", "LongMessage"=>"A successful transaction has already been completed for this token.", "ErrorCode"=>"10415", "SeverityCode"=>"Error"}, "Version"=>"72", "Build"=>"10030158", "DoExpressCheckoutPaymentResponseDetails"=>nil}, @message="A successful transaction has already been completed for this token.", @success=false, @test=true, @authorization=nil, @fraud_review=false, @avs_result={"code"=>nil, "message"=>nil, "street_match"=>nil, "postal_match"=>nil}, @cvv_result={"code"=>nil, "message"=>nil}>
Completed 500 Internal Server Error in 2556ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__668143469469360037__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3108844185904781880__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.7ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:06:32 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (2.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.7ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (49.9ms)
Completed 200 OK in 130ms (Views: 116.8ms | ActiveRecord: 6.5ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100
Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"1"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "1"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.5ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'XpVNzgyDz3JQsCsVphrK' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (2.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "XpVNzgyDz3JQsCsVphrK"], ["updated_at", Tue, 25 Mar 2014 14:06:36 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Tz1WfpTM5qwsepg14Nq3' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "Tz1WfpTM5qwsepg14Nq3"], ["updated_at", Tue, 25 Mar 2014 14:06:36 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (25.9ms)
Completed 200 OK in 31ms (Views: 24.3ms | ActiveRecord: 5.8ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:06:37 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"Tz1WfpTM5qwsepg14Nq3", "amount"=>"100", "commit"=>"pay_with_pay_pal"}
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Tz1WfpTM5qwsepg14Nq3' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["session_id", "EC-1NE27249UB336292B"], ["updated_at", Tue, 25 Mar 2014 14:06:38 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1NE27249UB336292B
Completed 302 Found in 1112ms (ActiveRecord: 1.8ms)
Started GET "/opay/paypal/create?token=EC-1NE27249UB336292B&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:06:58 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-1NE27249UB336292B", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-1NE27249UB336292B' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:07:01 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:07:01 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Completed 500 Internal Server Error in 3770ms
NameError (undefined local variable or method `root_path' for #):
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:11:in `create'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2368421453878286201__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4531265851981602867__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.3ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (2.6ms)
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:38 +0100
Started GET "/" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (1.9ms)
Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:10:40 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (22.2ms)
Rendered orders/new.html.erb within layouts/application (27.7ms)
Completed 200 OK in 96ms (Views: 90.0ms | ActiveRecord: 1.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:27 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:14:34 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"order2", "amount"=>"1000"}, "commit"=>"Create Order"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (3.2ms)[0m INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "1000"], ["created_at", Tue, 25 Mar 2014 14:14:34 UTC +00:00], ["name", "order2"], ["updated_at", Tue, 25 Mar 2014 14:14:34 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/orders/2
Completed 302 Found in 10ms (ActiveRecord: 4.0ms)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 15:14:34 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '56ANBiwR7v3EvRNFqSZ8' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 14:14:34 UTC +00:00], ["payable_id", 2], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "56ANBiwR7v3EvRNFqSZ8"], ["updated_at", Tue, 25 Mar 2014 14:14:34 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oURMorZA8hMJEnLgvBnp' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "oURMorZA8hMJEnLgvBnp"], ["updated_at", Tue, 25 Mar 2014 14:14:34 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (107.7ms)
Completed 500 Internal Server Error in 112ms
ActionView::Template::Error (undefined method `image_submit_tag' for #):
24:
25: <%= paypal_form_for(@order) do |f| %>
26: <%= f.paypal_payment_info desc: 'Test payment', client_ip: '127.0.0.1' %>
27: <%= f.paypal_submit_tag %>
28: <% end -%>
29:
30:
app/views/orders/show.html.erb:27:in `block in _app_views_orders_show_html_erb___2891516209280367686_70231813823760'
app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___2891516209280367686_70231813823760'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (12.4ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4ynxJQ8i49cwJgPc3V9a' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "4ynxJQ8i49cwJgPc3V9a"], ["updated_at", Tue, 25 Mar 2014 14:14:54 UTC +00:00]]
[1m[35m (3.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1CjpjnfDyZdyrf5doBtq' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "1CjpjnfDyZdyrf5doBtq"], ["updated_at", Tue, 25 Mar 2014 14:14:54 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (52.1ms)
Completed 200 OK in 167ms (Views: 138.1ms | ActiveRecord: 11.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Started GET "/images/%22https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
ActionController::RoutingError (No route matches [GET] "/images/%22https:/www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (41.6ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
Started GET "/images/%22https://www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif" for 127.0.0.1 at 2014-03-25 15:14:54 +0100
ActionController::RoutingError (No route matches [GET] "/images/%22https:/www.paypal.com/pl_PL/i/btn/btn_xpressCheckout.gif"):
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (37.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (2.8ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wYq3cpu8TsbBnzfq57om' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "wYq3cpu8TsbBnzfq57om"], ["updated_at", Tue, 25 Mar 2014 14:15:18 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'U29xNprECYcmx9qCkGra' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "U29xNprECYcmx9qCkGra"], ["updated_at", Tue, 25 Mar 2014 14:15:18 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (49.6ms)
Completed 200 OK in 127ms (Views: 105.9ms | ActiveRecord: 10.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:18 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "2"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jxzHJPJopTNNAVcEx4js' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "jxzHJPJopTNNAVcEx4js"], ["updated_at", Tue, 25 Mar 2014 14:15:39 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jTeayJW6XjHcmYbdJQY6' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2[0m [["session_id", "jTeayJW6XjHcmYbdJQY6"], ["updated_at", Tue, 25 Mar 2014 14:15:39 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (12.7ms)
Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 4.7ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:39 +0100
Started GET "/" for 127.0.0.1 at 2014-03-25 15:15:49 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (4.4ms)
Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.4ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:50 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:50 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:50 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:50 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:50 +0100
Started GET "/orders/2" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ZYtbfnVohwiixjU3y6AW' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "ZYtbfnVohwiixjU3y6AW"], ["updated_at", Tue, 25 Mar 2014 14:15:52 UTC +00:00]]
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pzP5kdzqBHWx6cMJ4EhJ' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "pzP5kdzqBHWx6cMJ4EhJ"], ["updated_at", Tue, 25 Mar 2014 14:15:52 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (12.6ms)
Completed 200 OK in 17ms (Views: 11.2ms | ActiveRecord: 5.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:15:52 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:15:53 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"pzP5kdzqBHWx6cMJ4EhJ", "amount"=>"1000", "x"=>"76", "y"=>"16"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pzP5kdzqBHWx6cMJ4EhJ' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.7ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "EC-7YU39871S1693584U"], ["updated_at", Tue, 25 Mar 2014 14:15:55 UTC +00:00]]
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7YU39871S1693584U
Completed 302 Found in 2124ms (ActiveRecord: 3.6ms)
Started GET "/opay/paypal/create?token=EC-7YU39871S1693584U&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:16:18 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-7YU39871S1693584U", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-7YU39871S1693584U' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 2]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:16:21 UTC +00:00]]
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 2[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:16:21 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Completed 500 Internal Server Error in 2856ms
NameError (undefined local variable or method `root_path' for #):
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:11:in `create'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4119318608409022810__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__49170167887024771__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.3ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (5.2ms)
Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:16:26 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (2.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (93.5ms)
Completed 200 OK in 130ms (Views: 118.4ms | ActiveRecord: 6.9ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:23 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (11.6ms)
Rendered orders/new.html.erb within layouts/application (14.7ms)
Completed 200 OK in 18ms (Views: 17.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:24 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"order 3", "amount"=>"150"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "150"], ["created_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00], ["name", "order 3"], ["updated_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Redirected to http://localhost:3000/orders/3
Completed 302 Found in 8ms (ActiveRecord: 2.5ms)
Started GET "/orders/3" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"3"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "3"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sx2DCJzJy6ZHzmuzgRin' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 150], ["created_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00], ["payable_id", 3], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "sx2DCJzJy6ZHzmuzgRin"], ["updated_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3[0m [["session_id", "4U2fXppTHte8ADYS9xg7"], ["updated_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (27.5ms)
Completed 200 OK in 32ms (Views: 27.1ms | ActiveRecord: 3.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:21:32 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:21:34 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"4U2fXppTHte8ADYS9xg7", "amount"=>"150", "x"=>"63", "y"=>"11"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 13ms
NoMethodError (undefined method `setup_purchase' for #):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:15:in `create_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:6:in `new'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__11902349615923733__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2920246749120024638__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.4ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:22:24 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"4U2fXppTHte8ADYS9xg7", "amount"=>"150", "x"=>"63", "y"=>"11"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (3.0ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3[0m [["session_id", "EC-3EM824994Y828643B"], ["updated_at", Tue, 25 Mar 2014 14:22:26 UTC +00:00]]
[1m[35m (2.5ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-3EM824994Y828643B
Completed 302 Found in 1772ms (ActiveRecord: 7.1ms)
Started GET "/opay/paypal/create?token=EC-3EM824994Y828643B&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:22:44 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-3EM824994Y828643B", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-3EM824994Y828643B' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mUPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:22:46 UTC +00:00]]
[1m[35m (2.0ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 3 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:22:46 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Completed 500 Internal Server Error in 2498ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2491114526592510788__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3554680888300824036__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (1.3ms)
Started GET "/opay/paypal/create?token=EC-3EM824994Y828643B&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:23:08 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-3EM824994Y828643B", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-3EM824994Y828643B' ORDER BY "opay_payments"."id" ASC LIMIT 1
Completed 500 Internal Server Error in 1379ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2491114526592510788__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3554680888300824036__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (6.1ms)
Completed 200 OK in 74ms (Views: 72.8ms | ActiveRecord: 0.6ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:12 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (47.1ms)
Rendered orders/new.html.erb within layouts/application (50.2ms)
Completed 200 OK in 54ms (Views: 53.6ms | ActiveRecord: 0.0ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:13 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"o 4", "amount"=>"100"}, "commit"=>"Create Order"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "100"], ["created_at", Tue, 25 Mar 2014 14:23:20 UTC +00:00], ["name", "o 4"], ["updated_at", Tue, 25 Mar 2014 14:23:20 UTC +00:00]]
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/orders/4
Completed 302 Found in 6ms (ActiveRecord: 1.5ms)
Started GET "/orders/4" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"4"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "4"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jQy6bcMTisgsDY4mUbdH' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", Tue, 25 Mar 2014 14:23:20 UTC +00:00], ["payable_id", 4], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "jQy6bcMTisgsDY4mUbdH"], ["updated_at", Tue, 25 Mar 2014 14:23:20 UTC +00:00]]
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TsiHfSunQHvycmxqvr95' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 4 [["session_id", "TsiHfSunQHvycmxqvr95"], ["updated_at", Tue, 25 Mar 2014 14:23:20 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (16.5ms)
Completed 200 OK in 23ms (Views: 17.5ms | ActiveRecord: 3.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:23:20 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:23:21 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"TsiHfSunQHvycmxqvr95", "amount"=>"100", "x"=>"53", "y"=>"8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TsiHfSunQHvycmxqvr95' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 4 [["session_id", "EC-7K6562634Y0075941"], ["updated_at", Tue, 25 Mar 2014 14:23:22 UTC +00:00]]
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7K6562634Y0075941
Completed 302 Found in 914ms (ActiveRecord: 3.6ms)
Started GET "/opay/paypal/create?token=EC-7K6562634Y0075941&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:23:48 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-7K6562634Y0075941", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-7K6562634Y0075941' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 4 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:23:50 UTC +00:00]]
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 4[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:23:50 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Completed 500 Internal Server Error in 2779ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2491114526592510788__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3554680888300824036__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (3.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.7ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (83.4ms)
Completed 200 OK in 152ms (Views: 140.5ms | ActiveRecord: 7.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:35 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (11.6ms)
Rendered orders/new.html.erb within layouts/application (15.5ms)
Completed 200 OK in 19ms (Views: 18.6ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:37 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"5", "amount"=>"100"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "100"], ["created_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00], ["name", "5"], ["updated_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Redirected to http://localhost:3000/orders/5
Completed 302 Found in 7ms (ActiveRecord: 2.6ms)
Started GET "/orders/5" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"5"}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "5"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JCpexAZhbeS6WsEGagiy' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 100], ["created_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00], ["payable_id", 5], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "JCpexAZhbeS6WsEGagiy"], ["updated_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oixNqcBpT331xM9EVK6f' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5[0m [["session_id", "oixNqcBpT331xM9EVK6f"], ["updated_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (69.8ms)
Completed 200 OK in 75ms (Views: 67.6ms | ActiveRecord: 5.9ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:24:43 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:24:45 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"oixNqcBpT331xM9EVK6f", "amount"=>"100", "x"=>"88", "y"=>"5"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oixNqcBpT331xM9EVK6f' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.7ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5[0m [["session_id", "EC-795042436L291290A"], ["updated_at", Tue, 25 Mar 2014 14:24:46 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-795042436L291290A
Completed 302 Found in 1535ms (ActiveRecord: 3.3ms)
Started GET "/opay/paypal/create?token=EC-795042436L291290A&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:25:07 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-795042436L291290A", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-795042436L291290A' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 3383ms
NameError (undefined local variable or method `ayment' for Opay::Providers::Paypal:Class):
/Users/olownia/dev/gems/opay/lib/opay/providers/paypal.rb:43:in `confirm_payment'
/Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:10:in `create'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2139800555879381217__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3244549953905112755__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (51.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (69.0ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/opay/paypal/create?token=EC-795042436L291290A&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:25:35 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-795042436L291290A", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-795042436L291290A' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
Completed 500 Internal Server Error in 1602ms
ActionView::MissingTemplate (Missing template opay/paypal/create, opay/application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
* "/Users/olownia/dev/gems/opay/spec/dummy/app/views"
* "/Users/olownia/dev/gems/opay/app/views"
):
actionpack (4.0.4) lib/action_view/path_set.rb:46:in `find'
actionpack (4.0.4) lib/action_view/lookup_context.rb:122:in `find'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:35:in `determine_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:8:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__663446387020097199__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1118713536292647759__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (1.3ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (3.4ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (75.3ms)
Completed 200 OK in 99ms (Views: 91.0ms | ActiveRecord: 4.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:44 +0100
Started GET "/orders/5" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"5"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "5"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qbyVSBW97kD2sRork79a' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["session_id", "qbyVSBW97kD2sRork79a"], ["updated_at", Tue, 25 Mar 2014 14:25:47 UTC +00:00]]
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'grns7kJ7zZxx13fjRXdV' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["session_id", "grns7kJ7zZxx13fjRXdV"], ["updated_at", Tue, 25 Mar 2014 14:25:47 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (18.4ms)
Completed 200 OK in 23ms (Views: 17.1ms | ActiveRecord: 5.2ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:25:47 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:25:48 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"grns7kJ7zZxx13fjRXdV", "amount"=>"100", "x"=>"68", "y"=>"12"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'grns7kJ7zZxx13fjRXdV' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["session_id", "EC-43J16209H4594551X"], ["updated_at", Tue, 25 Mar 2014 14:25:49 UTC +00:00]]
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-43J16209H4594551X
Completed 302 Found in 942ms (ActiveRecord: 3.1ms)
Started GET "/opay/paypal/create?token=EC-43J16209H4594551X&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:26:06 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-43J16209H4594551X", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-43J16209H4594551X' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 5]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:26:13 UTC +00:00]]
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 5[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:26:13 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/
Completed 302 Found in 6448ms (ActiveRecord: 5.1ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (8.4ms)
Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 1.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:26:13 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (54.7ms)
Rendered orders/new.html.erb within layouts/application (58.3ms)
Completed 200 OK in 62ms (Views: 61.6ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:27:02 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:28:10 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"6", "amount"=>"200"}, "commit"=>"Create Order"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "200"], ["created_at", Tue, 25 Mar 2014 14:28:10 UTC +00:00], ["name", "6"], ["updated_at", Tue, 25 Mar 2014 14:28:10 UTC +00:00]]
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/orders/6
Completed 302 Found in 24ms (ActiveRecord: 7.2ms)
Started GET "/orders/6" for 127.0.0.1 at 2014-03-25 15:28:10 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"6"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "6"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dxsQ4WxdRp5ipdV5zWeY' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 200], ["created_at", Tue, 25 Mar 2014 14:28:10 UTC +00:00], ["payable_id", 6], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "dxsQ4WxdRp5ipdV5zWeY"], ["updated_at", Tue, 25 Mar 2014 14:28:10 UTC +00:00]]
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aFK5n537upq5A1AxDDie' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 6 [["session_id", "aFK5n537upq5A1AxDDie"], ["updated_at", Tue, 25 Mar 2014 14:28:10 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (86.1ms)
Completed 200 OK in 127ms (Views: 118.1ms | ActiveRecord: 5.3ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:28:11 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:28:11 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:11 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:11 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:11 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:28:12 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"aFK5n537upq5A1AxDDie", "amount"=>"200", "x"=>"106", "y"=>"8"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aFK5n537upq5A1AxDDie' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 6 [["session_id", "EC-75S58534FK982523L"], ["updated_at", Tue, 25 Mar 2014 14:28:14 UTC +00:00]]
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-75S58534FK982523L
Completed 302 Found in 2526ms (ActiveRecord: 3.5ms)
Started GET "/opay/paypal/create?token=EC-75S58534FK982523L&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:28:32 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-75S58534FK982523L", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-75S58534FK982523L' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 6]]
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 6 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:28:35 UTC +00:00]]
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 6[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:28:35 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/
Completed 302 Found in 2766ms (ActiveRecord: 5.8ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (10.7ms)
Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 1.1ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:28:35 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (43.6ms)
Completed 200 OK in 109ms (Views: 98.1ms | ActiveRecord: 5.9ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:15 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (11.6ms)
Rendered orders/new.html.erb within layouts/application (14.8ms)
Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:16 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"8", "amount"=>"300"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "300"], ["created_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00], ["name", "8"], ["updated_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/orders/7
Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
Started GET "/orders/7" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"7"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "7"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dw78aaj6E3m1zqdXMi1A' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 300], ["created_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00], ["payable_id", 7], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "dw78aaj6E3m1zqdXMi1A"], ["updated_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tqCKzJEPDWFqqWTEtqcC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7[0m [["session_id", "tqCKzJEPDWFqqWTEtqcC"], ["updated_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (25.8ms)
Completed 200 OK in 31ms (Views: 25.6ms | ActiveRecord: 3.7ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:20 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:29:21 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"tqCKzJEPDWFqqWTEtqcC", "amount"=>"300", "x"=>"75", "y"=>"15"}
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tqCKzJEPDWFqqWTEtqcC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7[0m [["session_id", "EC-04U66146NG0222223"], ["updated_at", Tue, 25 Mar 2014 14:29:23 UTC +00:00]]
[1m[35m (2.7ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-04U66146NG0222223
Completed 302 Found in 1304ms (ActiveRecord: 3.5ms)
Started GET "/opay/paypal/create?token=EC-04U66146NG0222223&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:29:41 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-04U66146NG0222223", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-04U66146NG0222223' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 7]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:29:43 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 7 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:29:43 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/
Completed 302 Found in 2328ms (ActiveRecord: 4.3ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (8.4ms)
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.9ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:29:43 +0100
Started GET "/" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (8.1ms)
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.9ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:30:58 +0100
Started GET "/" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (10.1ms)
Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 1.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:31:25 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:41:44 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (81.5ms)
Completed 200 OK in 153ms (Views: 142.1ms | ActiveRecord: 5.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:41:45 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:45 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:41:45 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:45 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:45 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (15.9ms)
Rendered orders/new.html.erb within layouts/application (19.2ms)
Completed 200 OK in 24ms (Views: 23.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:41:46 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (16.1ms)
Rendered orders/new.html.erb within layouts/application (53.9ms)
Completed 200 OK in 88ms (Views: 81.6ms | ActiveRecord: 1.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:29 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"fsdlkj", "amount"=>"654"}, "commit"=>"Create Order"}
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "654"], ["created_at", Tue, 25 Mar 2014 14:44:36 UTC +00:00], ["name", "fsdlkj"], ["updated_at", Tue, 25 Mar 2014 14:44:36 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/orders/8
Completed 302 Found in 10ms (ActiveRecord: 4.7ms)
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PyGRpyLTES5Ksf31AYY8' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 654], ["created_at", Tue, 25 Mar 2014 14:44:36 UTC +00:00], ["payable_id", 8], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "PyGRpyLTES5Ksf31AYY8"], ["updated_at", Tue, 25 Mar 2014 14:44:36 UTC +00:00]]
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tbRiW6pVNfASqeUNvrX8' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "tbRiW6pVNfASqeUNvrX8"], ["updated_at", Tue, 25 Mar 2014 14:44:36 UTC +00:00]]
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (50.6ms)
Completed 200 OK in 57ms (Views: 49.9ms | ActiveRecord: 4.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:36 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:44:38 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"tbRiW6pVNfASqeUNvrX8", "amount"=>"654", "x"=>"105", "y"=>"15"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tbRiW6pVNfASqeUNvrX8' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "EC-54Y05017Y73614925"], ["updated_at", Tue, 25 Mar 2014 14:44:40 UTC +00:00]]
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-54Y05017Y73614925
Completed 302 Found in 1774ms (ActiveRecord: 3.7ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Processing by OrdersController#index as HTML
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (11.0ms)
Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 1.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:57 +0100
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "8"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kzeXzybuBTbFLewWW6Gp' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "kzeXzybuBTbFLewWW6Gp"], ["updated_at", Tue, 25 Mar 2014 14:44:59 UTC +00:00]]
[1m[35m (2.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PtmdYCG1sF9RbnLZ1pkL' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "PtmdYCG1sF9RbnLZ1pkL"], ["updated_at", Tue, 25 Mar 2014 14:44:59 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (14.4ms)
Completed 200 OK in 20ms (Views: 13.5ms | ActiveRecord: 5.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:44:59 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "8"]]
[1m[35mOpay::Payment Load (2.0ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kpzcRqsvzXTpyoUZHsFo' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "kpzcRqsvzXTpyoUZHsFo"], ["updated_at", Tue, 25 Mar 2014 14:45:09 UTC +00:00]]
[1m[35m (3.1ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EAWHZdkWuN6YDMqZPBWC' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "EAWHZdkWuN6YDMqZPBWC"], ["updated_at", Tue, 25 Mar 2014 14:45:09 UTC +00:00]]
[1m[35m (1.1ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (47.1ms)
Completed 200 OK in 166ms (Views: 142.6ms | ActiveRecord: 10.4ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:09 +0100
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "8"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NXuPgv3JGPHvsnFGXDod' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "NXuPgv3JGPHvsnFGXDod"], ["updated_at", Tue, 25 Mar 2014 14:45:11 UTC +00:00]]
[1m[35m (2.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vksMUzpJ622grX7rynzm' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8[0m [["session_id", "vksMUzpJ622grX7rynzm"], ["updated_at", Tue, 25 Mar 2014 14:45:11 UTC +00:00]]
[1m[35m (2.6ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (16.0ms)
Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 6.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:11 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:45:13 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"vksMUzpJ622grX7rynzm", "amount"=>"654", "x"=>"93", "y"=>"16"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (6.3ms)
Completed 200 OK in 74ms (Views: 73.5ms | ActiveRecord: 0.0ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:13 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:13 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:13 +0100
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:13 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:45:36 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"vksMUzpJ622grX7rynzm", "amount"=>"654", "x"=>"93", "y"=>"16"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (1.3ms)
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:45:36 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:36 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:36 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:45:36 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.7ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (84.3ms)
Completed 200 OK in 153ms (Views: 142.7ms | ActiveRecord: 5.6ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:47 +0100
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[35mOrder Load (0.3ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qStapmhd3dy67MtdY2gn' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.9ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "qStapmhd3dy67MtdY2gn"], ["updated_at", Tue, 25 Mar 2014 14:48:49 UTC +00:00]]
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'BeP1SsS5LngwDix26nEq' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "BeP1SsS5LngwDix26nEq"], ["updated_at", Tue, 25 Mar 2014 14:48:49 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (23.1ms)
Completed 200 OK in 28ms (Views: 20.3ms | ActiveRecord: 6.6ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:48:49 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:48:50 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"BeP1SsS5LngwDix26nEq", "amount"=>"654", "x"=>"92", "y"=>"17"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (54.8ms)
Completed 500 Internal Server Error in 58ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007fd3b6339e10>):
10:
11:
12:
13: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
14: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb:13:in `___sers_olownia_dev_gems_opay_app_views_opay_paypal_new_html_erb___3286209251262234291_70273635827880'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3343766139264786014__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1802368867386437860__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (13.7ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:49:16 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"BeP1SsS5LngwDix26nEq", "amount"=>"654", "x"=>"92", "y"=>"17"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (12.2ms)
Completed 500 Internal Server Error in 17ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007fd3b625b660>):
10:
11:
12:
13: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
14: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb:13:in `___sers_olownia_dev_gems_opay_app_views_opay_paypal_new_html_erb___3286209251262234291_70273635827880'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3343766139264786014__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1802368867386437860__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (12.5ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:49:33 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"BeP1SsS5LngwDix26nEq", "amount"=>"654", "x"=>"92", "y"=>"17"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (16.4ms)
Completed 500 Internal Server Error in 26ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007f9770ee04a8>):
10:
11:
12:
13: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
14: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb:13:in `___sers_olownia_dev_gems_opay_app_views_opay_paypal_new_html_erb___2328282158569388327_70144229556300'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__112171701466607763__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__2940121363439155277__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.8ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (16.2ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:50:47 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.1ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (3.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (44.6ms)
Completed 200 OK in 113ms (Views: 102.7ms | ActiveRecord: 5.9ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:50:48 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:50:48 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:48 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:48 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:48 +0100
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'cgiwt4qpqqMtUu5NdYEf' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.6ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "cgiwt4qpqqMtUu5NdYEf"], ["updated_at", Tue, 25 Mar 2014 14:50:50 UTC +00:00]]
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Qyk5pvT5PEiBM88xSpDa' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "Qyk5pvT5PEiBM88xSpDa"], ["updated_at", Tue, 25 Mar 2014 14:50:50 UTC +00:00]]
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (24.1ms)
Completed 200 OK in 30ms (Views: 22.1ms | ActiveRecord: 6.3ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:50:50 +0100
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:50:51 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (16.3ms)
Completed 500 Internal Server Error in 22ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007fe8e5e9b0a8>):
20:
21:
22:
23: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
24: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb:23:in `___sers_olownia_dev_gems_opay_app_views_opay_payu_paygw_html_erb__4069003204769004530_70319133214420'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3402343931787244381__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1948390287133378660__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.2ms)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:51:10 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (4.6ms)
Completed 500 Internal Server Error in 7ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #):
20:
21:
22:
23: <%= link_to 'Poprawna autoryzacja', opay.opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
24: <%= link_to 'Błędna autoryzacja', opay.opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
actionpack (4.0.4) lib/action_dispatch/routing/routes_proxy.rb:36:in `method_missing'
/Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb:23:in `___sers_olownia_dev_gems_opay_app_views_opay_payu_paygw_html_erb__4069003204769004530_70319132213520'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3402343931787244381__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1948390287133378660__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.5ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:51:20 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (12.2ms)
Completed 500 Internal Server Error in 23ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #):
20:
21:
22:
23: <%= link_to 'Poprawna autoryzacja', opay.opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
24: <%= link_to 'Błędna autoryzacja', opay.opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
actionpack (4.0.4) lib/action_dispatch/routing/routes_proxy.rb:36:in `method_missing'
/Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb:23:in `___sers_olownia_dev_gems_opay_app_views_opay_payu_paygw_html_erb___779579180926271151_70286780458500'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__665942826285160439__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1015861706440008430__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.7ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (12.7ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:51:36 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (43.0ms)
Completed 500 Internal Server Error in 50ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #):
20:
21:
22:
23: <%= link_to 'Poprawna autoryzacja', opay.opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
24: <%= link_to 'Błędna autoryzacja', opay.opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
actionpack (4.0.4) lib/action_dispatch/routing/routes_proxy.rb:36:in `method_missing'
/Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb:23:in `___sers_olownia_dev_gems_opay_app_views_opay_payu_paygw_html_erb__899989221073057930_70118159228380'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1838365804833753782__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1621867468439818588__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (13.5ms)
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:51:53 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (48.1ms)
Completed 500 Internal Server Error in 55ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007fc7cdeffaa0>):
20:
21:
22:
23: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
24: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb:23:in `___sers_olownia_dev_gems_opay_app_views_opay_payu_paygw_html_erb__4238572876288813829_70248065285500'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3395171238594971138__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3220142865135567206__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.6ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.1ms)
Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-03-25 15:52:10 +0100
Processing by Opay::PayuController#paygw as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "first_name"=>"Jan", "last_name"=>"Kowalski", "email"=>"kowalski@gmail.com", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "pos_id"=>"123456", "pos_auth_key"=>"DiEKzTD", "session_id"=>"cgiwt4qpqqMtUu5NdYEf", "amount"=>"654", "js"=>"1", "pay_type"=>"t", "ts"=>"1395759050", "sig"=>"16a24d5eaa11b5346522cfeeef97325b", "commit"=>"pay_with_payu"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (1.6ms)
Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:10 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:10 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:10 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:10 +0100
Started GET "/" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.5ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (35.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (79.5ms)
Completed 200 OK in 96ms (Views: 53.3ms | ActiveRecord: 38.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:18 +0100
Started GET "/orders/8" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"8"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gzcjExswjYyv1uoVsvjC' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.5ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "gzcjExswjYyv1uoVsvjC"], ["updated_at", Tue, 25 Mar 2014 14:52:19 UTC +00:00]]
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PNz27qjW3B4Tbqz9m5yg' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "PNz27qjW3B4Tbqz9m5yg"], ["updated_at", Tue, 25 Mar 2014 14:52:19 UTC +00:00]]
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (22.5ms)
Completed 200 OK in 27ms (Views: 20.1ms | ActiveRecord: 6.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:19 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:52:20 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"PNz27qjW3B4Tbqz9m5yg", "amount"=>"654", "x"=>"65", "y"=>"20"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (10.2ms)
Completed 500 Internal Server Error in 13ms
ActionView::Template::Error (undefined method `opay_correct_authorization' for #<#:0x007fc7cdac7550>):
10:
11:
12:
13: <%= link_to 'Poprawna autoryzacja', opay_correct_authorization(session_id: params[:session_id]), class: 'btn btn-success pull-left' %>
14: <%= link_to 'Błędna autoryzacja', opay_wrong_authorization, class: 'btn btn-warning pull-right' %>
/Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb:13:in `___sers_olownia_dev_gems_opay_app_views_opay_paypal_new_html_erb___1144461843780662262_70248063024280'
actionpack (4.0.4) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.4) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.4) lib/action_view/template.rb:141:in `render'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.4) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.4) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1365120086467790265__process_action__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.4) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.4) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.4) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.4) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.4) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3220142865135567206__call__callbacks'
activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.4) lib/rails/engine.rb:511:in `call'
railties (4.0.4) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/olownia/.rvm/gems/ruby-2.0.0-p353@opay/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (10.0ms)
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:52:33 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"PNz27qjW3B4Tbqz9m5yg", "amount"=>"654", "x"=>"65", "y"=>"20"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (1.5ms)
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:33 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:33 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:33 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:33 +0100
Started GET "/opay/correct_authorization?session_id=PNz27qjW3B4Tbqz9m5yg" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Processing by Opay::PayuController#correct_authorization as HTML
Parameters: {"session_id"=>"PNz27qjW3B4Tbqz9m5yg"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PNz27qjW3B4Tbqz9m5yg' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 8]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:38 UTC +00:00]]
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.9ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 8[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:38 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/?success
Completed 302 Found in 26ms (ActiveRecord: 11.8ms)
Started GET "/?success" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil}
[1m[36mOrder Load (0.3ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (11.6ms)
Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 1.2ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:38 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (8.9ms)
Rendered orders/new.html.erb within layouts/application (12.3ms)
Completed 200 OK in 16ms (Views: 15.8ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:41 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:52:46 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"7", "amount"=>"1000"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "1000"], ["created_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00], ["name", "7"], ["updated_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Redirected to http://localhost:3000/orders/9
Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
Started GET "/orders/9" for 127.0.0.1 at 2014-03-25 15:52:46 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"9"}
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "9"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yyjdHrgHMs43qxPJMLDn' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 1000], ["created_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00], ["payable_id", 9], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "yyjdHrgHMs43qxPJMLDn"], ["updated_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DWSejHfzwS4oxRpKKm9E' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 9[0m [["session_id", "DWSejHfzwS4oxRpKKm9E"], ["updated_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (13.0ms)
Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 3.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:46 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:47 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:47 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:47 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:52:47 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"DWSejHfzwS4oxRpKKm9E", "amount"=>"1000", "x"=>"103", "y"=>"16"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (0.9ms)
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:48 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:48 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:48 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:48 +0100
Started GET "/opay/correct_authorization?session_id=DWSejHfzwS4oxRpKKm9E" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Processing by Opay::PayuController#correct_authorization as HTML
Parameters: {"session_id"=>"DWSejHfzwS4oxRpKKm9E"}
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DWSejHfzwS4oxRpKKm9E' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 9]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 9], ["payable_type", "Order"]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 9[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:49 UTC +00:00]]
[1m[35m (2.3ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 9 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:49 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Redirected to http://localhost:3000/?success
Completed 302 Found in 11ms (ActiveRecord: 4.4ms)
Started GET "/?success" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Processing by OrdersController#index as HTML
Parameters: {"success"=>nil}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 9], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (12.6ms)
Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 1.3ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:49 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (2.3ms)
Rendered orders/new.html.erb within layouts/application (3.0ms)
Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:52 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"nowa", "amount"=>"500"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "500"], ["created_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00], ["name", "nowa"], ["updated_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Redirected to http://localhost:3000/orders/10
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
Started GET "/orders/10" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"10"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "10"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rz712kth5Jp49zTsNfUd' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 500], ["created_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00], ["payable_id", 10], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "rz712kth5Jp49zTsNfUd"], ["updated_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00]]
[1m[35m (1.2ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'S8Gk9AAJEZ6BHL1vzfGD' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10[0m [["session_id", "S8Gk9AAJEZ6BHL1vzfGD"], ["updated_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00]]
[1m[35m (1.0ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (12.0ms)
Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 3.8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:52:57 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:53:00 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"S8Gk9AAJEZ6BHL1vzfGD", "amount"=>"500", "x"=>"58", "y"=>"16"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (1.3ms)
Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:00 +0100
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:00 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:00 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:00 +0100
Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-03-25 15:53:01 +0100
Processing by Opay::PayuController#wrong_authorizationt as HTML
Redirected to http://localhost:3000/?error
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
Started GET "/?error" for 127.0.0.1 at 2014-03-25 15:53:01 +0100
Processing by OrdersController#index as HTML
Parameters: {"error"=>nil}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.3ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (12.6ms)
Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 1.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:02 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:02 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:02 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:02 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:02 +0100
Started GET "/orders/10" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"10"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'W4KqT2fSHyB28y9EBX4E' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "W4KqT2fSHyB28y9EBX4E"], ["updated_at", Tue, 25 Mar 2014 14:53:04 UTC +00:00]]
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JvAnNAZib6TTqSq3fF2G' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "JvAnNAZib6TTqSq3fF2G"], ["updated_at", Tue, 25 Mar 2014 14:53:04 UTC +00:00]]
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (11.2ms)
Completed 200 OK in 15ms (Views: 10.0ms | ActiveRecord: 4.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:04 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:53:05 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"JvAnNAZib6TTqSq3fF2G", "amount"=>"500", "x"=>"69", "y"=>"15"}
Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (0.8ms)
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:05 +0100
Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:05 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:05 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:05 +0100
Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Processing by Opay::PayuController#wrong_authorizationt as HTML
Redirected to http://localhost:3000/?error
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
Started GET "/?error" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Processing by OrdersController#index as HTML
Parameters: {"error"=>nil}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 9], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (60.2ms)
Completed 200 OK in 64ms (Views: 62.2ms | ActiveRecord: 1.4ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:06 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/?error" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Processing by OrdersController#index as HTML
Parameters: {"error"=>nil}
[1m[36mOrder Load (1.8ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.4ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (84.8ms)
Completed 200 OK in 116ms (Views: 105.3ms | ActiveRecord: 6.1ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:39 +0100
Started GET "/orders/10" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"10"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'c1FtLcVzH4Uuy1XgZLQz' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (1.4ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "c1FtLcVzH4Uuy1XgZLQz"], ["updated_at", Tue, 25 Mar 2014 14:53:40 UTC +00:00]]
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rjpvJyEe4mKsqwWJ87cF' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "rjpvJyEe4mKsqwWJ87cF"], ["updated_at", Tue, 25 Mar 2014 14:53:40 UTC +00:00]]
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (23.5ms)
Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 6.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:40 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:53:41 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"rjpvJyEe4mKsqwWJ87cF", "amount"=>"500", "x"=>"67", "y"=>"16"}
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rjpvJyEe4mKsqwWJ87cF' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.5ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "EC-2TN47137XR4096818"], ["updated_at", Tue, 25 Mar 2014 14:53:43 UTC +00:00]]
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-2TN47137XR4096818
Completed 302 Found in 1729ms (ActiveRecord: 4.2ms)
Started GET "/?cancel&token=EC-2TN47137XR4096818" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Processing by OrdersController#index as HTML
Parameters: {"cancel"=>nil, "token"=>"EC-2TN47137XR4096818"}
[1m[35mOrder Load (0.2ms)[0m SELECT "orders".* FROM "orders"
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 1], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 3], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 5], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 7], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 9], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (11.4ms)
Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 1.2ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:54 +0100
Started GET "/orders/10" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"10"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "10"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zYVm4pLMFzJ99EqcSWFc' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.6ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10[0m [["session_id", "zYVm4pLMFzJ99EqcSWFc"], ["updated_at", Tue, 25 Mar 2014 14:53:56 UTC +00:00]]
[1m[35m (2.4ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TxrhsEKayKozqy2rvhex' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10[0m [["session_id", "TxrhsEKayKozqy2rvhex"], ["updated_at", Tue, 25 Mar 2014 14:53:56 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (12.6ms)
Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 4.6ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:53:56 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:53:58 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"TxrhsEKayKozqy2rvhex", "amount"=>"500", "x"=>"63", "y"=>"12"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TxrhsEKayKozqy2rvhex' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.3ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10[0m [["session_id", "EC-7C631534PH221140J"], ["updated_at", Tue, 25 Mar 2014 14:53:59 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-7C631534PH221140J
Completed 302 Found in 977ms (ActiveRecord: 1.4ms)
Started GET "/?cancel&token=EC-7C631534PH221140J" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Processing by OrdersController#index as HTML
Parameters: {"cancel"=>nil, "token"=>"EC-7C631534PH221140J"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (10.3ms)
Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 1.0ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:15 +0100
Started GET "/orders/10" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"10"}
[1m[35mOrder Load (0.1ms)[0m SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'f8Qiu17fhbkTDNfqyNq3' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "f8Qiu17fhbkTDNfqyNq3"], ["updated_at", Tue, 25 Mar 2014 14:54:17 UTC +00:00]]
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dDhEEsmR4ASFKAjsLwou' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.3ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "dDhEEsmR4ASFKAjsLwou"], ["updated_at", Tue, 25 Mar 2014 14:54:17 UTC +00:00]]
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
Rendered orders/show.html.erb within layouts/application (11.7ms)
Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 4.2ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:17 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:54:18 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"dDhEEsmR4ASFKAjsLwou", "amount"=>"500", "x"=>"45", "y"=>"17"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dDhEEsmR4ASFKAjsLwou' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.6ms)[0m UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "EC-2W133049CK097363N"], ["updated_at", Tue, 25 Mar 2014 14:54:20 UTC +00:00]]
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-2W133049CK097363N
Completed 302 Found in 1442ms (ActiveRecord: 3.6ms)
Started GET "/opay/paypal/create?token=EC-2W133049CK097363N&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 15:54:39 +0100
Processing by Opay::PaypalController#create as HTML
Parameters: {"token"=>"EC-2W133049CK097363N", "PayerID"=>"7RJPMT48ZEAZ8"}
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-2W133049CK097363N' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mOrder Load (0.1ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", 10]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mSQL (0.4ms)[0m UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:54:41 UTC +00:00]]
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 10[0m [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:54:41 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/
Completed 302 Found in 2477ms (ActiveRecord: 4.9ms)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (14.2ms)
Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 1.6ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (12.3ms)
Rendered orders/new.html.erb within layouts/application (15.5ms)
Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 0.5ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:55:29 +0100
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/olownia/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138)
Started GET "/" for 127.0.0.1 at 2014-03-25 15:59:41 +0100
Processing by OrdersController#index as HTML
[1m[36mOrder Load (1.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (2.5ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.3ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (80.8ms)
Completed 200 OK in 146ms (Views: 135.6ms | ActiveRecord: 5.8ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Processing by OrdersController#new as HTML
Rendered orders/_form.html.erb (12.5ms)
Rendered orders/new.html.erb within layouts/application (16.5ms)
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.0ms)
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:42 +0100
Started POST "/orders" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Processing by OrdersController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"gghhg", "amount"=>"123"}, "commit"=>"Create Order"}
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["amount", "123"], ["created_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00], ["name", "gghhg"], ["updated_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00]]
[1m[35m (0.9ms)[0m commit transaction
Redirected to http://localhost:3000/orders/11
Completed 302 Found in 7ms (ActiveRecord: 2.5ms)
Started GET "/orders/11" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Processing by OrdersController#show as HTML
Parameters: {"id"=>"11"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1[0m [["id", "11"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]]
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mOpay::Payment Load (0.2ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JQG8kDb4qEygtGpHsfBq' ORDER BY "opay_payments"."id" ASC LIMIT 1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["amount", 123], ["created_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00], ["payable_id", 11], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "JQG8kDb4qEygtGpHsfBq"], ["updated_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00]]
[1m[35m (0.7ms)[0m commit transaction
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xMXiNuTE1JRHG15Wwc46' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11[0m [["session_id", "xMXiNuTE1JRHG15Wwc46"], ["updated_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00]]
[1m[35m (0.8ms)[0m commit transaction
Rendered orders/show.html.erb within layouts/application (64.4ms)
Completed 200 OK in 69ms (Views: 64.4ms | ActiveRecord: 3.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:59:47 +0100
Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:59:56 +0100
Processing by Opay::PaypalController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"xMXiNuTE1JRHG15Wwc46", "amount"=>"123", "x"=>"71", "y"=>"13"}
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xMXiNuTE1JRHG15Wwc46' ORDER BY "opay_payments"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSQL (0.4ms)[0m [1mUPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11[0m [["session_id", "EC-2PX17362ME770274S"], ["updated_at", Tue, 25 Mar 2014 14:59:58 UTC +00:00]]
[1m[35m (2.2ms)[0m commit transaction
Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-2PX17362ME770274S
Completed 302 Found in 2135ms (ActiveRecord: 2.8ms)
Started GET "/?cancel&token=EC-2PX17362ME770274S" for 127.0.0.1 at 2014-03-25 16:00:07 +0100
Processing by OrdersController#index as HTML
Parameters: {"cancel"=>nil, "token"=>"EC-2PX17362ME770274S"}
[1m[36mOrder Load (0.2ms)[0m [1mSELECT "orders".* FROM "orders"[0m
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 2], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.2ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 4], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 6], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 8], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]]
[1m[36mOpay::Payment Load (0.1ms)[0m [1mSELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1[0m [["payable_id", 10], ["payable_type", "Order"]]
[1m[35mOpay::Payment Load (0.1ms)[0m SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]]
Rendered orders/index.html.erb within layouts/application (13.0ms)
Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 1.4ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 16:00:07 +0100
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 16:00:07 +0100
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 16:00:07 +0100
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 16:00:07 +0100
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 16:00:07 +0100