opay 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,19 +27,13 @@ module Opay
27
27
  options[:desc] ||= object.payment_description
28
28
  options[:client_ip] ||= @template.request.remote_ip
29
29
  options[:js] = 0
30
- options[:ts] = Time.now.to_i.to_s
31
-
32
- options[:pay_type] = 't' if Opay.config.test_mode
33
30
 
34
- sig_string = ''
35
- %w( pos_id pay_type session_id pos_auth_key amount desc desc2 trsDesc order_id first_name last_name payback_login street street_hn street_an city post_code country email phone language lient_ip ts ).each do |key|
36
- sig_string += options[key.to_sym].to_s if options.has_key?(key.to_sym)
37
- end
38
-
39
- options[:sig] = Providers::Payu.create_sig(sig_string)
31
+ options[:pay_type] = 't' if Opay.config.test_mode
32
+ options[:ts] = Time.now.to_i.to_s
33
+ options[:sig] = Providers::Payu.create_form_sig(options)
40
34
 
41
35
  fields = options.map { |key, val| @template.hidden_field_tag(key, val) }.join("\n")
42
- js = "<script type=\"text/javascript\"><!-- document.forms['payu_payment_form_#{object.id}'].js.value = 1; --></script>"
36
+ js = "<script type=\"text/javascript\"><!-- document.forms['payu_payment_form_#{object.id}'].js.value = 1; --></script>".html_safe
43
37
 
44
38
  "#{fields}\n#{js}".html_safe
45
39
  end
@@ -69,6 +69,15 @@ module Opay
69
69
  def self.verify_sig(sig, *values)
70
70
  sig == Digest::MD5.hexdigest(values.join + Opay.config.key2)
71
71
  end
72
+
73
+ def self.create_form_sig(options)
74
+ sig_string = ''
75
+ %w( pos_id pay_type session_id pos_auth_key amount desc desc2 trsDesc order_id first_name last_name payback_login street street_hn street_an city post_code country email phone language client_ip ts ).each do |key|
76
+ sig_string += options[key.to_sym].to_s if options.has_key?(key.to_sym)
77
+ end
78
+
79
+ create_sig(sig_string)
80
+ end
72
81
  end
73
82
 
74
83
  end
data/lib/opay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opay
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -15,10 +15,25 @@
15
15
  <%= @order.finished? %>
16
16
  </p>
17
17
 
18
- <%= opay_form_for(@order) do |f| %>
19
- <%= f.payment_info first_name: 'Jan', last_name: 'Kowalski', email: 'kowalski@gmail.com', desc: 'Test payment' %>
20
- <%= f.submit 'pay with payu' %>
21
- <% end %>
18
+
19
+
20
+ <form method="post" id="payu_payment_form_2" class="payu_payment_form" action="https://www.platnosci.pl/paygw/UTF/NewPayment" accept-charset="UTF-8">
21
+ <input type="hidden" value="Jan" name="first_name" id="first_name">
22
+ <input type="hidden" value="Kowalski" name="last_name" id="last_name">
23
+ <input type="hidden" value="kowalski@gmail.com" name="email" id="email">
24
+ <input type="hidden" value="Test payment" name="desc" id="desc">
25
+ <input type="hidden" value="122177" name="pos_id" id="pos_id">
26
+ <input type="hidden" value="qKoC8JK" name="pos_auth_key" id="pos_auth_key">
27
+ <input type="hidden" value="d8bf541acd87654f3d815aca7140383d" name="session_id" id="session_id">
28
+ <input type="hidden" value="1000" name="amount" id="amount">
29
+ <input type="hidden" value="127.0.0.1" name="client_ip" id="client_ip">
30
+ <input type="hidden" value="0" name="js" id="js">
31
+ <input type="hidden" value="1366813767" name="ts" id="ts">
32
+ <input type="hidden" value="t" name="pay_type" id="pay_type">
33
+ <input type="hidden" value="27ec04d7d566313372bba07e7b9decf7" name="sig" id="sig">
34
+ <script type="text/javascript"><!-- document.forms['payu_payment_form_2'].js.value = 1; --></script>
35
+ <input type="submit" value="pay with payuu" name="commit">
36
+ </form>
22
37
 
23
38
 
24
39
  <%= link_to 'Edit', edit_order_path(@order) %> |
Binary file
Binary file
@@ -2470,3 +2470,451 @@ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
2470
2470
 
2471
2471
  Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 14:28:10 +0200
2472
2472
  Served asset /scaffold.css - 304 Not Modified (1ms)
