spec/dummy/log/development.log in opay-1.2.3 vs spec/dummy/log/development.log in opay-1.2.4

- old
+ new

@@ -1,1198 +1,181 @@ -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 - Order Load (0.4ms) SELECT "orders".* FROM "orders" -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: <th></th> - 11: </tr> - 12: - 13: <% @orders.each do |order| %> - 14: <tr> - 15: <td><%= order.name %></td> - 16: <td><%= order.amount %></td> - 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) -  (1.1ms) CREATE 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)  -  (1.0ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type") -  (0.8ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id") -  (1.1ms) 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) -  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  -  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.2ms) SELECT version FROM "schema_migrations" -  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550') - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -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 - Order Load (1.2ms) SELECT "orders".* FROM "orders" - 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"} -  (0.1ms) begin transaction - SQL (3.9ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.8ms) 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) 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"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sGpiXxyyGCHc37tWV9wC' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) 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 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]] -  (0.9ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sGpiXxyyGCHc37tWV9wC' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]] - Opay::Payment Load (0.1ms) 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"]] -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 10:31:36 UTC +00:00]] -  (2.3ms) commit transaction -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 10:31:36 UTC +00:00]] -  (1.0ms) commit transaction -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} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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"]] - 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"} -  (0.1ms) begin transaction - SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.1ms) 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"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 's8UWikuQKoV4p1EmqzBe' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.3ms) 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 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]] -  (0.8ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.1ms) 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"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'asTtvq85xgZx7TApyttj' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "asTtvq85xgZx7TApyttj"], ["updated_at", Tue, 25 Mar 2014 10:36:23 UTC +00:00]] -  (2.3ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.1ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'KRFvEZ1s1Znxvt9qzh9f' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.8ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "KRFvEZ1s1Znxvt9qzh9f"], ["updated_at", Tue, 25 Mar 2014 10:36:25 UTC +00:00]] -  (3.6ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.2ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ZQrGyaMh1kQDXbM9GYUx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "ZQrGyaMh1kQDXbM9GYUx"], ["updated_at", Tue, 25 Mar 2014 10:42:14 UTC +00:00]] -  (2.3ms) 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 #<#<Class:0x007fd5b5a29990>: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"} - Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (1.9ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4qHpx8xoagtmRYyCKhtg' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "4qHpx8xoagtmRYyCKhtg"], ["updated_at", Tue, 25 Mar 2014 10:42:24 UTC +00:00]] -  (2.6ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'BLBNxzSLs1ybCRJPWzG7' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "BLBNxzSLs1ybCRJPWzG7"], ["updated_at", Tue, 25 Mar 2014 10:42:24 UTC +00:00]] -  (0.9ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.2ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'VFmGohH8tw9DkgxVzqqD' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "VFmGohH8tw9DkgxVzqqD"], ["updated_at", Tue, 25 Mar 2014 10:42:30 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1ZCrRoAEAxqkxa3KYj5G' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "1ZCrRoAEAxqkxa3KYj5G"], ["updated_at", Tue, 25 Mar 2014 10:42:30 UTC +00:00]] -  (0.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.2ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 's9bsjNgFxYHwNgLQEDRh' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "s9bsjNgFxYHwNgLQEDRh"], ["updated_at", Tue, 25 Mar 2014 10:46:08 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MHQv4JsdMqzCBHsqqydd' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "MHQv4JsdMqzCBHsqqydd"], ["updated_at", Tue, 25 Mar 2014 10:46:08 UTC +00:00]] -  (0.8ms) 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 -  (1.6ms) CREATE 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)  -  (1.2ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type") -  (1.4ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id") -  (1.2ms) 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) -  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  -  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.5ms) CREATE 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)  +  (1.1ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type") +  (1.0ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id") +  (1.0ms) 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) +  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations" -  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["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 +Started GET "/" for 127.0.0.1 at 2014-04-24 15:18:45 +0200 Processing by OrdersController#index as HTML - Order Load (0.2ms) 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) + Order Load (3.7ms) SELECT "orders".* FROM "orders" + Rendered orders/index.html.erb within layouts/application (8.9ms) +Completed 200 OK in 281ms (Views: 258.5ms | ActiveRecord: 3.7ms) -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:15:04 +0100 +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-04-24 15:18:47 +0200 -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-04-24 15:18:47 +0200 -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-04-24 15:18:47 +0200 -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-04-24 15:18:47 +0200 -Started GET "/assets/jquery_ujs.js?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-04-24 15:18:47 +0200 -Started GET "/orders/new" for 127.0.0.1 at 2014-03-25 12:15:06 +0100 +Started GET "/orders/new" for 127.0.0.1 at 2014-04-24 15:18:49 +0200 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) + Rendered orders/_form.html.erb (48.7ms) + Rendered orders/new.html.erb within layouts/application (57.0ms) +Completed 200 OK in 73ms (Views: 70.0ms | ActiveRecord: 0.5ms) -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 +Started POST "/orders" for 127.0.0.1 at 2014-04-24 15:18:55 +0200 Processing by OrdersController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"IMbssOn+vpXBGngXSJhscCF9NoSOuiCu5lJH12KA3Pc=", "order"=>{"name"=>"order", "amount"=>"100"}, "commit"=>"Create Order"} -  (0.1ms) begin transaction - SQL (3.9ms) 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]] -  (0.8ms) commit transaction + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "order"=>{"name"=>"name", "amount"=>"10"}, "commit"=>"Create Order"} +  (0.2ms) begin transaction + SQL (13.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "10"], ["created_at", Thu, 24 Apr 2014 13:18:55 UTC +00:00], ["name", "name"], ["updated_at", Thu, 24 Apr 2014 13:18:55 UTC +00:00]] +  (2.4ms) commit transaction Redirected to http://localhost:3000/orders/1 -Completed 302 Found in 10ms (ActiveRecord: 4.8ms) +Completed 302 Found in 26ms (ActiveRecord: 16.2ms) -Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:15:14 +0100 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:18:55 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.3ms) 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"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9DcNk6fv2FAkpKafzFCS' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (1.2ms) 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]] -  (1.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'umSxm2m13JAnFwKWDgNR' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] + Opay::Payment Load (0.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (93.6ms) -Completed 500 Internal Server Error in 97ms + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wfxL2JXCm2LhuZRGkrMr' ORDER BY "opay_payments"."id" ASC LIMIT 1 + SQL (2.9ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 10], ["created_at", Thu, 24 Apr 2014 13:18:56 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "wfxL2JXCm2LhuZRGkrMr"], ["updated_at", Thu, 24 Apr 2014 13:18:56 UTC +00:00]] +  (1.2ms) commit transaction + Rendered orders/show.html.erb within layouts/application (199.7ms) +Completed 500 Internal Server Error in 214ms -ActionView::Template::Error (undefined local variable or method `new_paypal_payment_path' for #<#<Class:0x007fe7669f2270>:0x007fe7668a1470>): +ActionView::Template::Error (Empty payment provider): + 18: + 19: + 20: <%= payu_form_for(@order) do |f| %> + 21: <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment', client_ip: '127.0.0.1' %> 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' + app/views/orders/show.html.erb:21:in `block in _app_views_orders_show_html_erb__1764881669874171495_70128889827280' + app/views/orders/show.html.erb:20:in `_app_views_orders_show_html_erb__1764881669874171495_70128889827280' - 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) + 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/template_error.erb within rescues/layout (28.0ms) -Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:16:48 +0100 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:21:15 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YkduCkVxAk3GpzFqqQcW' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.5ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '7WMVgfTrmX8DeS5wzTGj' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) 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]] -  (0.8ms) commit transaction - 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 #<#<Class:0x007fe7669f2270>: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"} Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.4ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CbMvYbGJPHHBqKCfZoMY' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "CbMvYbGJPHHBqKCfZoMY"], ["updated_at", Tue, 25 Mar 2014 11:19:47 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zRtbP9o3p8e8QgDw7CoM' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "zRtbP9o3p8e8QgDw7CoM"], ["updated_at", Tue, 25 Mar 2014 11:19:47 UTC +00:00]] -  (0.7ms) 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 #<#<Class:0x007fee7e903110>: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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.8ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pLhuy97J8yUr4sWDmiES' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "pLhuy97J8yUr4sWDmiES"], ["updated_at", Tue, 25 Mar 2014 11:20:29 UTC +00:00]] -  (3.4ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CUddvRTdqTqRbxZRwUW9' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "CUddvRTdqTqRbxZRwUW9"], ["updated_at", Tue, 25 Mar 2014 11:20:29 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (3.4ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hzn4apY7RxC7JsXrUYos' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (2.0ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "hzn4apY7RxC7JsXrUYos"], ["updated_at", Tue, 25 Mar 2014 11:25:08 UTC +00:00]] -  (2.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FcbE5SqqoWwuFABxmC8s' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "FcbE5SqqoWwuFABxmC8s"], ["updated_at", Tue, 25 Mar 2014 11:25:08 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kYkcwPjgjaqdDpQ2KgWk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "kYkcwPjgjaqdDpQ2KgWk"], ["updated_at", Tue, 25 Mar 2014 11:25:11 UTC +00:00]] -  (0.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hH8LABZJsBVcTpsw6iA9' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "hH8LABZJsBVcTpsw6iA9"], ["updated_at", Tue, 25 Mar 2014 11:25:11 UTC +00:00]] -  (0.7ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (3.2ms) 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"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'z9puzdzrjTCgU7PRAHn5' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "z9puzdzrjTCgU7PRAHn5"], ["updated_at", Tue, 25 Mar 2014 11:29:02 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yLFZpQ7pMd14ZqRGsQDJ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "yLFZpQ7pMd14ZqRGsQDJ"], ["updated_at", Tue, 25 Mar 2014 11:29:02 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (3.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FMCmv9Pzcfdqz2ojuhsq' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (2.1ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "FMCmv9Pzcfdqz2ojuhsq"], ["updated_at", Tue, 25 Mar 2014 11:42:31 UTC +00:00]] -  (2.1ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'hzG9PSsy6wZ2oCNQeAfB' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "hzG9PSsy6wZ2oCNQeAfB"], ["updated_at", Tue, 25 Mar 2014 11:42:31 UTC +00:00]] -  (1.3ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'QxzW3233fUrzCsi8sgcc' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xsufcfDxp3mbDNz5pdmP' ORDER BY "opay_payments"."id" ASC LIMIT 1  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "QxzW3233fUrzCsi8sgcc"], ["updated_at", Tue, 25 Mar 2014 11:42:52 UTC +00:00]] -  (2.9ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'saX9NWjjFY1CfyudypP6' ORDER BY "opay_payments"."id" ASC LIMIT 1 + SQL (1.2ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "xsufcfDxp3mbDNz5pdmP"], ["updated_at", Thu, 24 Apr 2014 13:21:15 UTC +00:00]] +  (6.1ms) commit transaction + Opay::Payment Load (0.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MZdaqaVdatukLqLKGWmp' ORDER BY "opay_payments"."id" ASC LIMIT 1  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "saX9NWjjFY1CfyudypP6"], ["updated_at", Tue, 25 Mar 2014 11:42:52 UTC +00:00]] + SQL (0.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "MZdaqaVdatukLqLKGWmp"], ["updated_at", Thu, 24 Apr 2014 13:21:15 UTC +00:00]]  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (29.4ms) -Completed 200 OK in 86ms (Views: 26.9ms | ActiveRecord: 7.1ms) + Rendered orders/show.html.erb within layouts/application (37.2ms) +Completed 200 OK in 44ms (Views: 32.2ms | ActiveRecord: 10.2ms) -Started GET "/assets/application.css?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-04-24 15:21:15 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:42:53 +0100 +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:21:15 +0200 -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-04-24 15:21:15 +0200 -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-04-24 15:21:15 +0200 -Started GET "/assets/application.js?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-04-24 15:21:15 +0200 -Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:42:54 +0100 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:21:55 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rps3KWyzFsj7FZZVgUXQ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "rps3KWyzFsj7FZZVgUXQ"], ["updated_at", Tue, 25 Mar 2014 11:42:54 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vo8yijoqnA5SUy4wFCsq' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "vo8yijoqnA5SUy4wFCsq"], ["updated_at", Tue, 25 Mar 2014 11:42:54 UTC +00:00]] -  (0.9ms) 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"} Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1J9gbwYo6pXfxhoy9vxo' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Opay::Payment Load (3.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JpqBqsCgrY6a4MtuP1xQ' ORDER BY "opay_payments"."id" ASC LIMIT 1  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "1J9gbwYo6pXfxhoy9vxo"], ["updated_at", Tue, 25 Mar 2014 11:43:58 UTC +00:00]] -  (2.7ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1ZknCxZjSqdztnKrPMbT' ORDER BY "opay_payments"."id" ASC LIMIT 1 + SQL (2.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JpqBqsCgrY6a4MtuP1xQ"], ["updated_at", Thu, 24 Apr 2014 13:21:56 UTC +00:00]] +  (1.2ms) commit transaction + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jvGJ6FkA72qj2hLgpBCu' ORDER BY "opay_payments"."id" ASC LIMIT 1  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "1ZknCxZjSqdztnKrPMbT"], ["updated_at", Tue, 25 Mar 2014 11:43:58 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (27.9ms) -Completed 200 OK in 45ms (Views: 25.8ms | ActiveRecord: 6.7ms) + SQL (2.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "jvGJ6FkA72qj2hLgpBCu"], ["updated_at", Thu, 24 Apr 2014 13:21:56 UTC +00:00]] +  (3.1ms) commit transaction + Rendered orders/show.html.erb within layouts/application (98.2ms) +Completed 200 OK in 282ms (Views: 246.8ms | ActiveRecord: 16.9ms) -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:43:58 +0100 +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-04-24 15:21:56 +0200 -Started GET "/assets/application.css?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-04-24 15:21:56 +0200 -Started GET "/assets/jquery.js?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-04-24 15:21:56 +0200 -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-04-24 15:21:56 +0200 -Started GET "/assets/jquery_ujs.js?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-04-24 15:21:56 +0200 -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:00 +0100 +Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-04-24 15:21:58 +0200 +Processing by Opay::PayuController#paygw as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "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"=>"JpqBqsCgrY6a4MtuP1xQ", "amount"=>"10", "js"=>"1", "pay_type"=>"t", "ts"=>"1398345716", "sig"=>"fbf5c774953eda0008cd28fef8a513e3", "commit"=>"pay_with_payu"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (10.8ms) +Completed 200 OK in 97ms (Views: 96.8ms | ActiveRecord: 0.0ms) -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' +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:21:58 +0200 - 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 GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:21:58 +0200 -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' +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:21:58 +0200 - 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 GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:21:58 +0200 -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 12:44:37 +0100 +Started GET "/opay/correct_authorization?session_id=JpqBqsCgrY6a4MtuP1xQ" for 127.0.0.1 at 2014-04-24 15:22:00 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"JpqBqsCgrY6a4MtuP1xQ"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JpqBqsCgrY6a4MtuP1xQ' ORDER BY "opay_payments"."id" ASC LIMIT 1 +Completed 404 Not Found in 2ms -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' +ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound): + activerecord (4.0.4) lib/active_record/relation/finder_methods.rb:98:in `first!' + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:4:in `correct_authorization' 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:373:in `_run__2900285106230756710__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' @@ -1218,21 +201,21 @@ 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/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__1350959855575115120__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -1258,938 +241,180 @@ /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) + 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.2ms) + 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.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 (24.9ms) -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 +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:35 +0200 -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' +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:35 +0200 - 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/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-04-24 15:22:37 +0200 +Processing by Opay::PayuController#paygw as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "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"=>"JpqBqsCgrY6a4MtuP1xQ", "amount"=>"10", "js"=>"1", "pay_type"=>"t", "ts"=>"1398345716", "sig"=>"fbf5c774953eda0008cd28fef8a513e3", "commit"=>"pay_with_payu"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (1.4ms) +Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms) -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' +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:37 +0200 - 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 "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:37 +0200 -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"} - Order Load (0.5ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Y2W9o3bM5tivahKGBY54' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Y2W9o3bM5tivahKGBY54"], ["updated_at", Tue, 25 Mar 2014 11:46:01 UTC +00:00]] -  (5.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'nwJzCJsdf7BGsLrSnmTk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "nwJzCJsdf7BGsLrSnmTk"], ["updated_at", Tue, 25 Mar 2014 11:46:01 UTC +00:00]] -  (0.8ms) 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/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:37 +0200 -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:46:02 +0100 +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:37 +0200 -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 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:22:41 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qfCesDzwiepMbRmmbB56' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "qfCesDzwiepMbRmmbB56"], ["updated_at", Tue, 25 Mar 2014 11:47:13 UTC +00:00]] -  (3.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gqs3by94kz7MaEUaRZWm' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "gqs3by94kz7MaEUaRZWm"], ["updated_at", Tue, 25 Mar 2014 11:47:13 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (90.2ms) -Completed 200 OK in 126ms (Views: 102.4ms | ActiveRecord: 11.1ms) + Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] + Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] + Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Ym7rHuuTLVNpyEwvjj37' ORDER BY "opay_payments"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Ym7rHuuTLVNpyEwvjj37"], ["updated_at", Thu, 24 Apr 2014 13:22:41 UTC +00:00]] +  (0.9ms) commit transaction + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LHkeq5ZVQTxeEpffRzp4' ORDER BY "opay_payments"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "LHkeq5ZVQTxeEpffRzp4"], ["updated_at", Thu, 24 Apr 2014 13:22:41 UTC +00:00]] +  (0.9ms) commit transaction + Rendered orders/show.html.erb within layouts/application (14.9ms) +Completed 200 OK in 25ms (Views: 19.5ms | ActiveRecord: 3.8ms) -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:13 +0100 +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:41 +0200 -Started GET "/assets/jquery.js?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-04-24 15:22:41 +0200 -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-04-24 15:22:41 +0200 -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-04-24 15:22:41 +0200 -Started GET "/assets/application.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-04-24 15:22:41 +0200 -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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PEuz3HZ6RpKGSaZ8gw6x' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "PEuz3HZ6RpKGSaZ8gw6x"], ["updated_at", Tue, 25 Mar 2014 11:47:33 UTC +00:00]] -  (2.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LbZi52abVnLgAq8u1tSG' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "LbZi52abVnLgAq8u1tSG"], ["updated_at", Tue, 25 Mar 2014 11:47:33 UTC +00:00]] -  (0.6ms) 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 "/orders/new" for 127.0.0.1 at 2014-04-24 15:22:44 +0200 +Processing by OrdersController#new as HTML + Rendered orders/_form.html.erb (88.8ms) + Rendered orders/new.html.erb within layouts/application (96.7ms) +Completed 200 OK in 103ms (Views: 102.0ms | ActiveRecord: 0.0ms) -Started GET "/assets/scaffold.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-04-24 15:22:44 +0200 -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:47:34 +0100 +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:44 +0200 -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-04-24 15:22:44 +0200 -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-04-24 15:22:44 +0200 -Started GET "/assets/application.js?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-04-24 15:22:44 +0200 -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'bBrqnq9X7JxvWfRYy91k' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "bBrqnq9X7JxvWfRYy91k"], ["updated_at", Tue, 25 Mar 2014 11:47:35 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FxTg5MmVCqZsyz3TFCmH' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "FxTg5MmVCqZsyz3TFCmH"], ["updated_at", Tue, 25 Mar 2014 11:47:35 UTC +00:00]] -  (0.8ms) 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 "/orders" for 127.0.0.1 at 2014-04-24 15:22:48 +0200 +Processing by OrdersController#index as HTML + Order Load (0.4ms) SELECT "orders".* FROM "orders" + Opay::Payment Load (0.2ms) 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 (6.0ms) +Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.6ms) -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-04-24 15:22:48 +0200 -Started GET "/assets/scaffold.css?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-04-24 15:22:48 +0200 -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_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:48 +0200 -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-04-24 15:22:48 +0200 -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:47:35 +0100 +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:48 +0200 -Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 12:47:40 +0100 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:22:50 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'HfhYXZsxT4NeRDqEdWPe' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "HfhYXZsxT4NeRDqEdWPe"], ["updated_at", Tue, 25 Mar 2014 11:47:40 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qYWszdpKcSFyYTjsgi96' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "qYWszdpKcSFyYTjsgi96"], ["updated_at", Tue, 25 Mar 2014 11:47:40 UTC +00:00]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (13.9ms) -Completed 200 OK in 19ms (Views: 13.1ms | ActiveRecord: 4.5ms) + Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] + Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] + Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oysoR4uzDi3JsLW7CTcA' ORDER BY "opay_payments"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "oysoR4uzDi3JsLW7CTcA"], ["updated_at", Thu, 24 Apr 2014 13:22:50 UTC +00:00]] +  (0.9ms) commit transaction + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ecRSsMZT7bz3KBnsZCPR' ORDER BY "opay_payments"."id" ASC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "ecRSsMZT7bz3KBnsZCPR"], ["updated_at", Thu, 24 Apr 2014 13:22:50 UTC +00:00]] +  (1.0ms) commit transaction + Rendered orders/show.html.erb within layouts/application (15.1ms) +Completed 200 OK in 24ms (Views: 18.9ms | ActiveRecord: 4.0ms) -Started GET "/assets/application.css?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-04-24 15:22:50 +0200 -Started GET "/assets/jquery.js?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-04-24 15:22:50 +0200 -Started GET "/assets/scaffold.css?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-04-24 15:22:50 +0200 -Started GET "/assets/application.js?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-04-24 15:22:50 +0200 -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 "/assets/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:50 +0200 -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kjNyXxBmgKwgTf4o9kH6' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (2.1ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "kjNyXxBmgKwgTf4o9kH6"], ["updated_at", Tue, 25 Mar 2014 11:48:08 UTC +00:00]] -  (3.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Sb9Syw9huAXFhWJvDP1W' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Sb9Syw9huAXFhWJvDP1W"], ["updated_at", Tue, 25 Mar 2014 11:48:08 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (93.0ms) -Completed 200 OK in 134ms (Views: 109.3ms | ActiveRecord: 11.5ms) +Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-04-24 15:22:52 +0200 +Processing by Opay::PayuController#paygw as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "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"=>"oysoR4uzDi3JsLW7CTcA", "amount"=>"10", "js"=>"1", "pay_type"=>"t", "ts"=>"1398345770", "sig"=>"8d2eb14c0508b97fae2366ed76e24035", "commit"=>"pay_with_payu"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (1.3ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) -Started GET "/assets/application.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-04-24 15:22:52 +0200 -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100 +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:52 +0200 -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-04-24 15:22:52 +0200 -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100 +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:52 +0200 -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-25 12:48:08 +0100 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:22:53 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 3ms - -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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'voHDJEyuzJjutvFmEBqh' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "voHDJEyuzJjutvFmEBqh"], ["updated_at", Tue, 25 Mar 2014 11:48:53 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rg38rpdX5dvg6JGUBirY' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "rg38rpdX5dvg6JGUBirY"], ["updated_at", Tue, 25 Mar 2014 11:48:53 UTC +00:00]] -  (0.9ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'W8cdxd7WshpM9z4uKYFF' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "W8cdxd7WshpM9z4uKYFF"], ["updated_at", Tue, 25 Mar 2014 11:49:00 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jpZBPw3YwpkLetRWcCwx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "jpZBPw3YwpkLetRWcCwx"], ["updated_at", Tue, 25 Mar 2014 11:49:00 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (1.9ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'F2gYeeXcfrw4oMnRZ4Z7' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "F2gYeeXcfrw4oMnRZ4Z7"], ["updated_at", Tue, 25 Mar 2014 11:50:58 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zAXuCPCyEiVSykayLL8U' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "zAXuCPCyEiVSykayLL8U"], ["updated_at", Tue, 25 Mar 2014 11:50:58 UTC +00:00]] -  (0.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '61wMRCyQhUkizko1xJQZ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "61wMRCyQhUkizko1xJQZ"], ["updated_at", Tue, 25 Mar 2014 11:51:06 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'HEUawSHYZ9rCx1Emj1fh' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "HEUawSHYZ9rCx1Emj1fh"], ["updated_at", Tue, 25 Mar 2014 11:51:06 UTC +00:00]] -  (0.8ms) 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 '<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xmlns:n1="urn:ebay:apis:eBLBaseComponents" env:mustUnderstand="0"><n1:Credentials><n1:Username>dummy-facilitator_api1.gmail.com</n1:Username><n1:Password/><n1:Subject/><n1:Signature>AGUkzh-MeQY9FWOCQ5.UwnNAI5EgABkxUU7ynmHt9IbLYXd5FwKiwy6K</n1:Signature></n1:Credentials></RequesterCredentials></env:Header><env:Body><SetExpressCheckoutReq xmlns="urn:ebay:api:PayPalAPI"> - <SetExpressCheckoutRequest xmlns:n2="urn:ebay:apis:eBLBaseComponents"> - <n2:Version>72</n2:Version> - <n2:SetExpressCheckoutRequestDetails> - <n2:ReturnURL>?success</n2:ReturnURL> - <n2:CancelURL>?cancel</n2:CancelURL> - <n2:NoShipping>0</n2:NoShipping> - <n2:AddressOverride>0</n2:AddressOverride> - <n2:SolutionType>Sole</n2:SolutionType> - <n2:LandingPage>Billing</n2:LandingPage> - <n2:PaymentDetails> - <n2:OrderTotal currencyID="USD">10.00</n2:OrderTotal> - <n2:ButtonSource>ActiveMerchant</n2:ButtonSource> - <n2:PaymentDetailsItem> - <n2:Name>Order</n2:Name> - <n2:Number/> - <n2:Quantity>1</n2:Quantity> - <n2:Amount currencyID="USD">10.00</n2:Amount> - <n2:Description>Order description</n2:Description> - <n2:ItemURL/> - </n2:PaymentDetailsItem> - <n2:PaymentAction>Sale</n2:PaymentAction> - </n2:PaymentDetails> - </n2:SetExpressCheckoutRequestDetails> - </SetExpressCheckoutRequest> -</SetExpressCheckoutReq> -</env:Body></env:Envelope>' 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 => {"<?xml version"=>"\"1.0\" encoding=\"UTF-8\"?><env:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><env:Header><RequesterCredentials xmlns=\"urn:ebay:api:PayPalAPI\" xmlns:n1=\"urn:ebay:apis:eBLBaseComponents\" env:mustUnderstand=\"0\"><n1:Credentials><n1:Username>dummy-facilitator_api1.gmail.com</n1:Username><n1:Password/><n1:Subject/><n1:Signature>AGUkzh-MeQY9FWOCQ5.UwnNAI5EgABkxUU7ynmHt9IbLYXd5FwKiwy6K</n1:Signature></n1:Credentials></RequesterCredentials></env:Header><env:Body><SetExpressCheckoutReq xmlns=\"urn:ebay:api:PayPalAPI\">\n <SetExpressCheckoutRequest xmlns:n2=\"urn:ebay:apis:eBLBaseComponents\">\n <n2:Version>72</n2:Version>\n <n2:SetExpressCheckoutRequestDetails>\n <n2:ReturnURL>?success</n2:ReturnURL>\n <n2:CancelURL>?cancel</n2:CancelURL>\n <n2:NoShipping>0</n2:NoShipping>\n <n2:AddressOverride>0</n2:AddressOverride>\n <n2:SolutionType>Sole</n2:SolutionType>\n <n2:LandingPage>Billing</n2:LandingPage>\n <n2:PaymentDetails>\n <n2:OrderTotal currencyID=\"USD\">10.00</n2:OrderTotal>\n <n2:ButtonSource>ActiveMerchant</n2:ButtonSource>\n <n2:PaymentDetailsItem>\n <n2:Name>Order</n2:Name>\n <n2:Number/>\n <n2:Quantity>1</n2:Quantity>\n <n2:Amount currencyID=\"USD\">10.00</n2:Amount>\n <n2:Description>Order description</n2:Description>\n <n2:ItemURL/>\n </n2:PaymentDetailsItem>\n <n2:PaymentAction>Sale</n2:PaymentAction>\n </n2:PaymentDetails>\n </n2:SetExpressCheckoutRequestDetails>\n </SetExpressCheckoutRequest>\n</SetExpressCheckoutReq>\n</env:Body></env:Envelope>"}, - :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' +NoMethodError (undefined method `cancel_payment_path' for #<Opay::PayuController:0x007f939d883140>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' 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:373:in `_run__2900285106230756710__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' @@ -2215,21 +440,21 @@ 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/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__3987177520851748700__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -2255,77 +480,42 @@ /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) + 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 (2.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.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 (22.1ms) -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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'axxaXiuYxur56trXFUjw' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "axxaXiuYxur56trXFUjw"], ["updated_at", Tue, 25 Mar 2014 11:55:40 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rQLyDFxeW5aKkSWHZDYs' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "rQLyDFxeW5aKkSWHZDYs"], ["updated_at", Tue, 25 Mar 2014 11:55:40 UTC +00:00]] -  (0.8ms) 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/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:22:58 +0200 -Started GET "/assets/scaffold.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-04-24 15:22:58 +0200 -Started GET "/assets/application.css?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-04-24 15:22:58 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100 +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:22:58 +0200 -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:55:40 +0100 +Started GET "/opay/correct_authorization?session_id=oysoR4uzDi3JsLW7CTcA" for 127.0.0.1 at 2014-04-24 15:23:00 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"oysoR4uzDi3JsLW7CTcA"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oysoR4uzDi3JsLW7CTcA' ORDER BY "opay_payments"."id" ASC LIMIT 1 +Completed 404 Not Found in 2ms - -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 #<Net::HTTP api-3t.sandbox.paypal.com:443 open=false>): - 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' +ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound): + activerecord (4.0.4) lib/active_record/relation/finder_methods.rb:98:in `first!' + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:4:in `correct_authorization' 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:373:in `_run__2900285106230756710__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' @@ -2351,21 +541,21 @@ 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/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__2866267208687037268__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -2391,504 +581,61 @@ /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) + 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.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.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.9ms) -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (4.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'WMzyzbcVJSD3rds1pxQ4' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "WMzyzbcVJSD3rds1pxQ4"], ["updated_at", Tue, 25 Mar 2014 11:57:16 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xTK3xZTp2sD3JojBR8Ar' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "xTK3xZTp2sD3JojBR8Ar"], ["updated_at", Tue, 25 Mar 2014 11:57:16 UTC +00:00]] -  (1.0ms) 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/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:23:24 +0200 -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-04-24 15:23:24 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100 +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:24 +0200 -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-04-24 15:23:24 +0200 -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:16 +0100 +Started PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-04-24 15:23:26 +0200 +Processing by Opay::PayuController#paygw as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "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"=>"oysoR4uzDi3JsLW7CTcA", "amount"=>"10", "js"=>"1", "pay_type"=>"t", "ts"=>"1398345770", "sig"=>"8d2eb14c0508b97fae2366ed76e24035", "commit"=>"pay_with_payu"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (1.4ms) +Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms) -Started GET "/assets/application.js?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-04-24 15:23:26 +0200 -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 "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:26 +0200 -Started GET "/" for 127.0.0.1 at 2014-03-25 12:57:57 +0100 -Processing by OrdersController#index as HTML - Order Load (0.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) 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/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:26 +0200 -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100 +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:23:26 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 12:57:57 +0100 +Started GET "/opay/correct_authorization?session_id=oysoR4uzDi3JsLW7CTcA" for 127.0.0.1 at 2014-04-24 15:23:28 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"oysoR4uzDi3JsLW7CTcA"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oysoR4uzDi3JsLW7CTcA' ORDER BY "opay_payments"."id" ASC LIMIT 1 +Completed 404 Not Found in 2ms - -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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CkyE4fzr1zF1Tq9Rp291' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "CkyE4fzr1zF1Tq9Rp291"], ["updated_at", Tue, 25 Mar 2014 11:58:01 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'cxq6esMqhJYyScU4tqdu' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "cxq6esMqhJYyScU4tqdu"], ["updated_at", Tue, 25 Mar 2014 11:58:01 UTC +00:00]] -  (0.7ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JAnzQCT3U8xpG3gwmzXF' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JAnzQCT3U8xpG3gwmzXF"], ["updated_at", Tue, 25 Mar 2014 11:58:12 UTC +00:00]] -  (2.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'L1Z2vafsVJfHQpLKHbVS' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "L1Z2vafsVJfHQpLKHbVS"], ["updated_at", Tue, 25 Mar 2014 11:58:12 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'f4uBVKkMpcHDDvvUJXhm' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "f4uBVKkMpcHDDvvUJXhm"], ["updated_at", Tue, 25 Mar 2014 11:58:22 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vuUaPg3HtqGy7NPreAyx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "vuUaPg3HtqGy7NPreAyx"], ["updated_at", Tue, 25 Mar 2014 11:58:22 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.4ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.0ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wiTaSzBxyd1vESqQQy3N' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.8ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "wiTaSzBxyd1vESqQQy3N"], ["updated_at", Tue, 25 Mar 2014 12:03:53 UTC +00:00]] -  (3.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Rww76R5JaPMqygPayMAp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Rww76R5JaPMqygPayMAp"], ["updated_at", Tue, 25 Mar 2014 12:03:53 UTC +00:00]] -  (0.6ms) 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 - Order Load (1.4ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.5ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ScbtKJXoz6eRtoNDiNqG' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "ScbtKJXoz6eRtoNDiNqG"], ["updated_at", Tue, 25 Mar 2014 12:07:17 UTC +00:00]] -  (3.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Pe3sULXFSDDzfpBmWCzM' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Pe3sULXFSDDzfpBmWCzM"], ["updated_at", Tue, 25 Mar 2014 12:07:17 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.3ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wqrCHHWkBMzQQPYyzHm5' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "wqrCHHWkBMzQQPYyzHm5"], ["updated_at", Tue, 25 Mar 2014 12:11:42 UTC +00:00]] -  (2.6ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sks3nJEhn5pAcBz6xNwZ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "sks3nJEhn5pAcBz6xNwZ"], ["updated_at", Tue, 25 Mar 2014 12:11:42 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.3ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kuVsx3dGqzoms9bh4Dky' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "kuVsx3dGqzoms9bh4Dky"], ["updated_at", Tue, 25 Mar 2014 12:12:56 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'fNkswzocycsDFfzTjrQE' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "fNkswzocycsDFfzTjrQE"], ["updated_at", Tue, 25 Mar 2014 12:12:56 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.7ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.3ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C1RSZFbzoVeFhPnqs5Ge' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "C1RSZFbzoVeFhPnqs5Ge"], ["updated_at", Tue, 25 Mar 2014 12:14:06 UTC +00:00]] -  (2.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Vtczfpv39qVB58jnqFqL' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Vtczfpv39qVB58jnqFqL"], ["updated_at", Tue, 25 Mar 2014 12:14:06 UTC +00:00]] -  (1.2ms) 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' +ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound): + activerecord (4.0.4) lib/active_record/relation/finder_methods.rb:98:in `first!' + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:4:in `correct_authorization' 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:373:in `_run__2900285106230756710__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' @@ -2914,21 +661,21 @@ 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/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__2110799044370535171__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -2954,718 +701,39 @@ /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) + 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.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.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 (18.6ms) -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"} -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007fa6774cfea8> -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 "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:23:33 +0200 -Started GET "/" for 127.0.0.1 at 2014-03-25 13:15:49 +0100 -Processing by OrdersController#index as HTML - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.6ms) 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/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:33 +0200 -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100 +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:33 +0200 -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-04-24 15:23:33 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 13:15:50 +0100 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:23:35 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 2ms - -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'y2sRDp5yEqVUiNRzzRiz' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "y2sRDp5yEqVUiNRzzRiz"], ["updated_at", Tue, 25 Mar 2014 12:15:51 UTC +00:00]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PAsoqSujxCyxBVrws5nE' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "PAsoqSujxCyxBVrws5nE"], ["updated_at", Tue, 25 Mar 2014 12:15:51 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.4ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qbgongQDBPWAM4spUpS4' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.8ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "qbgongQDBPWAM4spUpS4"], ["updated_at", Tue, 25 Mar 2014 12:16:13 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'p6exyq8EFyogjX1QEitD' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "p6exyq8EFyogjX1QEitD"], ["updated_at", Tue, 25 Mar 2014 12:16:13 UTC +00:00]] -  (0.9ms) 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"} -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f843d002328 @params={"timestamp"=>"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 - Order Load (1.5ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.2ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JQMxoKkni3yjKgq3KVhB' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JQMxoKkni3yjKgq3KVhB"], ["updated_at", Tue, 25 Mar 2014 12:22:43 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'mYy5J1Qzyzystw3DSaMn' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "mYy5J1Qzyzystw3DSaMn"], ["updated_at", Tue, 25 Mar 2014 12:22:43 UTC +00:00]] -  (0.8ms) 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"} -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007fadbca82638 @params={"timestamp"=>"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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yYi2nycP9JqNczwzWVvp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "yYi2nycP9JqNczwzWVvp"], ["updated_at", Tue, 25 Mar 2014 12:28:13 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qNFzWQvziqPPEFimuE3N' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "qNFzWQvziqPPEFimuE3N"], ["updated_at", Tue, 25 Mar 2014 12:28:13 UTC +00:00]] -  (0.7ms) 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"} -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f9c55668ca0 @params={"timestamp"=>"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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.5ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NnYwWDiq2s2En44Zey7i' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "NnYwWDiq2s2En44Zey7i"], ["updated_at", Tue, 25 Mar 2014 12:30:57 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MmCdS2Dx8FQStieAwwUk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "MmCdS2Dx8FQStieAwwUk"], ["updated_at", Tue, 25 Mar 2014 12:30:57 UTC +00:00]] -  (1.0ms) 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"} -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f7ffd74e238 @params={"timestamp"=>"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 - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.0ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'VsbkTL8SYJpoTwi6b2gz' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "VsbkTL8SYJpoTwi6b2gz"], ["updated_at", Tue, 25 Mar 2014 12:32:24 UTC +00:00]] -  (2.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1piDrxLjxrBHFq6ezFwy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "1piDrxLjxrBHFq6ezFwy"], ["updated_at", Tue, 25 Mar 2014 12:32:24 UTC +00:00]] -  (0.8ms) 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 -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007fe155acaf60 @params={"timestamp"=>"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 - Order Load (2.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.6ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vrWp6WqYfbyS6jBfzMcx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "vrWp6WqYfbyS6jBfzMcx"], ["updated_at", Tue, 25 Mar 2014 12:33:11 UTC +00:00]] -  (0.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C4D8tbSjpfEq3GTzmfPC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "C4D8tbSjpfEq3GTzmfPC"], ["updated_at", Tue, 25 Mar 2014 12:33:11 UTC +00:00]] -  (0.7ms) 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 - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.5ms) 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 - Order Load (2.4ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.5ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'C3eUSUrmR6pvHCNsvDyQ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (2.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "C3eUSUrmR6pvHCNsvDyQ"], ["updated_at", Tue, 25 Mar 2014 13:15:13 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '64sHYeQx76eSBED5vztW' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "64sHYeQx76eSBED5vztW"], ["updated_at", Tue, 25 Mar 2014 13:15:13 UTC +00:00]] -  (0.7ms) 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 #<Opay::FormBuilder:0x007fc77ce536e8>): - 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JyTbxiBzjHFpeSqBFQmj' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JyTbxiBzjHFpeSqBFQmj"], ["updated_at", Tue, 25 Mar 2014 13:15:39 UTC +00:00]] -  (2.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'y6Fzga1is3bTbzHgvvxA' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "y6Fzga1is3bTbzHgvvxA"], ["updated_at", Tue, 25 Mar 2014 13:15:39 UTC +00:00]] -  (0.8ms) 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 #<Opay::FormBuilder:0x007fc77cd80cc0>): - 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (2.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aLdWEcbDrYzv9o5DRntC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "aLdWEcbDrYzv9o5DRntC"], ["updated_at", Tue, 25 Mar 2014 13:15:47 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'V6TgfiswBjGdTvctyyKk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "V6TgfiswBjGdTvctyyKk"], ["updated_at", Tue, 25 Mar 2014 13:15:47 UTC +00:00]] -  (0.8ms) 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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.0ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JcaFDxwguv5UfL59pt3T' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JcaFDxwguv5UfL59pt3T"], ["updated_at", Tue, 25 Mar 2014 13:18:43 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'RztNb4Bp61cFXzv12Rtg' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "RztNb4Bp61cFXzv12Rtg"], ["updated_at", Tue, 25 Mar 2014 13:18:43 UTC +00:00]] -  (1.0ms) 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' +NoMethodError (undefined method `cancel_payment_path' for #<Opay::PayuController:0x007f939aed0460>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' 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:373:in `_run__2900285106230756710__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' @@ -3691,21 +759,21 @@ 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/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__1479451913471385490__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -3731,50 +799,27 @@ /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) + 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.7ms) + 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 (20.5ms) -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 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:23:55 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 3ms -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' +NoMethodError (undefined method `cancel_payment_path' for #<Opay::PayuController:0x007f939d853620>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' 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:373:in `_run__2900285106230756710__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' @@ -3800,21 +845,21 @@ 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/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__1479451913471385490__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3670105951747852129__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' @@ -3841,119 +886,41 @@ /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) + 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.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 (20.2ms) -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 "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:23:57 +0200 -Started GET "/" for 127.0.0.1 at 2014-03-25 14:23:00 +0100 -Processing by OrdersController#index as HTML - Order Load (1.4ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.4ms) 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/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:57 +0200 -Started GET "/assets/application.css?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-04-24 15:23:57 +0200 -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100 +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:23:57 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 14:23:01 +0100 +Started GET "/opay/correct_authorization?session_id=oysoR4uzDi3JsLW7CTcA" for 127.0.0.1 at 2014-04-24 15:24:10 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"oysoR4uzDi3JsLW7CTcA"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oysoR4uzDi3JsLW7CTcA' ORDER BY "opay_payments"."id" ASC LIMIT 1 +Completed 404 Not Found in 15ms - -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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'UWTY5PBVndg7nymTzqyx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "UWTY5PBVndg7nymTzqyx"], ["updated_at", Tue, 25 Mar 2014 13:23:03 UTC +00:00]] -  (0.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yAS8bhFuvEwJcmAZqjrw' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "yAS8bhFuvEwJcmAZqjrw"], ["updated_at", Tue, 25 Mar 2014 13:23:03 UTC +00:00]] -  (0.8ms) 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' +ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound): + activerecord (4.0.4) lib/active_record/relation/finder_methods.rb:98:in `first!' + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:4:in `correct_authorization' 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:373:in `_run__1500625184490485662__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' @@ -3979,21 +946,21 @@ 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/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__3222652849150309468__call__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__4332336798211170224__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' @@ -4019,966 +986,58 @@ /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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (1.9ms) 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '65CTj7dWsVxECwCWZMQy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "65CTj7dWsVxECwCWZMQy"], ["updated_at", Tue, 25 Mar 2014 13:23:47 UTC +00:00]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '8q3GQx9UYGcz249pQAcp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "8q3GQx9UYGcz249pQAcp"], ["updated_at", Tue, 25 Mar 2014 13:23:47 UTC +00:00]] -  (0.7ms) 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 - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JU19uidMMdpfnMQi34ry' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "JU19uidMMdpfnMQi34ry"], ["updated_at", Tue, 25 Mar 2014 13:27:35 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Gpqq2FxHQbsW3dmuhzBy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Gpqq2FxHQbsW3dmuhzBy"], ["updated_at", Tue, 25 Mar 2014 13:27:35 UTC +00:00]] -  (0.8ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Gpqq2FxHQbsW3dmuhzBy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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.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"} - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.2ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'z5sgSsbJyxiniJSGqX6p' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "z5sgSsbJyxiniJSGqX6p"], ["updated_at", Tue, 25 Mar 2014 13:31:12 UTC +00:00]] -  (3.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jv5LxTsBv9nyiyq6CuBk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "jv5LxTsBv9nyiyq6CuBk"], ["updated_at", Tue, 25 Mar 2014 13:31:12 UTC +00:00]] -  (0.6ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jv5LxTsBv9nyiyq6CuBk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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 - Order Load (1.6ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xqzx3yhW4LAv4UHUgv7M' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "xqzx3yhW4LAv4UHUgv7M"], ["updated_at", Tue, 25 Mar 2014 13:31:46 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'keyrKUCcybpMYKdwtVFh' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "keyrKUCcybpMYKdwtVFh"], ["updated_at", Tue, 25 Mar 2014 13:31:46 UTC +00:00]] -  (0.7ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'keyrKUCcybpMYKdwtVFh' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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.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"} - Order Load (1.5ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.0ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '185zWpmtEWfnYcUR1inC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "185zWpmtEWfnYcUR1inC"], ["updated_at", Tue, 25 Mar 2014 13:36:25 UTC +00:00]] -  (2.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9XpHBskyQ3qz2pVcdMkg' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "9XpHBskyQ3qz2pVcdMkg"], ["updated_at", Tue, 25 Mar 2014 13:36:25 UTC +00:00]] -  (0.8ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '9XpHBskyQ3qz2pVcdMkg' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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/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"} - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.3ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ihzdPSxUrdU8pBvzzcpu' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "ihzdPSxUrdU8pBvzzcpu"], ["updated_at", Tue, 25 Mar 2014 13:45:13 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vkxNEpbkYTVtp27ZNuos' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "vkxNEpbkYTVtp27ZNuos"], ["updated_at", Tue, 25 Mar 2014 13:45:13 UTC +00:00]] -  (0.7ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vkxNEpbkYTVtp27ZNuos' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "EC-5MA88159E82167443"], ["updated_at", Tue, 25 Mar 2014 13:45:17 UTC +00:00]] -  (3.2ms) 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/_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.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) + 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 (17.2ms) + 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 (40.8ms) -Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:45:53 +0100 +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:14 +0200 -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' +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:24:14 +0200 - 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 "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:14 +0200 -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' +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:14 +0200 - 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 PATCH "/opay/payu/paygw/UTF/NewPayment" for 127.0.0.1 at 2014-04-24 15:24:16 +0200 +Processing by Opay::PayuController#paygw as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "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"=>"oysoR4uzDi3JsLW7CTcA", "amount"=>"10", "js"=>"1", "pay_type"=>"t", "ts"=>"1398345770", "sig"=>"8d2eb14c0508b97fae2366ed76e24035", "commit"=>"pay_with_payu"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/payu/paygw.html.erb within layouts/opay/application (8.8ms) +Completed 200 OK in 102ms (Views: 101.6ms | ActiveRecord: 0.0ms) -Started GET "/paypal/create?token=EC-5MA88159E82167443&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-25 14:46:22 +0100 +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:16 +0200 -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' +Started GET "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:16 +0200 - 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 "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:24:16 +0200 -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' +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:24:16 +0200 - 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 "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:24:17 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 4ms - -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 - Order Load (1.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.2ms) 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zpsU1qUB5T1racz11Qwz' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "zpsU1qUB5T1racz11Qwz"], ["updated_at", Tue, 25 Mar 2014 13:48:01 UTC +00:00]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Jx16GfLxmcxYr1phonuV' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Jx16GfLxmcxYr1phonuV"], ["updated_at", Tue, 25 Mar 2014 13:48:01 UTC +00:00]] -  (0.8ms) 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"} - Opay::Payment Load (0.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Jx16GfLxmcxYr1phonuV' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "EC-66J00748NF570871Y"], ["updated_at", Tue, 25 Mar 2014 13:48:04 UTC +00:00]] -  (1.8ms) 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 - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.1ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wJZByYee9s14CwmVq65N' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "wJZByYee9s14CwmVq65N"], ["updated_at", Tue, 25 Mar 2014 13:49:37 UTC +00:00]] -  (2.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'k8ujGGCQmYt2rtikEwQy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "k8ujGGCQmYt2rtikEwQy"], ["updated_at", Tue, 25 Mar 2014 13:49:37 UTC +00:00]] -  (0.8ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'k8ujGGCQmYt2rtikEwQy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "EC-6WL71874RC882310Y"], ["updated_at", Tue, 25 Mar 2014 13:49:45 UTC +00:00]] -  (2.9ms) 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"} - Opay::Payment Load (0.2ms) 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 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' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007fce46993e48>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' 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:373:in `_run__1500625184490485662__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' @@ -5014,11 +1073,11 @@ 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:373:in `_run__4332336798211170224__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' @@ -5044,30 +1103,27 @@ /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) + 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.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.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 (22.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"} - Opay::Payment Load (0.2ms) 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 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:25:04 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 4ms -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' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007fce46c01748>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' 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:373:in `_run__1500625184490485662__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' @@ -5103,11 +1159,11 @@ 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:373:in `_run__4332336798211170224__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' @@ -5133,56 +1189,27 @@ /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) + 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.2ms) + 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.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 (24.8ms) -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1 -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f9d675f3758 @params={"timestamp"=>"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 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:25:38 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Completed 500 Internal Server Error in 3ms -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' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007fce46d702c8>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:10:in `wrong_authorizationt' + 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__668143469469360037__process_action__callbacks' + activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__1500625184490485662__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' @@ -5218,11 +1245,11 @@ 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:373:in `_run__4332336798211170224__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' @@ -5248,877 +1275,117 @@ /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) + 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.7ms) + 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 (21.1ms) -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1 -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f9d678e24c8 @params={"timestamp"=>"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 +Started GET "/opay/wrong_authorizationt" for 127.0.0.1 at 2014-04-24 15:25:51 +0200 +Processing by Opay::PayuController#wrong_authorizationt as HTML +Redirected to http://localhost:3000/ +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) -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"} - Opay::Payment Load (0.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1 -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f9d67b4aee0 @params={"timestamp"=>"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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-6WL71874RC882310Y' ORDER BY "opay_payments"."id" ASC LIMIT 1 -#<ActiveMerchant::Billing::PaypalExpressResponse:0x007f9d673f2148 @params={"timestamp"=>"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 +Started GET "/" for 127.0.0.1 at 2014-04-24 15:25:51 +0200 Processing by OrdersController#index as HTML - Order Load (2.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.7ms) 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) + Order Load (4.2ms) SELECT "orders".* FROM "orders" + Opay::Payment Load (4.2ms) 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 (64.4ms) +Completed 200 OK in 195ms (Views: 176.1ms | ActiveRecord: 9.3ms) -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-04-24 15:25:52 +0200 -Started GET "/assets/scaffold.css?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-04-24 15:25:52 +0200 -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-04-24 15:25:52 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:33 +0100 +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:25:52 +0200 -Started GET "/assets/application.js?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-04-24 15:25:52 +0200 -Started GET "/orders/1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100 +Started GET "/orders/1" for 127.0.0.1 at 2014-04-24 15:25:55 +0200 Processing by OrdersController#show as HTML Parameters: {"id"=>"1"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] + Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]] Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'XpVNzgyDz3JQsCsVphrK' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YMruHWLUVDTFwjhzBJk3' ORDER BY "opay_payments"."id" ASC LIMIT 1 +  (0.2ms) begin transaction + SQL (3.1ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "YMruHWLUVDTFwjhzBJk3"], ["updated_at", Thu, 24 Apr 2014 13:25:55 UTC +00:00]] +  (1.3ms) commit transaction + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Lp3pWAAg7Poxhzva7x2B' ORDER BY "opay_payments"."id" ASC LIMIT 1  (0.1ms) begin transaction - SQL (2.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "XpVNzgyDz3JQsCsVphrK"], ["updated_at", Tue, 25 Mar 2014 14:06:36 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Tz1WfpTM5qwsepg14Nq3' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Tz1WfpTM5qwsepg14Nq3"], ["updated_at", Tue, 25 Mar 2014 14:06:36 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (25.9ms) -Completed 200 OK in 31ms (Views: 24.3ms | ActiveRecord: 5.8ms) + SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Lp3pWAAg7Poxhzva7x2B"], ["updated_at", Thu, 24 Apr 2014 13:25:55 UTC +00:00]] +  (0.9ms) commit transaction + Rendered orders/show.html.erb within layouts/application (35.5ms) +Completed 200 OK in 45ms (Views: 36.4ms | ActiveRecord: 7.2ms) -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-04-24 15:25:56 +0200 -Started GET "/assets/jquery_ujs.js?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-04-24 15:25:56 +0200 -Started GET "/assets/application.css?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-04-24 15:25:56 +0200 -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:06:36 +0100 +Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-04-24 15:25:56 +0200 -Started GET "/assets/application.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-04-24 15:25:56 +0200 -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-25 15:06:37 +0100 +Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-04-24 15:25:57 +0200 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Tz1WfpTM5qwsepg14Nq3' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "EC-1NE27249UB336292B"], ["updated_at", Tue, 25 Mar 2014 14:06:38 UTC +00:00]] -  (0.9ms) 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) + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6UyWqDKrR+zb2JeoY3rG0gbIAKV7yZHCJ2l3g6AiiRE=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "confirm_url"=>"http://localhost:3000/opay/paypal/confirm", "cancel_url"=>"/", "session_id"=>"Lp3pWAAg7Poxhzva7x2B", "amount"=>"10", "x"=>"63", "y"=>"14"} + Rendered /Users/olownia/dev/gems/opay/app/views/opay/paypal/new.html.erb within layouts/opay/application (8.9ms) +Completed 200 OK in 89ms (Views: 88.6ms | ActiveRecord: 0.0ms) -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-1NE27249UB336292B' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:07:01 UTC +00:00]] -  (0.8ms) commit transaction -  (0.0ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:07:01 UTC +00:00]] -  (0.7ms) commit transaction -Completed 500 Internal Server Error in 3770ms +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-04-24 15:25:57 +0200 -NameError (undefined local variable or method `root_path' for #<Opay::PaypalController:0x007f8cb73322c8>): - /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' +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:25:57 +0200 - 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 "/assets/opay/application.js?body=1" for 127.0.0.1 at 2014-04-24 15:25:57 +0200 -Started GET "/" for 127.0.0.1 at 2014-03-25 15:10:38 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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.6ms) -Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.3ms) +Started GET "/assets/opay/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:25:57 +0200 -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 - Order Load (0.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) 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 (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"} -  (0.1ms) begin transaction - SQL (3.2ms) 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]] -  (0.7ms) commit transaction -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] +Started GET "/opay/correct_authorization?session_id=Lp3pWAAg7Poxhzva7x2B" for 127.0.0.1 at 2014-04-24 15:25:58 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"Lp3pWAAg7Poxhzva7x2B"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Lp3pWAAg7Poxhzva7x2B' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]] + Opay::Payment Load (0.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '56ANBiwR7v3EvRNFqSZ8' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) 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]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oURMorZA8hMJEnLgvBnp' ORDER BY "opay_payments"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Thu, 24 Apr 2014 13:25:58 UTC +00:00]] +  (0.8ms) commit transaction  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (107.7ms) -Completed 500 Internal Server Error in 112ms + SQL (0.6ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Thu, 24 Apr 2014 13:25:58 UTC +00:00]] +  (1.0ms) commit transaction +Completed 500 Internal Server Error in 21ms -ActionView::Template::Error (undefined method `image_submit_tag' for #<Opay::FormBuilder:0x007fc03cc7b858>): - 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4ynxJQ8i49cwJgPc3V9a' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "4ynxJQ8i49cwJgPc3V9a"], ["updated_at", Tue, 25 Mar 2014 14:14:54 UTC +00:00]] -  (3.2ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '1CjpjnfDyZdyrf5doBtq' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "1CjpjnfDyZdyrf5doBtq"], ["updated_at", Tue, 25 Mar 2014 14:14:54 UTC +00:00]] -  (0.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (2.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'wYq3cpu8TsbBnzfq57om' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "wYq3cpu8TsbBnzfq57om"], ["updated_at", Tue, 25 Mar 2014 14:15:18 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'U29xNprECYcmx9qCkGra' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "U29xNprECYcmx9qCkGra"], ["updated_at", Tue, 25 Mar 2014 14:15:18 UTC +00:00]] -  (0.7ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jxzHJPJopTNNAVcEx4js' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "jxzHJPJopTNNAVcEx4js"], ["updated_at", Tue, 25 Mar 2014 14:15:39 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jTeayJW6XjHcmYbdJQY6' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 2 [["session_id", "jTeayJW6XjHcmYbdJQY6"], ["updated_at", Tue, 25 Mar 2014 14:15:39 UTC +00:00]] -  (0.7ms) 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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ZYtbfnVohwiixjU3y6AW' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pzP5kdzqBHWx6cMJ4EhJ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.8ms) commit transaction - 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pzP5kdzqBHWx6cMJ4EhJ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.2ms) begin transaction - SQL (0.7ms) 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]] -  (2.5ms) commit transaction -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-7YU39871S1693584U' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 2]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.7ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 2 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:16:21 UTC +00:00]] -  (0.9ms) commit transaction -Completed 500 Internal Server Error in 2856ms - -NameError (undefined local variable or method `root_path' for #<Opay::PaypalController:0x007fd868431cf8>): - /Users/olownia/dev/gems/opay/app/controllers/opay/paypal_controller.rb:11:in `create' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007ff6dda861d8>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:6:in `correct_authorization' 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:373:in `_run__1529530369328220172__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' @@ -6154,11 +1421,11 @@ 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:373:in `_run__4065094992399331645__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' @@ -6185,142 +1452,34 @@ /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) + 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.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 (29.2ms) -Started GET "/" for 127.0.0.1 at 2014-03-25 15:16:26 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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 - Order Load (2.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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"} -  (0.1ms) begin transaction - SQL (1.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (1.0ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "3"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] +Started GET "/opay/correct_authorization?session_id=Lp3pWAAg7Poxhzva7x2B" for 127.0.0.1 at 2014-04-24 15:26:06 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"Lp3pWAAg7Poxhzva7x2B"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Lp3pWAAg7Poxhzva7x2B' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]] + Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sx2DCJzJy6ZHzmuzgRin' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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]] -  (1.0ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3 [["session_id", "4U2fXppTHte8ADYS9xg7"], ["updated_at", Tue, 25 Mar 2014 14:21:32 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (27.5ms) -Completed 200 OK in 32ms (Views: 27.1ms | ActiveRecord: 3.8ms) +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) commit transaction +Completed 500 Internal Server Error in 64ms - -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1 -Completed 500 Internal Server Error in 13ms - -NoMethodError (undefined method `setup_purchase' for #<ActiveMerchant::Billing::BogusGateway:0x007ffa1f950eb8>): - /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' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007ff6ddd0d758>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:6:in `correct_authorization' 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:373:in `_run__1529530369328220172__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' @@ -6346,154 +1505,21 @@ 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '4U2fXppTHte8ADYS9xg7' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (3.0ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3 [["session_id", "EC-3EM824994Y828643B"], ["updated_at", Tue, 25 Mar 2014 14:22:26 UTC +00:00]] -  (2.5ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-3EM824994Y828643B' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 3]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 3 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:22:46 UTC +00:00]] -  (2.0ms) commit transaction -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 3 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:22:46 UTC +00:00]] -  (0.8ms) commit transaction -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:373:in `_run__4065094992399331645__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' @@ -6519,457 +1545,35 @@ /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) + 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.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 (4.1ms) + 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 (26.6ms) -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"} - Opay::Payment Load (0.2ms) 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 - Order Load (0.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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"} -  (0.1ms) begin transaction - SQL (0.5ms) 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]] -  (0.9ms) commit transaction -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "4"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] +Started GET "/opay/correct_authorization?session_id=Lp3pWAAg7Poxhzva7x2B" for 127.0.0.1 at 2014-04-24 15:26:09 +0200 +Processing by Opay::PayuController#correct_authorization as HTML + Parameters: {"session_id"=>"Lp3pWAAg7Poxhzva7x2B"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Lp3pWAAg7Poxhzva7x2B' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]] + Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jQy6bcMTisgsDY4mUbdH' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) 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]] -  (1.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TsiHfSunQHvycmxqvr95' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.7ms) commit transaction - 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TsiHfSunQHvycmxqvr95' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) 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]] -  (2.7ms) commit transaction -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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-7K6562634Y0075941' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 4]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.5ms) commit transaction +  (0.1ms) commit transaction  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 4 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:23:50 UTC +00:00]] -  (0.7ms) commit transaction -Completed 500 Internal Server Error in 2779ms +  (0.1ms) commit transaction +Completed 500 Internal Server Error in 10ms -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 - Order Load (3.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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"} -  (0.1ms) begin transaction - SQL (1.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (1.0ms) 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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "5"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JCpexAZhbeS6WsEGagiy' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) 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: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]] -  (2.8ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oixNqcBpT331xM9EVK6f' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["session_id", "oixNqcBpT331xM9EVK6f"], ["updated_at", Tue, 25 Mar 2014 14:24:43 UTC +00:00]] -  (1.0ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'oixNqcBpT331xM9EVK6f' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.7ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 5 [["session_id", "EC-795042436L291290A"], ["updated_at", Tue, 25 Mar 2014 14:24:46 UTC +00:00]] -  (2.3ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-795042436L291290A' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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' +NoMethodError (undefined method `root_path' for #<Opay::PayuController:0x007ff6ddadf490>): + /Users/olownia/dev/gems/opay/app/controllers/opay/application_controller.rb:6:in `correct_authorization' 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:373:in `_run__1529530369328220172__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' @@ -7005,11 +1609,11 @@ 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:373:in `_run__4065094992399331645__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' @@ -7035,4489 +1639,46 @@ /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) + 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 (2.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 (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 (25.2ms) -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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-795042436L291290A' ORDER BY "opay_payments"."id" ASC LIMIT 1 -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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "5"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qbyVSBW97kD2sRork79a' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) 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]] -  (1.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'grns7kJ7zZxx13fjRXdV' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.7ms) commit transaction - 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'grns7kJ7zZxx13fjRXdV' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.3ms) commit transaction -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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-43J16209H4594551X' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 5]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.7ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 5 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:26:13 UTC +00:00]] -  (0.9ms) 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 - Order Load (0.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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"} -  (0.1ms) begin transaction - SQL (3.0ms) 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]] -  (2.4ms) commit transaction -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "6"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dxsQ4WxdRp5ipdV5zWeY' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) 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]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aFK5n537upq5A1AxDDie' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.8ms) commit transaction - 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aFK5n537upq5A1AxDDie' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.7ms) commit transaction -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-75S58534FK982523L' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 6]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.5ms) 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]] -  (3.0ms) commit transaction -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 6 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:28:35 UTC +00:00]] -  (0.9ms) 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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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 - Order Load (1.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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"} -  (0.1ms) begin transaction - SQL (1.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "7"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dw78aaj6E3m1zqdXMi1A' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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]] -  (1.0ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tqCKzJEPDWFqqWTEtqcC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7 [["session_id", "tqCKzJEPDWFqqWTEtqcC"], ["updated_at", Tue, 25 Mar 2014 14:29:20 UTC +00:00]] -  (0.7ms) 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tqCKzJEPDWFqqWTEtqcC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7 [["session_id", "EC-04U66146NG0222223"], ["updated_at", Tue, 25 Mar 2014 14:29:23 UTC +00:00]] -  (2.7ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-04U66146NG0222223' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 7]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 7 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:29:43 UTC +00:00]] -  (2.2ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 7 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:29:43 UTC +00:00]] -  (0.7ms) commit transaction -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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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 - Order Load (1.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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"} -  (0.1ms) begin transaction - SQL (3.9ms) 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]] -  (0.7ms) commit transaction -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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PyGRpyLTES5Ksf31AYY8' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) 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]] -  (1.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tbRiW6pVNfASqeUNvrX8' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.9ms) commit transaction - 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tbRiW6pVNfASqeUNvrX8' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.9ms) commit transaction -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 - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kzeXzybuBTbFLewWW6Gp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "kzeXzybuBTbFLewWW6Gp"], ["updated_at", Tue, 25 Mar 2014 14:44:59 UTC +00:00]] -  (2.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PtmdYCG1sF9RbnLZ1pkL' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "PtmdYCG1sF9RbnLZ1pkL"], ["updated_at", Tue, 25 Mar 2014 14:44:59 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kpzcRqsvzXTpyoUZHsFo' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "kpzcRqsvzXTpyoUZHsFo"], ["updated_at", Tue, 25 Mar 2014 14:45:09 UTC +00:00]] -  (3.1ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EAWHZdkWuN6YDMqZPBWC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "EAWHZdkWuN6YDMqZPBWC"], ["updated_at", Tue, 25 Mar 2014 14:45:09 UTC +00:00]] -  (1.1ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NXuPgv3JGPHvsnFGXDod' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "NXuPgv3JGPHvsnFGXDod"], ["updated_at", Tue, 25 Mar 2014 14:45:11 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'vksMUzpJ622grX7rynzm' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 8 [["session_id", "vksMUzpJ622grX7rynzm"], ["updated_at", Tue, 25 Mar 2014 14:45:11 UTC +00:00]] -  (2.6ms) 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 - Order Load (1.7ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qStapmhd3dy67MtdY2gn' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.9ms) 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]] -  (2.5ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'BeP1SsS5LngwDix26nEq' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.8ms) commit transaction - 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 #<#<Class:0x007fd3b633a9c8>:0x007fd3b6339e10>): - 10: </tr> - 11: </table> - 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 #<#<Class:0x007fd3b6250328>:0x007fd3b625b660>): - 10: </tr> - 11: </table> - 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 #<#<Class:0x007f9770eb05c8>:0x007f9770ee04a8>): - 10: </tr> - 11: </table> - 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 - Order Load (1.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'cgiwt4qpqqMtUu5NdYEf' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) 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]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Qyk5pvT5PEiBM88xSpDa' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) 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]] -  (1.0ms) commit transaction - 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 #<#<Class:0x007fe8e5e9be90>:0x007fe8e5e9b0a8>): - 20: </tr> - 21: </table> - 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 #<ActionDispatch::Routing::RoutesProxy:0x007fe8e5cdb970>): - 20: </tr> - 21: </table> - 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 #<ActionDispatch::Routing::RoutesProxy:0x007fd9d52cc980>): - 20: </tr> - 21: </table> - 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 #<ActionDispatch::Routing::RoutesProxy:0x007f8b4ff3a188>): - 20: </tr> - 21: </table> - 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 #<#<Class:0x007fc7cdef49c0>:0x007fc7cdeffaa0>): - 20: </tr> - 21: </table> - 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 - Order Load (1.5ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (35.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) 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 (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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "8"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gzcjExswjYyv1uoVsvjC' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) 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]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PNz27qjW3B4Tbqz9m5yg' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (0.8ms) commit transaction - 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 #<#<Class:0x007fc7cc6d4778>:0x007fc7cdac7550>): - 10: </tr> - 11: </table> - 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 +Started GET "/opay/correct_authorization?session_id=Lp3pWAAg7Poxhzva7x2B" for 127.0.0.1 at 2014-04-24 15:26:19 +0200 Processing by Opay::PayuController#correct_authorization as HTML - Parameters: {"session_id"=>"PNz27qjW3B4Tbqz9m5yg"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PNz27qjW3B4Tbqz9m5yg' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 8]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (8.8ms) commit transaction + Parameters: {"session_id"=>"Lp3pWAAg7Poxhzva7x2B"} + Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Lp3pWAAg7Poxhzva7x2B' ORDER BY "opay_payments"."id" ASC LIMIT 1 + Order Load (3.9ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]] + Opay::Payment Load (0.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]  (0.1ms) begin transaction - SQL (0.9ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 8 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:38 UTC +00:00]] -  (0.9ms) 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} - Order Load (0.3ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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.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"} +  (0.1ms) commit transaction  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.8ms) 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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "9"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yyjdHrgHMs43qxPJMLDn' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) 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: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]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DWSejHfzwS4oxRpKKm9E' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 9 [["session_id", "DWSejHfzwS4oxRpKKm9E"], ["updated_at", Tue, 25 Mar 2014 14:52:46 UTC +00:00]] -  (0.7ms) 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DWSejHfzwS4oxRpKKm9E' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 9]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 9 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:49 UTC +00:00]] -  (2.3ms) commit transaction -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 9 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:52:49 UTC +00:00]] -  (0.7ms) commit transaction -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} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["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"} -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rz712kth5Jp49zTsNfUd' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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]] -  (1.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'S8Gk9AAJEZ6BHL1vzfGD' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "S8Gk9AAJEZ6BHL1vzfGD"], ["updated_at", Tue, 25 Mar 2014 14:52:57 UTC +00:00]] -  (1.0ms) 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} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'W4KqT2fSHyB28y9EBX4E' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.4ms) 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]] -  (2.1ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JvAnNAZib6TTqSq3fF2G' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.7ms) commit transaction - 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} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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} - Order Load (1.8ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'c1FtLcVzH4Uuy1XgZLQz' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) 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]] -  (2.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rjpvJyEe4mKsqwWJ87cF' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.9ms) commit transaction - 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"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'rjpvJyEe4mKsqwWJ87cF' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.2ms) begin transaction - SQL (0.5ms) 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]] -  (3.2ms) commit transaction -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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zYVm4pLMFzJ99EqcSWFc' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "zYVm4pLMFzJ99EqcSWFc"], ["updated_at", Tue, 25 Mar 2014 14:53:56 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TxrhsEKayKozqy2rvhex' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "TxrhsEKayKozqy2rvhex"], ["updated_at", Tue, 25 Mar 2014 14:53:56 UTC +00:00]] -  (0.7ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'TxrhsEKayKozqy2rvhex' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 10 [["session_id", "EC-7C631534PH221140J"], ["updated_at", Tue, 25 Mar 2014 14:53:59 UTC +00:00]] -  (0.8ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "10"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'f8Qiu17fhbkTDNfqyNq3' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) 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]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dDhEEsmR4ASFKAjsLwou' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) 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]] -  (0.6ms) commit transaction - 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'dDhEEsmR4ASFKAjsLwou' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) 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]] -  (2.7ms) commit transaction -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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-2W133049CK097363N' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 10]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) 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]] -  (2.6ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 10 [["finished", true], ["updated_at", Tue, 25 Mar 2014 14:54:41 UTC +00:00]] -  (0.9ms) commit transaction +  (0.1ms) commit transaction Redirected to http://localhost:3000/ -Completed 302 Found in 2477ms (ActiveRecord: 4.9ms) +Completed 302 Found in 87ms (ActiveRecord: 7.7ms) -Started GET "/" for 127.0.0.1 at 2014-03-25 15:54:41 +0100 +Started GET "/" for 127.0.0.1 at 2014-04-24 15:26:20 +0200 Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (14.2ms) -Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 1.6ms) + Order Load (0.3ms) SELECT "orders".* FROM "orders" + Opay::Payment Load (1.9ms) 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 (9.6ms) +Completed 200 OK in 145ms (Views: 83.2ms | ActiveRecord: 2.1ms) -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-25 15:54:41 +0100 +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-04-24 15:26:20 +0200 -Started GET "/assets/scaffold.css?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-04-24 15:26:20 +0200 -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.js?body=1" for 127.0.0.1 at 2014-04-24 15:26:20 +0200 -Started GET "/assets/application.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-04-24 15:26:20 +0200 -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 - Order Load (1.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (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"} -  (0.1ms) begin transaction - SQL (1.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] -  (0.9ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'JQG8kDb4qEygtGpHsfBq' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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]] -  (0.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xMXiNuTE1JRHG15Wwc46' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "xMXiNuTE1JRHG15Wwc46"], ["updated_at", Tue, 25 Mar 2014 14:59:47 UTC +00:00]] -  (0.8ms) 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"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xMXiNuTE1JRHG15Wwc46' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EC-2PX17362ME770274S"], ["updated_at", Tue, 25 Mar 2014 14:59:58 UTC +00:00]] -  (2.2ms) 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"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 - - -Started GET "/" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 -Processing by OrdersController#index as HTML - Order Load (2.1ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (54.6ms) -Completed 200 OK in 153ms (Views: 140.4ms | ActiveRecord: 6.8ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 11:51:50 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 11:51:52 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ectGK1vk561D9v3i16uo' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "ectGK1vk561D9v3i16uo"], ["updated_at", Wed, 26 Mar 2014 10:51:52 UTC +00:00]] -  (0.9ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '39t2nMrykAozWBy9pNZJ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "39t2nMrykAozWBy9pNZJ"], ["updated_at", Wed, 26 Mar 2014 10:51:52 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (23.7ms) -Completed 200 OK in 29ms (Views: 23.3ms | ActiveRecord: 4.9ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 11:51:52 +0100 - - -Started GET "/fsdlj" for 127.0.0.1 at 2014-03-26 11:55:39 +0100 - -ActionController::RoutingError (No route matches [GET] "/fsdlj"): - 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.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 (0.3ms) - 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 (5.3ms) - 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 (30.5ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NPZVs8JbxK3QdEfpqsEm' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "NPZVs8JbxK3QdEfpqsEm"], ["updated_at", Wed, 26 Mar 2014 10:57:47 UTC +00:00]] -  (0.9ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Qxb4Pzaw2pLDz63pW6iN' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "Qxb4Pzaw2pLDz63pW6iN"], ["updated_at", Wed, 26 Mar 2014 10:57:47 UTC +00:00]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (11.2ms) -Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 3.4ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 11:57:47 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 11:57:48 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "session_id"=>"Qxb4Pzaw2pLDz63pW6iN", "amount"=>"123", "x"=>"74", "y"=>"17"} - Opay::Payment Load (0.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Qxb4Pzaw2pLDz63pW6iN' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EC-6FV695887K7267158"], ["updated_at", Wed, 26 Mar 2014 10:57:51 UTC +00:00]] -  (2.2ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-6FV695887K7267158 -Completed 302 Found in 2705ms (ActiveRecord: 3.2ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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.6ms) -Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 1.4ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 11:58:37 +0100 - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:00:50 +0100 -Processing by OrdersController#index as HTML - Order Load (0.6ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.6ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) 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 (77.7ms) -Completed 200 OK in 85ms (Views: 78.7ms | ActiveRecord: 3.0ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:00:51 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:00:51 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:00:51 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:00:51 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:00:51 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:00:52 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'sEqQD29QXNa1wxcYEw5q' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "sEqQD29QXNa1wxcYEw5q"], ["updated_at", Wed, 26 Mar 2014 11:00:52 UTC +00:00]] -  (1.0ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'K21dSeGixFsxDy2QGJy5' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "K21dSeGixFsxDy2QGJy5"], ["updated_at", Wed, 26 Mar 2014 11:00:52 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (15.1ms) -Completed 500 Internal Server Error in 19ms - -ActionView::Template::Error (undefined method `new_paypal_payment_path' for #<Module:0x007fe155b48c58>): - 22: <%= f.submit :pay_with_payu %> - 23: <% end -%> - 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 -%> - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__2387074991247083223_70302889808380' - - - 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.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.7ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:03:48 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (3.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'UPUeb3W2WbxwPVh3vXTv' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (2.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "UPUeb3W2WbxwPVh3vXTv"], ["updated_at", Wed, 26 Mar 2014 11:03:48 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '8QpptSrJpat123s2v9zG' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "8QpptSrJpat123s2v9zG"], ["updated_at", Wed, 26 Mar 2014 11:03:48 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (126.7ms) -Completed 500 Internal Server Error in 150ms - -ActionView::Template::Error (undefined local variable or method `opay' for #<Opay::FormBuilder:0x007f85d77a41f8>): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb___4440398349873022870_70106416350420' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___4440398349873022870_70106416350420' - - - 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.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 (14.2ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:06:10 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'QxrD8hkBYtqdHs3Byp11' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.8ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "QxrD8hkBYtqdHs3Byp11"], ["updated_at", Wed, 26 Mar 2014 11:06:10 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'pwCPaJhKpwV9fWcCxKED' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "pwCPaJhKpwV9fWcCxKED"], ["updated_at", Wed, 26 Mar 2014 11:06:10 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (110.0ms) -Completed 200 OK in 165ms (Views: 139.1ms | ActiveRecord: 10.1ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:11 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:11 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:11 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:11 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:11 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YZC82frMvE5oiP1bSgSd' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "YZC82frMvE5oiP1bSgSd"], ["updated_at", Wed, 26 Mar 2014 11:06:28 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YCM24oCNNpDmycbDxavs' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "YCM24oCNNpDmycbDxavs"], ["updated_at", Wed, 26 Mar 2014 11:06:28 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (10.1ms) -Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 3.2ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:28 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'evNxYQgrhYsMCYy4oive' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "evNxYQgrhYsMCYy4oive"], ["updated_at", Wed, 26 Mar 2014 11:06:42 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EknqCvHsDgH8gPGawCNT' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EknqCvHsDgH8gPGawCNT"], ["updated_at", Wed, 26 Mar 2014 11:06:42 UTC +00:00]] -  (1.1ms) commit transaction - Rendered orders/show.html.erb within layouts/application (73.1ms) -Completed 200 OK in 148ms (Views: 126.5ms | ActiveRecord: 10.2ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:06:42 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:07:45 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FUVXsTmsxhZ9Pp8tcnkv' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "FUVXsTmsxhZ9Pp8tcnkv"], ["updated_at", Wed, 26 Mar 2014 11:07:45 UTC +00:00]] -  (3.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Y7abN43pS7kUTxvy2xjT' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "Y7abN43pS7kUTxvy2xjT"], ["updated_at", Wed, 26 Mar 2014 11:07:45 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (123.4ms) -Completed 500 Internal Server Error in 143ms - -ActionView::Template::Error (undefined local variable or method `opay' for #<Opay::FormBuilder:0x007ff357ed7ec8>): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb__4496842588475430743_70341562792660' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__4496842588475430743_70341562792660' - - - 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.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.6ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:08:28 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'RYPtGnP4zRe1CWRqxzPZ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "RYPtGnP4zRe1CWRqxzPZ"], ["updated_at", Wed, 26 Mar 2014 11:08:28 UTC +00:00]] -  (2.5ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Ap7PckmDxHQSHonzpufs' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "Ap7PckmDxHQSHonzpufs"], ["updated_at", Wed, 26 Mar 2014 11:08:28 UTC +00:00]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (68.2ms) -Completed 500 Internal Server Error in 88ms - -ActionView::Template::Error (nil is not a symbol): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb___1094987308371887666_70241488149280' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___1094987308371887666_70241488149280' - - - 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.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 (10.9ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:09:47 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ob9CwvaPz5EXQiFoe9Jx' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "ob9CwvaPz5EXQiFoe9Jx"], ["updated_at", Wed, 26 Mar 2014 11:09:47 UTC +00:00]] -  (2.6ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yFmtR7XQTJZzbQH2y4ud' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "yFmtR7XQTJZzbQH2y4ud"], ["updated_at", Wed, 26 Mar 2014 11:09:47 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (88.2ms) -Completed 500 Internal Server Error in 108ms - -ActionView::Template::Error (undefined method `cancel_payment_path' for #<ActionDispatch::Routing::RoutesProxy:0x007f834e3e1bf0>): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb___4298322347377076017_70100963384100' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___4298322347377076017_70100963384100' - - - 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.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 (13.5ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:11:42 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.8ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'XrRdL2NQJiGXYbqeJQ2H' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.6ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "XrRdL2NQJiGXYbqeJQ2H"], ["updated_at", Wed, 26 Mar 2014 11:11:43 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'PDcjyTurbj2yesHHcc57' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "PDcjyTurbj2yesHHcc57"], ["updated_at", Wed, 26 Mar 2014 11:11:43 UTC +00:00]] -  (0.6ms) commit transaction - Rendered orders/show.html.erb within layouts/application (75.5ms) -Completed 500 Internal Server Error in 97ms - -ActionView::Template::Error (undefined method `cancel_payment_path' for #<ActionDispatch::Routing::RoutesProxy:0x007f842f991208>): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb___3713253799349200231_70102849587940' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___3713253799349200231_70102849587940' - - - 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.3ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:12:13 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (1.9ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kYtiQhhTFBkHAxDqvutk' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "kYtiQhhTFBkHAxDqvutk"], ["updated_at", Wed, 26 Mar 2014 11:12:14 UTC +00:00]] -  (2.2ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Kb3PsrzxC2qxwk23h8ox' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "Kb3PsrzxC2qxwk23h8ox"], ["updated_at", Wed, 26 Mar 2014 11:12:14 UTC +00:00]] -  (1.0ms) commit transaction - Rendered orders/show.html.erb within layouts/application (69.6ms) -Completed 200 OK in 147ms (Views: 126.5ms | ActiveRecord: 9.3ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:12:14 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:12:14 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:12:14 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:12:14 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:12:14 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:13:48 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '3Q3P3HxfUNGH2SA3fend' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "3Q3P3HxfUNGH2SA3fend"], ["updated_at", Wed, 26 Mar 2014 11:13:48 UTC +00:00]] -  (2.3ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NtDbcDb4yi4rWS94QDkw' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "NtDbcDb4yi4rWS94QDkw"], ["updated_at", Wed, 26 Mar 2014 11:13:48 UTC +00:00]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (67.0ms) -Completed 500 Internal Server Error in 87ms - -ActionView::Template::Error (nil is not a symbol): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb___989983410501932168_70156464301500' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb___989983410501932168_70156464301500' - - - 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.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.5ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'mqG5kiu4KoJ4FgThQPqZ' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "mqG5kiu4KoJ4FgThQPqZ"], ["updated_at", Wed, 26 Mar 2014 11:14:24 UTC +00:00]] -  (2.6ms) commit transaction - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'YpcK71UZMAQednCpG1Q6' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "YpcK71UZMAQednCpG1Q6"], ["updated_at", Wed, 26 Mar 2014 11:14:24 UTC +00:00]] -  (1.0ms) commit transaction - Rendered orders/show.html.erb within layouts/application (69.8ms) -Completed 200 OK in 147ms (Views: 124.2ms | ActiveRecord: 10.6ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:14:24 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ZqFU2Hy6NpqpsehHdQ7x' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "ZqFU2Hy6NpqpsehHdQ7x"], ["updated_at", Wed, 26 Mar 2014 11:16:48 UTC +00:00]] -  (0.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Gbdf2JFhtr3qxYAi4X2o' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "Gbdf2JFhtr3qxYAi4X2o"], ["updated_at", Wed, 26 Mar 2014 11:16:48 UTC +00:00]] -  (0.8ms) commit transaction - Rendered orders/show.html.erb within layouts/application (10.6ms) -Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 3.1ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:16:48 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:17:55 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (4.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'D98JfrbfWAXa2YX3WaTE' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "D98JfrbfWAXa2YX3WaTE"], ["updated_at", Wed, 26 Mar 2014 11:17:55 UTC +00:00]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'abw7meHV9zyohnj7nouG' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "abw7meHV9zyohnj7nouG"], ["updated_at", Wed, 26 Mar 2014 11:17:55 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (77.1ms) -Completed 200 OK in 156ms (Views: 131.1ms | ActiveRecord: 12.3ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:17:56 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:17:56 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:17:56 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:17:56 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:17:56 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 12:17:57 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "create_url"=>"http://localhost:3000/opay/paypal/new", "cancel_url"=>"http://localhost:3000/cancel", "session_id"=>"abw7meHV9zyohnj7nouG", "amount"=>"123", "x"=>"78", "y"=>"8"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'abw7meHV9zyohnj7nouG' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EC-9HU13651EU692490R"], ["updated_at", Wed, 26 Mar 2014 11:17:59 UTC +00:00]] -  (2.8ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-9HU13651EU692490R -Completed 302 Found in 1674ms (ActiveRecord: 3.5ms) - - -Started GET "/opay/paypal/new?token=EC-9HU13651EU692490R&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:18:23 +0100 - -ActionController::RoutingError (No route matches [GET] "/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.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.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.4ms) - 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.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.4ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 -Processing by OrdersController#index as HTML - Order Load (1.7ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (3.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (53.2ms) -Completed 200 OK in 138ms (Views: 126.0ms | ActiveRecord: 7.3ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:01 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aVUmptmc325gzoKuPMNF' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "aVUmptmc325gzoKuPMNF"], ["updated_at", Wed, 26 Mar 2014 11:20:04 UTC +00:00]] -  (2.8ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FGpsozmMc8FbP9c2ARz5' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "FGpsozmMc8FbP9c2ARz5"], ["updated_at", Wed, 26 Mar 2014 11:20:04 UTC +00:00]] -  (0.9ms) commit transaction - Rendered orders/show.html.erb within layouts/application (23.5ms) -Completed 200 OK in 29ms (Views: 21.3ms | ActiveRecord: 6.3ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:20:04 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 12:20:05 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "create_url"=>"http://localhost:3000/opay/paypal/new", "cancel_url"=>"http://localhost:3000/cancel", "session_id"=>"FGpsozmMc8FbP9c2ARz5", "amount"=>"123", "x"=>"57", "y"=>"16"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'FGpsozmMc8FbP9c2ARz5' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EC-94M36163V0215214P"], ["updated_at", Wed, 26 Mar 2014 11:20:08 UTC +00:00]] -  (3.1ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-94M36163V0215214P -Completed 302 Found in 2484ms (ActiveRecord: 3.8ms) - - -Started GET "/opay/paypal/new?token=EC-94M36163V0215214P&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:20:24 +0100 - -ActionController::RoutingError (No route matches [GET] "/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.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.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.3ms) - 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.7ms) - 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.4ms) - - -Started GET "/opay/paypal/new?token=EC-94M36163V0215214P&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:21:10 +0100 - -ActionController::RoutingError (No route matches [GET] "/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.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 (4.6ms) - 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.4ms) - 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.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 (35.1ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:21:12 +0100 -Processing by OrdersController#index as HTML - Order Load (1.4ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) 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 (84.0ms) -Completed 200 OK in 162ms (Views: 152.4ms | ActiveRecord: 5.2ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:21:13 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:21:13 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:21:13 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:21:13 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:21:13 +0100 - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:21:14 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DDriemy4YsLezjgPoeAf' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "DDriemy4YsLezjgPoeAf"], ["updated_at", Wed, 26 Mar 2014 11:21:14 UTC +00:00]] -  (2.4ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'w5eJSP27N7YY8yboc6Tb' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "w5eJSP27N7YY8yboc6Tb"], ["updated_at", Wed, 26 Mar 2014 11:21:14 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (27.4ms) -Completed 500 Internal Server Error in 31ms - -ActionView::Template::Error (undefined method `paypal_create_payment_url' for #<ActionDispatch::Routing::RoutesProxy:0x007fc6fc6fe198>): - 23: <% end -%> - 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: - app/views/orders/show.html.erb:26:in `block in _app_views_orders_show_html_erb__121614291019874798_70246307471620' - app/views/orders/show.html.erb:25:in `_app_views_orders_show_html_erb__121614291019874798_70246307471620' - - - 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.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 (10.0ms) - - -Started GET "/orders/11" for 127.0.0.1 at 2014-03-26 12:22:53 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"11"} - Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "11"]] - Opay::Payment Load (2.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ocNybxianBzwy6iCTTCy' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (1.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "ocNybxianBzwy6iCTTCy"], ["updated_at", Wed, 26 Mar 2014 11:22:54 UTC +00:00]] -  (3.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'm87anX6m4wxMsdCi54rp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "m87anX6m4wxMsdCi54rp"], ["updated_at", Wed, 26 Mar 2014 11:22:54 UTC +00:00]] -  (1.0ms) commit transaction - Rendered orders/show.html.erb within layouts/application (105.4ms) -Completed 200 OK in 148ms (Views: 122.0ms | ActiveRecord: 10.7ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:22:54 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:22:54 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:22:54 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:22:54 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:22:54 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 12:22:56 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "confirm_url"=>"http://localhost:3000/opay/paypal/confirm", "cancel_url"=>"http://localhost:3000/cancel", "session_id"=>"m87anX6m4wxMsdCi54rp", "amount"=>"123", "x"=>"72", "y"=>"15"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'm87anX6m4wxMsdCi54rp' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["session_id", "EC-0JB44150003482301"], ["updated_at", Wed, 26 Mar 2014 11:22:58 UTC +00:00]] -  (2.3ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0JB44150003482301 -Completed 302 Found in 2479ms (ActiveRecord: 3.0ms) - - -Started GET "/opay/paypal/confirm?token=EC-0JB44150003482301&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:23:15 +0100 - -AbstractController::ActionNotFound (The action 'confirm' could not be found for Opay::PaypalController): - 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: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__1093271326943730298__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 "/opay/paypal/confirm?token=EC-0JB44150003482301&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:23:25 +0100 - -AbstractController::ActionNotFound (The action 'confirm' could not be found for Opay::PaypalController): - 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: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__1093271326943730298__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.6ms) - - -Started GET "/opay/paypal/confirm?token=EC-0JB44150003482301&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:23:26 +0100 - -AbstractController::ActionNotFound (The action 'confirm' could not be found for Opay::PaypalController): - 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: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__1093271326943730298__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.4ms) - - -Started GET "/opay/paypal/confirm?token=EC-0JB44150003482301&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:23:35 +0100 -Processing by Opay::PaypalController#confirm as HTML - Parameters: {"token"=>"EC-0JB44150003482301", "PayerID"=>"7RJPMT48ZEAZ8"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-0JB44150003482301' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (2.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 11]] - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (1.3ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 11 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:23:39 UTC +00:00]] -  (2.1ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 11 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:23:39 UTC +00:00]] -  (0.9ms) commit transaction -Redirected to http://localhost:3000/ -Completed 302 Found in 4107ms (ActiveRecord: 9.0ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:23:39 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.3ms) 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 (16.1ms) -Completed 200 OK in 85ms (Views: 82.5ms | ActiveRecord: 1.7ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:39 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:39 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:39 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:40 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:40 +0100 - - -Started GET "/orders/new" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 -Processing by OrdersController#new as HTML - Rendered orders/_form.html.erb (9.8ms) - Rendered orders/new.html.erb within layouts/application (13.4ms) -Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.0ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:43 +0100 - - -Started POST "/orders" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 -Processing by OrdersController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "order"=>{"name"=>"odfssfd", "amount"=>"3455"}, "commit"=>"Create Order"} -  (0.1ms) begin transaction - SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "3455"], ["created_at", Wed, 26 Mar 2014 11:23:56 UTC +00:00], ["name", "odfssfd"], ["updated_at", Wed, 26 Mar 2014 11:23:56 UTC +00:00]] -  (0.8ms) commit transaction -Redirected to http://localhost:3000/orders/12 -Completed 302 Found in 6ms (ActiveRecord: 1.4ms) - - -Started GET "/orders/12" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"12"} - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "12"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 12], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'DWm6bxpFxTRkJ8LimdsF' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 3455], ["created_at", Wed, 26 Mar 2014 11:23:56 UTC +00:00], ["payable_id", 12], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "DWm6bxpFxTRkJ8LimdsF"], ["updated_at", Wed, 26 Mar 2014 11:23:56 UTC +00:00]] -  (0.7ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'KhUazrzPDSPeQ9LnUV4t' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 12 [["session_id", "KhUazrzPDSPeQ9LnUV4t"], ["updated_at", Wed, 26 Mar 2014 11:23:56 UTC +00:00]] -  (0.7ms) commit transaction - Rendered orders/show.html.erb within layouts/application (16.8ms) -Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 3.1ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:23:56 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 12:23:57 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "confirm_url"=>"http://localhost:3000/opay/paypal/confirm", "cancel_url"=>"http://localhost:3000/cancel", "session_id"=>"KhUazrzPDSPeQ9LnUV4t", "amount"=>"3455", "x"=>"65", "y"=>"12"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'KhUazrzPDSPeQ9LnUV4t' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 12 [["session_id", "EC-9VJ616047K511440U"], ["updated_at", Wed, 26 Mar 2014 11:23:58 UTC +00:00]] -  (2.1ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-9VJ616047K511440U -Completed 302 Found in 1234ms (ActiveRecord: 2.8ms) - - -Started GET "/opay/paypal/confirm?token=EC-9VJ616047K511440U&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:24:25 +0100 -Processing by Opay::PaypalController#confirm as HTML - Parameters: {"token"=>"EC-9VJ616047K511440U", "PayerID"=>"7RJPMT48ZEAZ8"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-9VJ616047K511440U' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 12]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 12], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 12 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:24:29 UTC +00:00]] -  (2.8ms) commit transaction -  (0.1ms) begin transaction - SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 12 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:24:29 UTC +00:00]] -  (0.9ms) commit transaction -Redirected to http://localhost:3000/ -Completed 302 Found in 3331ms (ActiveRecord: 5.3ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 12], ["payable_type", "Order"]] - Rendered orders/index.html.erb within layouts/application (11.8ms) -Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 1.2ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:29 +0100 - - -Started GET "/orders/new" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 -Processing by OrdersController#new as HTML - Rendered orders/_form.html.erb (3.2ms) - Rendered orders/new.html.erb within layouts/application (4.2ms) -Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:32 +0100 - - -Started POST "/orders" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 -Processing by OrdersController#create as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "order"=>{"name"=>"dfsfsd", "amount"=>"100"}, "commit"=>"Create Order"} -  (0.1ms) begin transaction - SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "100"], ["created_at", Wed, 26 Mar 2014 11:24:38 UTC +00:00], ["name", "dfsfsd"], ["updated_at", Wed, 26 Mar 2014 11:24:38 UTC +00:00]] -  (1.0ms) commit transaction -Redirected to http://localhost:3000/orders/13 -Completed 302 Found in 5ms (ActiveRecord: 1.6ms) - - -Started GET "/orders/13" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 -Processing by OrdersController#show as HTML - Parameters: {"id"=>"13"} - Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "13"]] - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 13], ["payable_type", "Order"]] -  (0.1ms) begin transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'MVyzeUJpHaNvvxYe7pSd' ORDER BY "opay_payments"."id" ASC LIMIT 1 - SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 100], ["created_at", Wed, 26 Mar 2014 11:24:38 UTC +00:00], ["payable_id", 13], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "MVyzeUJpHaNvvxYe7pSd"], ["updated_at", Wed, 26 Mar 2014 11:24:38 UTC +00:00]] -  (1.0ms) commit transaction - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gvx3aarxVgSWumbBnY4C' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.0ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 13 [["session_id", "gvx3aarxVgSWumbBnY4C"], ["updated_at", Wed, 26 Mar 2014 11:24:38 UTC +00:00]] -  (0.6ms) commit transaction - Rendered orders/show.html.erb within layouts/application (12.6ms) -Completed 200 OK in 19ms (Views: 14.0ms | ActiveRecord: 3.2ms) - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:24:38 +0100 - - -Started PATCH "/opay/paypal/new" for 127.0.0.1 at 2014-03-26 12:24:39 +0100 -Processing by Opay::PaypalController#new as HTML - Parameters: {"utf8"=>"✓", "authenticity_token"=>"LxPfeVzneXNj+2bpRUb7hS67YTqTM6/hZBnUjyKVxes=", "desc"=>"Test payment", "client_ip"=>"127.0.0.1", "confirm_url"=>"http://localhost:3000/opay/paypal/confirm", "cancel_url"=>"http://localhost:3000/cancel", "session_id"=>"gvx3aarxVgSWumbBnY4C", "amount"=>"100", "x"=>"54", "y"=>"14"} - Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'gvx3aarxVgSWumbBnY4C' ORDER BY "opay_payments"."id" ASC LIMIT 1 -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 13 [["session_id", "EC-1UJ90758EA102210E"], ["updated_at", Wed, 26 Mar 2014 11:24:40 UTC +00:00]] -  (2.2ms) commit transaction -Redirected to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1UJ90758EA102210E -Completed 302 Found in 1056ms (ActiveRecord: 2.8ms) - - -Started GET "/opay/paypal/confirm?token=EC-1UJ90758EA102210E&PayerID=7RJPMT48ZEAZ8" for 127.0.0.1 at 2014-03-26 12:25:00 +0100 -Processing by Opay::PaypalController#confirm as HTML - Parameters: {"token"=>"EC-1UJ90758EA102210E", "PayerID"=>"7RJPMT48ZEAZ8"} - Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'EC-1UJ90758EA102210E' ORDER BY "opay_payments"."id" ASC LIMIT 1 - Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 13]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 13], ["payable_type", "Order"]] -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 13 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:25:03 UTC +00:00]] -  (3.0ms) commit transaction -  (0.1ms) begin transaction - SQL (0.3ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 13 [["finished", true], ["updated_at", Wed, 26 Mar 2014 11:25:03 UTC +00:00]] -  (0.6ms) commit transaction -Redirected to http://localhost:3000/ -Completed 302 Found in 3065ms (ActiveRecord: 4.9ms) - - -Started GET "/" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 -Processing by OrdersController#index as HTML - Order Load (0.2ms) SELECT "orders".* FROM "orders" - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 2], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 3], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 4], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 5], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 6], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 7], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 8], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 9], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 10], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 11], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 12], ["payable_type", "Order"]] - Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 13], ["payable_type", "Order"]] - Rendered orders/index.html.erb within layouts/application (13.9ms) -Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 1.4ms) - - -Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 - - -Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 - - -Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 - - -Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 - - -Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-26 12:25:03 +0100 -  (1.2ms) CREATE 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)  -  (1.2ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type") -  (1.2ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id") -  (1.2ms) 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) -  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  -  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.1ms) SELECT version FROM "schema_migrations" -  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550') - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" -  (3.5ms) CREATE 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)  -  (1.1ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type") -  (1.1ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id") -  (1.0ms) 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) -  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  -  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") -  (0.1ms) SELECT version FROM "schema_migrations" -  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130326152550') - ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-04-24 15:26:20 +0200