opay 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ Opay.configure do |config|
5
5
  config.pos_id = 999
6
6
  config.pos_auth_key = ''
7
7
  config.key1 = ''
8
- config.key1 = ''
8
+ config.key2 = ''
9
9
 
10
10
  # config.test_mode = true
11
11
  end
@@ -33,7 +33,7 @@ module Opay
33
33
  options[:sig] = Providers::Payu.create_form_sig(options)
34
34
 
35
35
  fields = options.map { |key, val| @template.hidden_field_tag(key, val) }.join("\n")
36
- js = "<script type=\"text/javascript\"><!-- document.forms['payu_payment_form_#{object.id}'].js.value = 1; --></script>".html_safe
36
+ js = "<script type=\"text/javascript\">document.forms['payu_payment_form_#{object.id}'].js.value = 1;</script>"
37
37
 
38
38
  "#{fields}\n#{js}".html_safe
39
39
  end
data/lib/opay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opay
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
Binary file
@@ -11517,3 +11517,607 @@ Binary data inserted for `string` type on column `session_id`
11517
11517
   (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11518
11518
   (1.5ms) DELETE FROM "orders";
11519
11519
   (1.9ms) DELETE FROM sqlite_sequence where name = 'orders';
11520
+  (1.8ms) DELETE FROM "opay_payments";
11521
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11522
+  (1.5ms) DELETE FROM "orders";
11523
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11524
+  (0.1ms) begin transaction
11525
+ SQL (125.2ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:38 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:38 UTC +00:00]]
11526
+  (1.3ms) commit transaction
11527
+ 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
11528
+  (0.1ms) begin transaction
11529
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11530
+ Binary data inserted for `string` type on column `session_id`
11531
+ SQL (1.1ms) 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 16:23:39 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:23:39 UTC +00:00]]
11532
+  (140.1ms) commit transaction
11533
+  (297.9ms) DELETE FROM "opay_payments";
11534
+  (304.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11535
+  (12.4ms) DELETE FROM "orders";
11536
+  (49.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11537
+  (0.1ms) begin transaction
11538
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11539
+  (48.8ms) commit transaction
11540
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11541
+  (0.1ms) begin transaction
11542
+ Order Load (1.0ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11543
+ Binary data inserted for `string` type on column `session_id`
11544
+ SQL (2.1ms) 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 16:23:40 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11545
+  (42.0ms) commit transaction
11546
+  (14.0ms) DELETE FROM "opay_payments";
11547
+  (3.5ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11548
+  (5.3ms) DELETE FROM "orders";
11549
+  (13.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11550
+  (0.1ms) begin transaction
11551
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", nil], ["created_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00], ["name", nil], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11552
+  (27.1ms) commit transaction
11553
+  (1.6ms) DELETE FROM "opay_payments";
11554
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11555
+  (1.3ms) DELETE FROM "orders";
11556
+  (16.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11557
+  (1.9ms) DELETE FROM "opay_payments";
11558
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11559
+  (4.3ms) DELETE FROM "orders";
11560
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11561
+  (36.4ms) DELETE FROM "opay_payments";
11562
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11563
+  (1.3ms) DELETE FROM "orders";
11564
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11565
+  (0.0ms) begin transaction
11566
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11567
+  (1.7ms) commit transaction
11568
+  (0.0ms) begin transaction
11569
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11570
+ Binary data inserted for `string` type on column `session_id`
11571
+ SQL (0.4ms) 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 16:23:40 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11572
+  (1.6ms) commit transaction
11573
+ Opay::Payment Load (2.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11574
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
11575
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11576
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11577
+  (0.0ms) begin transaction
11578
+  (0.3ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:23:40.964032' WHERE "opay_payments"."id" = 1
11579
+  (1.7ms) commit transaction
11580
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
11581
+  (1.9ms) DELETE FROM "opay_payments";
11582
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11583
+  (1.4ms) DELETE FROM "orders";
11584
+  (2.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11585
+  (0.0ms) begin transaction
11586
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11587
+  (1.5ms) commit transaction
11588
+  (0.0ms) begin transaction
11589
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11590
+ Binary data inserted for `string` type on column `session_id`
11591
+ SQL (0.4ms) 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 16:23:40 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:23:40 UTC +00:00]]
11592
+  (1.4ms) commit transaction
11593
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11594
+  (1.8ms) DELETE FROM "opay_payments";
11595
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11596
+  (1.3ms) DELETE FROM "orders";
11597
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11598
+  (0.1ms) begin transaction
11599
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:41 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:41 UTC +00:00]]
11600
+  (2.0ms) commit transaction
11601
+  (0.0ms) begin transaction
11602
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11603
+ Binary data inserted for `string` type on column `session_id`
11604
+ SQL (0.4ms) 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 16:23:41 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:23:41 UTC +00:00]]
11605
+  (1.3ms) commit transaction
11606
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11607
+  (2.4ms) DELETE FROM "opay_payments";
11608
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11609
+  (1.5ms) DELETE FROM "orders";
11610
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11611
+  (1.9ms) DELETE FROM "opay_payments";
11612
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11613
+  (1.3ms) DELETE FROM "orders";
11614
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11615
+  (2.0ms) DELETE FROM "opay_payments";
11616
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11617
+  (1.4ms) DELETE FROM "orders";
11618
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11619
+  (0.0ms) begin transaction
11620
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:23:41 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:23:41 UTC +00:00]]
11621
+  (1.3ms) commit transaction
11622
+  (1.6ms) DELETE FROM "opay_payments";
11623
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11624
+  (1.4ms) DELETE FROM "orders";
11625
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11626
+  (2.3ms) DELETE FROM "opay_payments";
11627
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11628
+  (2.2ms) DELETE FROM "orders";
11629
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11630
+  (3.4ms) DELETE FROM "opay_payments";
11631
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11632
+  (4.5ms) DELETE FROM "orders";
11633
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11634
+  (2.2ms) DELETE FROM "opay_payments";
11635
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11636
+  (43.9ms) DELETE FROM "orders";
11637
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11638
+  (0.1ms) begin transaction
11639
+ SQL (35.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:41 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:41 UTC +00:00]]
11640
+  (1.7ms) commit transaction
11641
+ 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
11642
+  (0.1ms) begin transaction
11643
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11644
+ Binary data inserted for `string` type on column `session_id`
11645
+ SQL (0.6ms) 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 16:25:42 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11646
+  (1.5ms) commit transaction
11647
+  (2.3ms) DELETE FROM "opay_payments";
11648
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11649
+  (1.4ms) DELETE FROM "orders";
11650
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'orders';
11651
+  (0.1ms) begin transaction
11652
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11653
+  (2.2ms) commit transaction
11654
+ 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
11655
+  (0.0ms) begin transaction
11656
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11657
+ Binary data inserted for `string` type on column `session_id`
11658
+ SQL (0.4ms) 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 16:25:42 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11659
+  (1.6ms) commit transaction
11660
+  (1.9ms) DELETE FROM "opay_payments";
11661
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11662
+  (1.7ms) DELETE FROM "orders";
11663
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'orders';
11664
+  (0.1ms) begin transaction
11665
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", nil], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", nil], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11666
+  (1.7ms) commit transaction
11667
+  (1.8ms) DELETE FROM "opay_payments";
11668
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11669
+  (1.3ms) DELETE FROM "orders";
11670
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11671
+  (2.3ms) DELETE FROM "opay_payments";
11672
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11673
+  (1.4ms) DELETE FROM "orders";
11674
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11675
+  (1.6ms) DELETE FROM "opay_payments";
11676
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11677
+  (1.3ms) DELETE FROM "orders";
11678
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11679
+  (0.1ms) begin transaction
11680
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11681
+  (1.4ms) commit transaction
11682
+  (0.1ms) begin transaction
11683
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11684
+ Binary data inserted for `string` type on column `session_id`
11685
+ SQL (0.4ms) 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 16:25:42 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11686
+  (1.3ms) commit transaction
11687
+ 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
11688
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
11689
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11690
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11691
+  (0.0ms) begin transaction
11692
+  (0.3ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:25:42.868456' WHERE "opay_payments"."id" = 1
11693
+  (1.6ms) commit transaction
11694
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
11695
+  (2.2ms) DELETE FROM "opay_payments";
11696
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11697
+  (1.5ms) DELETE FROM "orders";
11698
+  (1.9ms) DELETE FROM sqlite_sequence where name = 'orders';
11699
+  (0.1ms) begin transaction
11700
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11701
+  (1.4ms) commit transaction
11702
+  (0.0ms) begin transaction
11703
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11704
+ Binary data inserted for `string` type on column `session_id`
11705
+ SQL (0.4ms) 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 16:25:42 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11706
+  (1.7ms) commit transaction
11707
+ 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
11708
+  (2.8ms) DELETE FROM "opay_payments";
11709
+  (1.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11710
+  (1.5ms) DELETE FROM "orders";
11711
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'orders';
11712
+  (0.1ms) begin transaction
11713
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11714
+  (3.2ms) commit transaction
11715
+  (0.1ms) begin transaction
11716
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11717
+ Binary data inserted for `string` type on column `session_id`
11718
+ SQL (1.2ms) 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 16:25:42 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11719
+  (1.3ms) commit transaction
11720
+ 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
11721
+  (3.2ms) DELETE FROM "opay_payments";
11722
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11723
+  (4.0ms) DELETE FROM "orders";
11724
+  (2.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11725
+  (2.0ms) DELETE FROM "opay_payments";
11726
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11727
+  (1.3ms) DELETE FROM "orders";
11728
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
11729
+  (1.9ms) DELETE FROM "opay_payments";
11730
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11731
+  (1.3ms) DELETE FROM "orders";
11732
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11733
+  (0.1ms) begin transaction
11734
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:42 UTC +00:00]]
11735
+  (3.2ms) commit transaction
11736
+  (1.6ms) DELETE FROM "opay_payments";
11737
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11738
+  (1.6ms) DELETE FROM "orders";
11739
+  (3.3ms) DELETE FROM sqlite_sequence where name = 'orders';
11740
+  (2.2ms) DELETE FROM "opay_payments";
11741
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11742
+  (1.8ms) DELETE FROM "orders";
11743
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11744
+  (1.8ms) DELETE FROM "opay_payments";
11745
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11746
+  (1.4ms) DELETE FROM "orders";
11747
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11748
+  (0.1ms) begin transaction
11749
+ SQL (40.1ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11750
+  (1.9ms) commit transaction
11751
+  (0.1ms) begin transaction
11752
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11753
+ Binary data inserted for `string` type on column `session_id`
11754
+ SQL (0.6ms) 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 16:25:45 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11755
+  (2.5ms) commit transaction
11756
+ 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
11757
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
11758
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11759
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11760
+  (0.0ms) begin transaction
11761
+  (0.4ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:25:45.291019' WHERE "opay_payments"."id" = 1
11762
+  (1.4ms) commit transaction
11763
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
11764
+  (1.9ms) DELETE FROM "opay_payments";
11765
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11766
+  (1.5ms) DELETE FROM "orders";
11767
+  (2.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11768
+  (0.1ms) begin transaction
11769
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11770
+  (1.5ms) commit transaction
11771
+  (0.0ms) begin transaction
11772
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11773
+ Binary data inserted for `string` type on column `session_id`
11774
+ SQL (0.4ms) 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 16:25:45 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11775
+  (1.7ms) commit transaction
11776
+ 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
11777
+  (1.7ms) DELETE FROM "opay_payments";
11778
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11779
+  (1.5ms) DELETE FROM "orders";
11780
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11781
+  (0.1ms) begin transaction
11782
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11783
+  (1.4ms) commit transaction
11784
+  (0.1ms) begin transaction
11785
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11786
+ Binary data inserted for `string` type on column `session_id`
11787
+ SQL (0.5ms) 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 16:25:45 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11788
+  (1.4ms) commit transaction
11789
+ 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
11790
+  (1.8ms) DELETE FROM "opay_payments";
11791
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11792
+  (1.8ms) DELETE FROM "orders";
11793
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11794
+  (1.7ms) DELETE FROM "opay_payments";
11795
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11796
+  (1.7ms) DELETE FROM "orders";
11797
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11798
+  (1.6ms) DELETE FROM "opay_payments";
11799
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11800
+  (1.4ms) DELETE FROM "orders";
11801
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11802
+  (0.1ms) begin transaction
11803
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11804
+  (1.5ms) commit transaction
11805
+  (126.8ms) DELETE FROM "opay_payments";
11806
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11807
+  (11.3ms) DELETE FROM "orders";
11808
+  (4.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11809
+  (0.1ms) begin transaction
11810
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11811
+  (1.8ms) commit transaction
11812
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11813
+  (0.0ms) begin transaction
11814
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11815
+ Binary data inserted for `string` type on column `session_id`
11816
+ SQL (0.5ms) 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 16:25:45 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11817
+  (1.5ms) commit transaction
11818
+  (2.6ms) DELETE FROM "opay_payments";
11819
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11820
+  (1.5ms) DELETE FROM "orders";
11821
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'orders';
11822
+  (0.1ms) begin transaction
11823
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11824
+  (1.8ms) commit transaction
11825
+ 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
11826
+  (0.0ms) begin transaction
11827
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11828
+ Binary data inserted for `string` type on column `session_id`
11829
+ SQL (0.5ms) 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 16:25:45 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:25:45 UTC +00:00]]
11830
+  (1.6ms) commit transaction
11831
+  (2.1ms) DELETE FROM "opay_payments";
11832
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11833
+  (1.5ms) DELETE FROM "orders";
11834
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11835
+  (2.4ms) DELETE FROM "opay_payments";
11836
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11837
+  (1.4ms) DELETE FROM "orders";
11838
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11839
+  (0.1ms) begin transaction
11840
+ SQL (29.9ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11841
+  (1.5ms) commit transaction
11842
+ 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
11843
+  (0.1ms) begin transaction
11844
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11845
+ Binary data inserted for `string` type on column `session_id`
11846
+ 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 16:26:25 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11847
+  (2.4ms) commit transaction
11848
+  (2.2ms) DELETE FROM "opay_payments";
11849
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11850
+  (1.4ms) DELETE FROM "orders";
11851
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11852
+  (0.3ms) begin transaction
11853
+ SQL (2.7ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11854
+  (1.9ms) commit transaction
11855
+ 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
11856
+  (0.0ms) begin transaction
11857
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11858
+ Binary data inserted for `string` type on column `session_id`
11859
+ SQL (0.5ms) 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 16:26:25 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11860
+  (2.2ms) commit transaction
11861
+  (1.6ms) DELETE FROM "opay_payments";
11862
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11863
+  (1.3ms) DELETE FROM "orders";
11864
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11865
+  (0.1ms) begin transaction
11866
+ SQL (48.2ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", nil], ["created_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00], ["name", nil], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11867
+  (1.4ms) commit transaction
11868
+  (1.6ms) DELETE FROM "opay_payments";
11869
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11870
+  (1.3ms) DELETE FROM "orders";
11871
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11872
+  (1.7ms) DELETE FROM "opay_payments";
11873
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11874
+  (1.3ms) DELETE FROM "orders";
11875
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11876
+  (1.7ms) DELETE FROM "opay_payments";
11877
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11878
+  (1.3ms) DELETE FROM "orders";
11879
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11880
+  (0.0ms) begin transaction
11881
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11882
+  (1.5ms) commit transaction
11883
+  (0.0ms) begin transaction
11884
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11885
+ Binary data inserted for `string` type on column `session_id`
11886
+ SQL (0.4ms) 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 16:26:25 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:25 UTC +00:00]]
11887
+  (1.3ms) commit transaction
11888
+ 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
11889
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
11890
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11891
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11892
+  (0.0ms) begin transaction
11893
+  (0.3ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:26:26.014853' WHERE "opay_payments"."id" = 1
11894
+  (1.6ms) commit transaction
11895
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
11896
+  (4.3ms) DELETE FROM "opay_payments";
11897
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11898
+  (81.8ms) DELETE FROM "orders";
11899
+  (30.2ms) DELETE FROM sqlite_sequence where name = 'orders';
11900
+  (0.1ms) begin transaction
11901
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00]]
11902
+  (2.3ms) commit transaction
11903
+  (0.0ms) begin transaction
11904
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11905
+ Binary data inserted for `string` type on column `session_id`
11906
+ SQL (0.4ms) 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 16:26:26 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00]]
11907
+  (2.3ms) commit transaction
11908
+ 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
11909
+  (2.3ms) DELETE FROM "opay_payments";
11910
+  (1.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11911
+  (1.6ms) DELETE FROM "orders";
11912
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11913
+  (0.1ms) begin transaction
11914
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00]]
11915
+  (1.7ms) commit transaction
11916
+  (0.0ms) begin transaction
11917
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11918
+ Binary data inserted for `string` type on column `session_id`
11919
+ SQL (0.4ms) 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 16:26:26 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00]]
11920
+  (1.3ms) commit transaction
11921
+ 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
11922
+  (2.0ms) DELETE FROM "opay_payments";
11923
+  (2.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11924
+  (1.6ms) DELETE FROM "orders";
11925
+  (2.0ms) DELETE FROM sqlite_sequence where name = 'orders';
11926
+  (2.4ms) DELETE FROM "opay_payments";
11927
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11928
+  (1.5ms) DELETE FROM "orders";
11929
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11930
+  (2.0ms) DELETE FROM "opay_payments";
11931
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11932
+  (1.5ms) DELETE FROM "orders";
11933
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'orders';
11934
+  (0.1ms) begin transaction
11935
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:26 UTC +00:00]]
11936
+  (1.7ms) commit transaction
11937
+  (1.7ms) DELETE FROM "opay_payments";
11938
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11939
+  (1.5ms) DELETE FROM "orders";
11940
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
11941
+  (1.9ms) DELETE FROM "opay_payments";
11942
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11943
+  (1.4ms) DELETE FROM "orders";
11944
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11945
+  (1.9ms) DELETE FROM "opay_payments";
11946
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11947
+  (1.6ms) DELETE FROM "orders";
11948
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11949
+  (0.1ms) begin transaction
11950
+ SQL (5.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11951
+  (1.7ms) commit transaction
11952
+  (0.1ms) begin transaction
11953
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11954
+ Binary data inserted for `string` type on column `session_id`
11955
+ SQL (0.6ms) 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 16:26:28 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11956
+  (12.0ms) commit transaction
11957
+ 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
11958
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
11959
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11960
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
11961
+  (0.0ms) begin transaction
11962
+  (0.4ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:26:28.501289' WHERE "opay_payments"."id" = 1
11963
+  (1.8ms) commit transaction
11964
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
11965
+  (1.9ms) DELETE FROM "opay_payments";
11966
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11967
+  (1.6ms) DELETE FROM "orders";
11968
+  (2.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11969
+  (0.1ms) begin transaction
11970
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11971
+  (1.4ms) commit transaction
11972
+  (0.0ms) begin transaction
11973
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11974
+ Binary data inserted for `string` type on column `session_id`
11975
+ SQL (0.4ms) 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 16:26:28 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11976
+  (1.3ms) commit transaction
11977
+ 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
11978
+  (1.8ms) DELETE FROM "opay_payments";
11979
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11980
+  (1.5ms) DELETE FROM "orders";
11981
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'orders';
11982
+  (0.1ms) begin transaction
11983
+ SQL (0.7ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11984
+  (2.0ms) commit transaction
11985
+  (0.1ms) begin transaction
11986
+ Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
11987
+ Binary data inserted for `string` type on column `session_id`
11988
+ SQL (0.8ms) 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 16:26:28 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
11989
+  (1.7ms) commit transaction
11990
+ 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
11991
+  (2.8ms) DELETE FROM "opay_payments";
11992
+  (2.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11993
+  (1.3ms) DELETE FROM "orders";
11994
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
11995
+  (1.6ms) DELETE FROM "opay_payments";
11996
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
11997
+  (1.4ms) DELETE FROM "orders";
11998
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
11999
+  (33.6ms) DELETE FROM "opay_payments";
12000
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12001
+  (32.4ms) DELETE FROM "orders";
12002
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
12003
+  (0.1ms) begin transaction
12004
+ SQL (0.9ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:28 UTC +00:00]]
12005
+  (2.4ms) commit transaction
12006
+  (2.9ms) DELETE FROM "opay_payments";
12007
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12008
+  (1.8ms) DELETE FROM "orders";
12009
+  (1.9ms) DELETE FROM sqlite_sequence where name = 'orders';
12010
+  (2.1ms) DELETE FROM "opay_payments";
12011
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12012
+  (1.6ms) DELETE FROM "orders";
12013
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
12014
+  (0.1ms) begin transaction
12015
+ SQL (5.2ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:34 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:34 UTC +00:00]]
12016
+  (62.1ms) commit transaction
12017
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
12018
+  (0.1ms) begin transaction
12019
+ Order Load (0.6ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12020
+ Binary data inserted for `string` type on column `session_id`
12021
+ SQL (0.8ms) 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 16:26:35 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12022
+  (2.1ms) commit transaction
12023
+  (2.0ms) DELETE FROM "opay_payments";
12024
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12025
+  (1.4ms) DELETE FROM "orders";
12026
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'orders';
12027
+  (0.1ms) begin transaction
12028
+ SQL (4.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12029
+  (1.8ms) commit transaction
12030
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
12031
+  (0.0ms) begin transaction
12032
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12033
+ Binary data inserted for `string` type on column `session_id`
12034
+ SQL (1.4ms) 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 16:26:35 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12035
+  (2.7ms) commit transaction
12036
+  (1.9ms) DELETE FROM "opay_payments";
12037
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12038
+  (4.1ms) DELETE FROM "orders";
12039
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'orders';
12040
+  (0.1ms) begin transaction
12041
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", nil], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", nil], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12042
+  (87.4ms) commit transaction
12043
+  (1.9ms) DELETE FROM "opay_payments";
12044
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12045
+  (1.5ms) DELETE FROM "orders";
12046
+  (2.0ms) DELETE FROM sqlite_sequence where name = 'orders';
12047
+  (2.0ms) DELETE FROM "opay_payments";
12048
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12049
+  (1.3ms) DELETE FROM "orders";
12050
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
12051
+  (2.4ms) DELETE FROM "opay_payments";
12052
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12053
+  (1.6ms) DELETE FROM "orders";
12054
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
12055
+  (0.1ms) begin transaction
12056
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12057
+  (1.7ms) commit transaction
12058
+  (0.0ms) begin transaction
12059
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12060
+ Binary data inserted for `string` type on column `session_id`
12061
+ SQL (0.4ms) 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 16:26:35 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12062
+  (2.3ms) commit transaction
12063
+ 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
12064
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'a7deb9a6840e764b4dac3ce9469a788c' LIMIT 1
12065
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12066
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
12067
+  (0.0ms) begin transaction
12068
+  (0.4ms) UPDATE "opay_payments" SET "finished" = 't', "updated_at" = '2013-04-24 16:26:35.435600' WHERE "opay_payments"."id" = 1
12069
+  (1.2ms) commit transaction
12070
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
12071
+  (68.5ms) DELETE FROM "opay_payments";
12072
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12073
+  (2.0ms) DELETE FROM "orders";
12074
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'orders';
12075
+  (0.1ms) begin transaction
12076
+ SQL (0.8ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12077
+  (2.2ms) commit transaction
12078
+  (0.0ms) begin transaction
12079
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12080
+ Binary data inserted for `string` type on column `session_id`
12081
+ SQL (0.4ms) 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 16:26:35 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12082
+  (1.7ms) commit transaction
12083
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
12084
+  (2.9ms) DELETE FROM "opay_payments";
12085
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12086
+  (1.5ms) DELETE FROM "orders";
12087
+  (1.5ms) DELETE FROM sqlite_sequence where name = 'orders';
12088
+  (0.1ms) begin transaction
12089
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12090
+  (6.3ms) commit transaction
12091
+  (0.1ms) begin transaction
12092
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = 1 LIMIT 1
12093
+ Binary data inserted for `string` type on column `session_id`
12094
+ 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 16:26:35 UTC +00:00], ["finished", false], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "a7deb9a6840e764b4dac3ce9469a788c"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12095
+  (2.0ms) commit transaction
12096
+ Opay::Payment Load (0.4ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = 1 AND "opay_payments"."payable_type" = 'Order' LIMIT 1
12097
+  (3.3ms) DELETE FROM "opay_payments";
12098
+  (1.4ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12099
+  (1.7ms) DELETE FROM "orders";
12100
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'orders';
12101
+  (2.4ms) DELETE FROM "opay_payments";
12102
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12103
+  (1.9ms) DELETE FROM "orders";
12104
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
12105
+  (2.6ms) DELETE FROM "opay_payments";
12106
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12107
+  (2.1ms) DELETE FROM "orders";
12108
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
12109
+  (0.1ms) begin transaction
12110
+ SQL (0.7ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 24 Apr 2013 16:26:35 UTC +00:00]]
12111
+  (1.6ms) commit transaction
12112
+  (2.2ms) DELETE FROM "opay_payments";
12113
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12114
+  (1.4ms) DELETE FROM "orders";
12115
+  (1.7ms) DELETE FROM sqlite_sequence where name = 'orders';
12116
+  (2.1ms) DELETE FROM "opay_payments";
12117
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12118
+  (5.9ms) DELETE FROM "orders";
12119
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
12120
+  (9.9ms) DELETE FROM "opay_payments";
12121
+  (6.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
12122
+  (17.7ms) DELETE FROM "orders";
12123
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'orders';
@@ -43,19 +43,21 @@ module Opay
43
43
  options[:last_name] = 'Kowalski'
44
44
  options[:email] = 'kowalski@gmail.com'
45
45
 
46
- options[:pos_id] = '123457'
47
- options[:pos_auth_key] = 'DiEKzTD'
48
- options[:session_id] = '2af5c662cab479e5471ca76326a57563'
46
+ options[:pos_id] = '122177'
47
+ options[:pos_auth_key] = 'qKoC8JK'
48
+ options[:session_id] = 'a7deb9a6840e764b4dac3ce9469a788c'
49
49
 
50
- options[:amount] = 1000
51
- options[:desc] = 'Payment description'
50
+ options[:amount] = 100
51
+ options[:desc] = 'Test payment'
52
52
  options[:client_ip] = '127.0.0.1'
53
53
  options[:js] = 0
54
- options[:ts] = '1366818311'
54
+ options[:ts] = '1366819972'
55
55
 
56
56
  options[:pay_type] = 't'
57
57
 
58
- subject.class_eval { create_form_sig(options) }.should eq '242fa2985eaab1b14c0ceb66d5bd76a2'
58
+ Opay.config.key1 = 'acd63ab0226ee883365718abefd6147c'
59
+
60
+ subject.class_eval { create_form_sig(options) }.should eq 'f3ef26044eef9400342cc0b514bd3cc5'
59
61
  end
60
62
 
61
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70163206947480 !ruby/object:Gem::Requirement
16
+ requirement: &70211315819660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.13
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70163206947480
24
+ version_requirements: *70211315819660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70163206945800 !ruby/object:Gem::Requirement
27
+ requirement: &70211315818040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70163206945800
35
+ version_requirements: *70211315818040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mysql2
38
- requirement: &70163206943760 !ruby/object:Gem::Requirement
38
+ requirement: &70211316084800 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70163206943760
46
+ version_requirements: *70211316084800
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pg
49
- requirement: &70163206941580 !ruby/object:Gem::Requirement
49
+ requirement: &70211316084380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70163206941580
57
+ version_requirements: *70211316084380
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec-rails
60
- requirement: &70163206920780 !ruby/object:Gem::Requirement
60
+ requirement: &70211316083960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70163206920780
68
+ version_requirements: *70211316083960
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: factory_girl_rails
71
- requirement: &70163206917320 !ruby/object:Gem::Requirement
71
+ requirement: &70211316083540 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70163206917320
79
+ version_requirements: *70211316083540
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: shoulda
82
- requirement: &70163210842180 !ruby/object:Gem::Requirement
82
+ requirement: &70211316083120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70163210842180
90
+ version_requirements: *70211316083120
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &70163210840640 !ruby/object:Gem::Requirement
93
+ requirement: &70211316082700 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70163210840640
101
+ version_requirements: *70211316082700
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: database_cleaner
104
- requirement: &70163210839160 !ruby/object:Gem::Requirement
104
+ requirement: &70211316082280 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70163210839160
112
+ version_requirements: *70211316082280
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: capybara
115
- requirement: &70163210837840 !ruby/object:Gem::Requirement
115
+ requirement: &70211316081860 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70163210837840
123
+ version_requirements: *70211316081860
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: guard-rspec
126
- requirement: &70163210836300 !ruby/object:Gem::Requirement
126
+ requirement: &70211316081440 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70163210836300
134
+ version_requirements: *70211316081440
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rb-fsevent
137
- requirement: &70163210835360 !ruby/object:Gem::Requirement
137
+ requirement: &70211316081020 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70163210835360
145
+ version_requirements: *70211316081020
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: spork
148
- requirement: &70163210834700 !ruby/object:Gem::Requirement
148
+ requirement: &70211316080600 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70163210834700
156
+ version_requirements: *70211316080600
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: guard-spork
159
- requirement: &70163210834200 !ruby/object:Gem::Requirement
159
+ requirement: &70211316080180 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70163210834200
167
+ version_requirements: *70211316080180
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: terminal-notifier-guard
170
- requirement: &70163206858920 !ruby/object:Gem::Requirement
170
+ requirement: &70211316079760 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *70163206858920
178
+ version_requirements: *70211316079760
179
179
  description: Payu (polish payment service) rails engine.
180
180
  email:
181
181
  - ollownia@gmail.com