2473
+ Connecting to database specified by database.yml
2474
+
2475
+
2476
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2477
+ Processing by OrdersController#show as HTML
2478
+ Parameters: {"id"=>"1"}
2479
+ Order Load (23.7ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2480
+ Opay::Payment Load (0.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2481
+ Rendered orders/show.html.erb within layouts/application (186.6ms)
2482
+ Completed 200 OK in 447ms (Views: 339.7ms | ActiveRecord: 51.9ms)
2483
+
2484
+
2485
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2486
+ Served asset /scaffold.css - 304 Not Modified (1ms)
2487
+
2488
+
2489
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2490
+ Served asset /jquery.js - 304 Not Modified (5ms)
2491
+
2492
+
2493
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2494
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
2495
+
2496
+
2497
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2498
+ Served asset /application.js - 304 Not Modified (44ms)
2499
+
2500
+
2501
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:23:53 +0200
2502
+ Served asset /application.css - 304 Not Modified (2ms)
2503
+
2504
+
2505
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2506
+ Processing by OrdersController#show as HTML
2507
+ Parameters: {"id"=>"1"}
2508
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2509
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2510
+ Rendered orders/show.html.erb within layouts/application (3.8ms)
2511
+ Completed 200 OK in 33ms (Views: 32.0ms | ActiveRecord: 0.4ms)
2512
+
2513
+
2514
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2515
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2516
+
2517
+
2518
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2519
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2520
+
2521
+
2522
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2523
+ Served asset /application.js - 304 Not Modified (0ms)
2524
+
2525
+
2526
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2527
+ Served asset /jquery.js - 304 Not Modified (0ms)
2528
+
2529
+
2530
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:24:39 +0200
2531
+ Served asset /application.css - 304 Not Modified (0ms)
2532
+
2533
+
2534
+ Started GET "/orders/1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2535
+ Processing by OrdersController#show as HTML
2536
+ Parameters: {"id"=>"1"}
2537
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "1"]]
2538
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2539
+ Rendered orders/show.html.erb within layouts/application (3.9ms)
2540
+ Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms)
2541
+
2542
+
2543
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2544
+ Served asset /application.css - 304 Not Modified (0ms)
2545
+
2546
+
2547
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2548
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2549
+
2550
+
2551
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2552
+ Served asset /application.js - 304 Not Modified (0ms)
2553
+
2554
+
2555
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2556
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2557
+
2558
+
2559
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:24:44 +0200
2560
+ Served asset /jquery.js - 304 Not Modified (0ms)
2561
+
2562
+
2563
+ Started GET "/orders" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2564
+ Processing by OrdersController#index as HTML
2565
+ Order Load (0.4ms) SELECT "orders".* FROM "orders" 
2566
+ Rendered orders/index.html.erb within layouts/application (2.2ms)
2567
+ Completed 200 OK in 37ms (Views: 35.3ms | ActiveRecord: 0.4ms)
2568
+
2569
+
2570
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2571
+ Served asset /application.css - 304 Not Modified (0ms)
2572
+
2573
+
2574
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2575
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2576
+
2577
+
2578
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2579
+ Served asset /jquery.js - 304 Not Modified (0ms)
2580
+
2581
+
2582
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2583
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2584
+
2585
+
2586
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:27 +0200
2587
+ Served asset /application.js - 304 Not Modified (0ms)
2588
+
2589
+
2590
+ Started GET "/orders/new" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2591
+ Processing by OrdersController#new as HTML
2592
+ Rendered orders/_form.html.erb (68.9ms)
2593
+ Rendered orders/new.html.erb within layouts/application (131.1ms)
2594
+ Completed 200 OK in 164ms (Views: 160.8ms | ActiveRecord: 0.0ms)
2595
+
2596
+
2597
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2598
+ Served asset /application.css - 304 Not Modified (0ms)
2599
+
2600
+
2601
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2602
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2603
+
2604
+
2605
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2606
+ Served asset /jquery.js - 304 Not Modified (0ms)
2607
+
2608
+
2609
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2610
+ Served asset /application.js - 304 Not Modified (0ms)
2611
+
2612
+
2613
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:29 +0200
2614
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2615
+
2616
+
2617
+ Started POST "/orders" for 127.0.0.1 at 2013-04-24 16:25:35 +0200
2618
+ Processing by OrdersController#create as HTML
2619
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"sYtpdAkBiSPH0VVmuJaonVtw4WeS/h2Atq0ssPS25Qg=", "order"=>{"name"=>"order 2", "amount"=>"1000"}, "commit"=>"Create Order"}
2620
+  (0.1ms) begin transaction
2621
+ SQL (273.3ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", "1000"], ["created_at", Wed, 24 Apr 2013 14:25:35 UTC +00:00], ["name", "order 2"], ["updated_at", Wed, 24 Apr 2013 14:25:35 UTC +00:00]]
2622
+  (4.5ms) commit transaction
2623
+ Redirected to http://0.0.0.0:3000/orders/2
2624
+ Completed 302 Found in 282ms (ActiveRecord: 277.8ms)
2625
+
2626
+
2627
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2628
+ Processing by OrdersController#show as HTML
2629
+ Parameters: {"id"=>"2"}
2630
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2631
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2632
+  (0.0ms) begin transaction
2633
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 2 LIMIT 1
2634
+ Binary data inserted for `string` type on column `session_id`
2635
+ SQL (0.7ms) INSERT INTO "opay_payments" ("amount", "created_at", "finished", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["amount", 1000.0], ["created_at", Wed, 24 Apr 2013 14:25:36 UTC +00:00], ["finished", false], ["payable_id", 2], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "d8bf541acd87654f3d815aca7140383d"], ["updated_at", Wed, 24 Apr 2013 14:25:36 UTC +00:00]]
2636
+  (1.7ms) commit transaction
2637
+ Rendered orders/show.html.erb within layouts/application (83.4ms)
2638
+ Completed 200 OK in 124ms (Views: 119.9ms | ActiveRecord: 3.0ms)
2639
+
2640
+
2641
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2642
+ Served asset /application.css - 304 Not Modified (0ms)
2643
+
2644
+
2645
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2646
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2647
+
2648
+
2649
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2650
+ Served asset /jquery.js - 304 Not Modified (0ms)
2651
+
2652
+
2653
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2654
+ Served asset /application.js - 304 Not Modified (0ms)
2655
+
2656
+
2657
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:25:36 +0200
2658
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2659
+ Connecting to database specified by database.yml
2660
+
2661
+
2662
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2663
+ Processing by OrdersController#show as HTML
2664
+ Parameters: {"id"=>"2"}
2665
+ Order Load (22.8ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2666
+ Opay::Payment Load (0.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2667
+ Rendered orders/show.html.erb within layouts/application (191.4ms)
2668
+ Completed 200 OK in 588ms (Views: 429.9ms | ActiveRecord: 50.9ms)
2669
+
2670
+
2671
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2672
+ Served asset /scaffold.css - 304 Not Modified (2ms)
2673
+
2674
+
2675
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2676
+ Served asset /jquery_ujs.js - 304 Not Modified (4ms)
2677
+
2678
+
2679
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2680
+ Served asset /jquery.js - 304 Not Modified (4ms)
2681
+
2682
+
2683
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2684
+ Served asset /application.js - 304 Not Modified (5ms)
2685
+
2686
+
2687
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:28:34 +0200
2688
+ Served asset /application.css - 304 Not Modified (2ms)
2689
+
2690
+
2691
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2692
+ Processing by OrdersController#show as HTML
2693
+ Parameters: {"id"=>"2"}
2694
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2695
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2696
+ Rendered orders/show.html.erb within layouts/application (3.5ms)
2697
+ Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.3ms)
2698
+
2699
+
2700
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2701
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2702
+
2703
+
2704
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2705
+ Served asset /jquery.js - 304 Not Modified (0ms)
2706
+
2707
+
2708
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2709
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2710
+
2711
+
2712
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2713
+ Served asset /application.js - 304 Not Modified (0ms)
2714
+
2715
+
2716
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:29:27 +0200
2717
+ Served asset /application.css - 304 Not Modified (0ms)
2718
+
2719
+
2720
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2721
+ Processing by OrdersController#show as HTML
2722
+ Parameters: {"id"=>"2"}
2723
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2724
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2725
+ Rendered orders/show.html.erb within layouts/application (3.3ms)
2726
+ Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.3ms)
2727
+
2728
+
2729
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2730
+ Served asset /application.css - 304 Not Modified (0ms)
2731
+
2732
+
2733
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2734
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2735
+
2736
+
2737
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2738
+ Served asset /jquery.js - 304 Not Modified (0ms)
2739
+
2740
+
2741
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2742
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2743
+
2744
+
2745
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:29:52 +0200
2746
+ Served asset /application.js - 304 Not Modified (0ms)
2747
+
2748
+
2749
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:30:16 +0200
2750
+ Processing by OrdersController#show as HTML
2751
+ Parameters: {"id"=>"2"}
2752
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2753
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2754
+ Rendered orders/show.html.erb within layouts/application (3.4ms)
2755
+ Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)
2756
+
2757
+
2758
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:30:17 +0200
2759
+ Served asset /application.css - 304 Not Modified (0ms)
2760
+
2761
+
2762
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:30:17 +0200
2763
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2764
+
2765
+
2766
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:17 +0200
2767
+ Served asset /application.js - 304 Not Modified (0ms)
2768
+
2769
+
2770
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:17 +0200
2771
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2772
+
2773
+
2774
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:17 +0200
2775
+ Served asset /jquery.js - 304 Not Modified (0ms)
2776
+
2777
+
2778
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:30:54 +0200
2779
+ Processing by OrdersController#show as HTML
2780
+ Parameters: {"id"=>"2"}
2781
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2782
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2783
+ Rendered orders/show.html.erb within layouts/application (1.9ms)
2784
+ Completed 200 OK in 66ms (Views: 63.9ms | ActiveRecord: 0.3ms)
2785
+
2786
+
2787
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:30:55 +0200
2788
+ Served asset /application.css - 304 Not Modified (0ms)
2789
+
2790
+
2791
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:30:55 +0200
2792
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2793
+
2794
+
2795
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:55 +0200
2796
+ Served asset /jquery.js - 304 Not Modified (0ms)
2797
+
2798
+
2799
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:55 +0200
2800
+ Served asset /application.js - 304 Not Modified (0ms)
2801
+
2802
+
2803
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:30:55 +0200
2804
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2805
+
2806
+
2807
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2808
+ Processing by OrdersController#show as HTML
2809
+ Parameters: {"id"=>"2"}
2810
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2811
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2812
+ Rendered orders/show.html.erb within layouts/application (2.9ms)
2813
+ Completed 200 OK in 69ms (Views: 67.8ms | ActiveRecord: 0.3ms)
2814
+
2815
+
2816
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2817
+ Served asset /application.css - 304 Not Modified (0ms)
2818
+
2819
+
2820
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2821
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2822
+
2823
+
2824
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2825
+ Served asset /jquery.js - 304 Not Modified (0ms)
2826
+
2827
+
2828
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2829
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2830
+
2831
+
2832
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:16 +0200
2833
+ Served asset /application.js - 304 Not Modified (0ms)
2834
+
2835
+
2836
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2837
+ Processing by OrdersController#show as HTML
2838
+ Parameters: {"id"=>"2"}
2839
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2840
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2841
+ Rendered orders/show.html.erb within layouts/application (1.5ms)
2842
+ Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.3ms)
2843
+
2844
+
2845
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2846
+ Served asset /application.css - 304 Not Modified (0ms)
2847
+
2848
+
2849
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2850
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2851
+
2852
+
2853
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2854
+ Served asset /application.js - 304 Not Modified (0ms)
2855
+
2856
+
2857
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2858
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2859
+
2860
+
2861
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:31:28 +0200
2862
+ Served asset /jquery.js - 304 Not Modified (0ms)
2863
+
2864
+
2865
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2866
+ Processing by OrdersController#show as HTML
2867
+ Parameters: {"id"=>"2"}
2868
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2869
+ Opay::Payment Load (1.0ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2870
+ Rendered orders/show.html.erb within layouts/application (4.6ms)
2871
+ Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 1.1ms)
2872
+
2873
+
2874
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2875
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2876
+
2877
+
2878
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2879
+ Served asset /application.js - 304 Not Modified (0ms)
2880
+
2881
+
2882
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2883
+ Served asset /jquery.js - 304 Not Modified (0ms)
2884
+
2885
+
2886
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2887
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
2888
+
2889
+
2890
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:34:38 +0200
2891
+ Served asset /application.css - 304 Not Modified (0ms)
2892
+
2893
+
2894
+ Started GET "/orders/2" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2895
+ Processing by OrdersController#show as HTML
2896
+ Parameters: {"id"=>"2"}
2897
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", "2"]]
2898
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 2 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
2899
+ Rendered orders/show.html.erb within layouts/application (2.8ms)
2900
+ Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.3ms)
2901
+
2902
+
2903
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2904
+ Served asset /application.css - 304 Not Modified (0ms)
2905
+
2906
+
2907
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2908
+ Served asset /scaffold.css - 304 Not Modified (0ms)
2909
+
2910
+
2911
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2912
+ Served asset /jquery.js - 304 Not Modified (0ms)
2913
+
2914
+
2915
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2916
+ Served asset /application.js - 304 Not Modified (0ms)
2917
+
2918
+
2919
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-04-24 16:40:46 +0200
2920
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)