opay 1.1.6 → 1.2.0

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/opay/application_controller.rb +9 -0
  3. data/app/controllers/opay/paypal_controller.rb +18 -0
  4. data/app/controllers/opay/payu_controller.rb +0 -10
  5. data/app/views/opay/paypal/new.html.erb +16 -0
  6. data/app/views/opay/payu/paygw.html.erb +2 -2
  7. data/config/routes.rb +13 -5
  8. data/lib/generators/opay/templates/opay_config.rb +12 -7
  9. data/lib/opay/configuration.rb +24 -11
  10. data/lib/opay/engine.rb +1 -0
  11. data/lib/opay/form_builder.rb +1 -0
  12. data/lib/opay/helpers.rb +1 -0
  13. data/lib/opay/helpers/paypal_helper.rb +32 -0
  14. data/lib/opay/helpers/payu_helper.rb +3 -3
  15. data/lib/opay/providers.rb +1 -0
  16. data/lib/opay/providers/paypal.rb +73 -0
  17. data/lib/opay/providers/payu.rb +2 -2
  18. data/lib/opay/version.rb +1 -1
  19. data/spec/dummy/app/views/orders/show.html.erb +5 -0
  20. data/spec/dummy/config/initializers/opay_config.rb +13 -6
  21. data/spec/dummy/db/development.sqlite3 +0 -0
  22. data/spec/dummy/db/test.sqlite3 +0 -0
  23. data/spec/dummy/log/development.log +10058 -0
  24. data/spec/dummy/log/test.log +580 -0
  25. data/spec/dummy/spec/models/order_spec.rb +4 -4
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/1ea85615aebd2ae27990868feae9aa76 +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/2295cf953adec16b5ee9f1891269f5da +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/25a5cb9a2d0a475fc7f09c626517df1b +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/294a1df654182f2427ffd13597f68eda +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/2df7c9201dfcf3bb8319bc763dc6325b +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/313b925b52821f6184888a3b9ffbbb7c +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/329e394cdca67727d6c4d9049c4452b0 +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/6b83ae2d64cd4d00a6f99b910407e40a +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/b11db81238a16c37a7191a913cd80492 +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/c0098ce30dbb587afa086c5ac64b44cc +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/c1e69aeb34bdfc9591a57eadb4d93c8b +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/c2db75dd5551a5d99c2ab97a60f5cfef +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/c66353c846781f8e9c594cbfac040854 +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/ca3e51ad763d82159eed2ed7ad0ef3cb +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/cada5222de2e18c7594acdbc2f82effe +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/ec35b2b69abc3f1386f0c1ff13c7d7b6 +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/f9252c283a2d0d999785e397d349845d +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/fd4858ad2420a56b427ccd9d5ec86d31 +0 -0
  53. data/spec/dummy/tmp/pids/server.pid +1 -0
  54. data/spec/lib/opay/providers/payu_spec.rb +16 -16
  55. metadata +74 -6
@@ -0,0 +1,580 @@
1
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateOpayPayments (20130321114023)
5
+  (0.1ms) begin transaction
6
+  (0.4ms) CREATE TABLE "opay_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payable_id" integer, "payable_type" varchar(255), "session_id" varchar(255) NOT NULL, "provider" varchar(255) NOT NULL, "amount" integer NOT NULL, "finished" boolean DEFAULT 'f' NOT NULL, "status" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
+  (0.1ms) CREATE INDEX "index_opay_payments_on_payable_id_and_payable_type" ON "opay_payments" ("payable_id", "payable_type")
8
+  (1.1ms) CREATE UNIQUE INDEX "index_opay_payments_on_session_id" ON "opay_payments" ("session_id")
9
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130321114023"]]
10
+  (1.2ms) commit transaction
11
+ Migrating to CreateOrders (20130326152550)
12
+  (0.2ms) begin transaction
13
+  (0.6ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "amount" varchar(255), "finished" boolean DEFAULT 'f' NOT NULL, "created_at" datetime, "updated_at" datetime) 
14
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130326152550"]]
15
+  (1.0ms) commit transaction
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+  (3.4ms) DELETE FROM "opay_payments";
18
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
19
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
20
+  (0.8ms) DELETE FROM "orders";
21
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
22
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
23
+  (0.9ms) DELETE FROM "opay_payments";
24
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
25
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
26
+  (0.7ms) DELETE FROM "orders";
27
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
28
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
29
+  (0.2ms) begin transaction
30
+ SQL (3.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
31
+  (0.9ms) commit transaction
32
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
33
+  (0.1ms) begin transaction
34
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kQFVbfbQJDzCehiBczKG' ORDER BY "opay_payments"."id" ASC LIMIT 1
35
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "kQFVbfbQJDzCehiBczKG"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
36
+  (0.9ms) commit transaction
37
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '6131HXJkp674s1C76zdo' ORDER BY "opay_payments"."id" ASC LIMIT 1
38
+  (0.1ms) begin transaction
39
+ SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "6131HXJkp674s1C76zdo"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
40
+  (0.8ms) commit transaction
41
+  (0.9ms) DELETE FROM "opay_payments";
42
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
43
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
44
+  (0.7ms) DELETE FROM "orders";
45
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
46
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';
47
+  (1.3ms) DELETE FROM "opay_payments";
48
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
49
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
50
+  (0.8ms) DELETE FROM "orders";
51
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
52
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
53
+  (0.1ms) begin transaction
54
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
55
+  (0.7ms) commit transaction
56
+  (0.1ms) begin transaction
57
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'uUyksHcDAp945tfafE7Y' ORDER BY "opay_payments"."id" ASC LIMIT 1
58
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "uUyksHcDAp945tfafE7Y"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
59
+  (1.1ms) commit transaction
60
+  (1.2ms) DELETE FROM "opay_payments";
61
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
62
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
63
+  (0.7ms) DELETE FROM "orders";
64
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
65
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'orders';
66
+  (1.0ms) DELETE FROM "opay_payments";
67
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
68
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
69
+  (0.9ms) DELETE FROM "orders";
70
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
71
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
72
+  (0.1ms) begin transaction
73
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
74
+  (0.9ms) commit transaction
75
+  (1.2ms) DELETE FROM "opay_payments";
76
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
77
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
78
+  (1.1ms) DELETE FROM "orders";
79
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
80
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'orders';
81
+  (1.0ms) DELETE FROM "opay_payments";
82
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
83
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
84
+  (0.7ms) DELETE FROM "orders";
85
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
86
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
87
+  (0.8ms) DELETE FROM "opay_payments";
88
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
90
+  (1.2ms) DELETE FROM "orders";
91
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
92
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
93
+  (0.1ms) begin transaction
94
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
95
+  (0.6ms) commit transaction
96
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
97
+  (0.1ms) begin transaction
98
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LzzqZmNL7rP5J2vbuycZ' ORDER BY "opay_payments"."id" ASC LIMIT 1
99
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "LzzqZmNL7rP5J2vbuycZ"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
100
+  (0.9ms) commit transaction
101
+  (0.8ms) DELETE FROM "opay_payments";
102
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
103
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
104
+  (1.1ms) DELETE FROM "orders";
105
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
106
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
107
+  (0.2ms) begin transaction
108
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
109
+  (0.8ms) commit transaction
110
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
111
+  (0.0ms) begin transaction
112
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qD4G2ki6VzsA6Gp8dUKx' ORDER BY "opay_payments"."id" ASC LIMIT 1
113
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "qD4G2ki6VzsA6Gp8dUKx"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
114
+  (0.9ms) commit transaction
115
+  (0.9ms) DELETE FROM "opay_payments";
116
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
117
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
118
+  (0.7ms) DELETE FROM "orders";
119
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
120
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'orders';
121
+  (0.1ms) begin transaction
122
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
123
+  (0.8ms) commit transaction
124
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
125
+  (0.0ms) begin transaction
126
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'RCc1isXisTByxPvKVYpk' ORDER BY "opay_payments"."id" ASC LIMIT 1
127
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "RCc1isXisTByxPvKVYpk"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
128
+  (0.8ms) commit transaction
129
+  (1.1ms) DELETE FROM "opay_payments";
130
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
131
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
132
+  (0.8ms) DELETE FROM "orders";
133
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
134
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
135
+  (0.1ms) begin transaction
136
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
137
+  (0.8ms) commit transaction
138
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
139
+  (0.0ms) begin transaction
140
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'yLZwL7t8EobtJtx9Xj8v' ORDER BY "opay_payments"."id" ASC LIMIT 1
141
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "yLZwL7t8EobtJtx9Xj8v"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
142
+  (0.9ms) commit transaction
143
+  (1.1ms) DELETE FROM "opay_payments";
144
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
145
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
146
+  (0.6ms) DELETE FROM "orders";
147
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
148
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
149
+  (0.1ms) begin transaction
150
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
151
+  (0.9ms) commit transaction
152
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
153
+  (0.1ms) begin transaction
154
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'y3y7pvzY7jXQpP24ycqP' ORDER BY "opay_payments"."id" ASC LIMIT 1
155
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "y3y7pvzY7jXQpP24ycqP"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
156
+  (0.7ms) commit transaction
157
+  (1.1ms) DELETE FROM "opay_payments";
158
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
159
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
160
+  (0.8ms) DELETE FROM "orders";
161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
162
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'orders';
163
+  (0.1ms) begin transaction
164
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
165
+  (0.9ms) commit transaction
166
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
167
+  (0.1ms) begin transaction
168
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NvrAM5xT67WUQBpbunWz' ORDER BY "opay_payments"."id" ASC LIMIT 1
169
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "NvrAM5xT67WUQBpbunWz"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
170
+  (0.7ms) commit transaction
171
+  (1.1ms) DELETE FROM "opay_payments";
172
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
173
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
174
+  (0.7ms) DELETE FROM "orders";
175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
176
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
177
+  (0.2ms) begin transaction
178
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
179
+  (0.8ms) commit transaction
180
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
181
+  (0.1ms) begin transaction
182
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'V4UvC6kzCoCutsDymiUR' ORDER BY "opay_payments"."id" ASC LIMIT 1
183
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "V4UvC6kzCoCutsDymiUR"], ["updated_at", Tue, 25 Mar 2014 10:58:41 UTC +00:00]]
184
+  (0.8ms) commit transaction
185
+  (1.0ms) DELETE FROM "opay_payments";
186
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
187
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
188
+  (1.0ms) DELETE FROM "orders";
189
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';
191
+  (3.3ms) DELETE FROM "opay_payments";
192
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
193
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
194
+  (0.7ms) DELETE FROM "orders";
195
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
196
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
197
+  (0.9ms) DELETE FROM "opay_payments";
198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
199
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
200
+  (0.7ms) DELETE FROM "orders";
201
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
202
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
203
+  (0.1ms) begin transaction
204
+ SQL (3.1ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
205
+  (0.8ms) commit transaction
206
+  (1.0ms) DELETE FROM "opay_payments";
207
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
208
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
209
+  (0.7ms) DELETE FROM "orders";
210
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
211
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
212
+  (0.1ms) begin transaction
213
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
214
+  (0.9ms) commit transaction
215
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
216
+  (0.1ms) begin transaction
217
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'byMURdV9Px36BbzQyvzB' ORDER BY "opay_payments"."id" ASC LIMIT 1
218
+ SQL (0.9ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "byMURdV9Px36BbzQyvzB"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
219
+  (1.1ms) commit transaction
220
+  (1.1ms) DELETE FROM "opay_payments";
221
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
222
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
223
+  (0.8ms) DELETE FROM "orders";
224
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
225
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'orders';
226
+  (0.1ms) begin transaction
227
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
228
+  (0.9ms) commit transaction
229
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
230
+  (0.0ms) begin transaction
231
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'p4DjZFTZHEyrDPqszTV5' ORDER BY "opay_payments"."id" ASC LIMIT 1
232
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "p4DjZFTZHEyrDPqszTV5"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
233
+  (0.8ms) commit transaction
234
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'p4DjZFTZHEyrDPqszTV5' ORDER BY "opay_payments"."id" ASC LIMIT 1
235
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]]
236
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
237
+  (0.0ms) begin transaction
238
+ SQL (0.4ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
239
+  (0.9ms) commit transaction
240
+  (0.0ms) begin transaction
241
+ SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
242
+  (0.9ms) commit transaction
243
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
244
+  (1.0ms) DELETE FROM "opay_payments";
245
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
246
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
247
+  (0.7ms) DELETE FROM "orders";
248
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
249
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
250
+  (0.1ms) begin transaction
251
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
252
+  (0.7ms) commit transaction
253
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
254
+  (0.0ms) begin transaction
255
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'WzXE9Pq7EfWhGbDRnaSy' ORDER BY "opay_payments"."id" ASC LIMIT 1
256
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "WzXE9Pq7EfWhGbDRnaSy"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
257
+  (0.8ms) commit transaction
258
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'WzXE9Pq7EfWhGbDRnaSy' ORDER BY "opay_payments"."id" ASC LIMIT 1
259
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]]
260
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
261
+  (0.1ms) begin transaction
262
+ SQL (0.5ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
263
+  (1.0ms) commit transaction
264
+  (0.1ms) begin transaction
265
+ SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
266
+  (0.9ms) commit transaction
267
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
268
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
269
+  (1.1ms) DELETE FROM "opay_payments";
270
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
271
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
272
+  (0.8ms) DELETE FROM "orders";
273
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
274
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'orders';
275
+  (0.1ms) begin transaction
276
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
277
+  (0.9ms) commit transaction
278
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
279
+  (0.0ms) begin transaction
280
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'ALkZGxz9KxmitMxB77Dx' ORDER BY "opay_payments"."id" ASC LIMIT 1
281
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "ALkZGxz9KxmitMxB77Dx"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
282
+  (3.2ms) commit transaction
283
+  (1.5ms) DELETE FROM "opay_payments";
284
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
285
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
286
+  (0.8ms) DELETE FROM "orders";
287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
288
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'orders';
289
+  (0.1ms) begin transaction
290
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
291
+  (0.7ms) commit transaction
292
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
293
+  (0.1ms) begin transaction
294
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'M4FqsU8Dt1qQnFq67biq' ORDER BY "opay_payments"."id" ASC LIMIT 1
295
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "M4FqsU8Dt1qQnFq67biq"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
296
+  (0.9ms) commit transaction
297
+  (1.3ms) DELETE FROM "opay_payments";
298
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
299
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
300
+  (0.8ms) DELETE FROM "orders";
301
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
302
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
303
+  (0.1ms) begin transaction
304
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
305
+  (0.7ms) commit transaction
306
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
307
+  (0.1ms) begin transaction
308
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '2ERtV3jsbvHqGjMJkpgh' ORDER BY "opay_payments"."id" ASC LIMIT 1
309
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "2ERtV3jsbvHqGjMJkpgh"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
310
+  (0.9ms) commit transaction
311
+  (1.3ms) DELETE FROM "opay_payments";
312
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
313
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
314
+  (0.8ms) DELETE FROM "orders";
315
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
316
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
317
+  (0.1ms) begin transaction
318
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
319
+  (0.9ms) commit transaction
320
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
321
+  (0.1ms) begin transaction
322
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'G8utBZfMELhHhvzv5tYp' ORDER BY "opay_payments"."id" ASC LIMIT 1
323
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "G8utBZfMELhHhvzv5tYp"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
324
+  (0.9ms) commit transaction
325
+  (1.1ms) DELETE FROM "opay_payments";
326
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
327
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
328
+  (0.6ms) DELETE FROM "orders";
329
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
330
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';
331
+  (1.1ms) DELETE FROM "opay_payments";
332
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
333
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
334
+  (1.1ms) DELETE FROM "orders";
335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
336
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
337
+  (1.0ms) DELETE FROM "opay_payments";
338
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
340
+  (1.3ms) DELETE FROM "orders";
341
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
342
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
343
+  (0.1ms) begin transaction
344
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
345
+  (0.8ms) commit transaction
346
+  (0.1ms) begin transaction
347
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'NyE8EWQD3iqdQSMj4qYL' ORDER BY "opay_payments"."id" ASC LIMIT 1
348
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "NyE8EWQD3iqdQSMj4qYL"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
349
+  (0.9ms) commit transaction
350
+  (1.0ms) DELETE FROM "opay_payments";
351
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
352
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
353
+  (0.8ms) DELETE FROM "orders";
354
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
355
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'orders';
356
+  (1.1ms) DELETE FROM "opay_payments";
357
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
358
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
359
+  (1.2ms) DELETE FROM "orders";
360
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
361
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
362
+  (0.1ms) begin transaction
363
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
364
+  (0.9ms) commit transaction
365
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
366
+  (0.0ms) begin transaction
367
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'bzyzZT4VCX7c6UwRtVzG' ORDER BY "opay_payments"."id" ASC LIMIT 1
368
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "bzyzZT4VCX7c6UwRtVzG"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
369
+  (1.0ms) commit transaction
370
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'qBUQDAg12Fv4iiygEN9X' ORDER BY "opay_payments"."id" ASC LIMIT 1
371
+  (0.0ms) begin transaction
372
+ SQL (0.3ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "qBUQDAg12Fv4iiygEN9X"], ["updated_at", Tue, 25 Mar 2014 11:01:55 UTC +00:00]]
373
+  (0.9ms) commit transaction
374
+  (0.8ms) DELETE FROM "opay_payments";
375
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
376
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
377
+  (0.7ms) DELETE FROM "orders";
378
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
379
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
380
+  (0.9ms) DELETE FROM "opay_payments";
381
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
382
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
383
+  (0.8ms) DELETE FROM "orders";
384
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
385
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
386
+  (0.1ms) begin transaction
387
+ SQL (3.1ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
388
+  (3.2ms) commit transaction
389
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
390
+  (0.1ms) begin transaction
391
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jNZmC8AZTS54ri86kawg' ORDER BY "opay_payments"."id" ASC LIMIT 1
392
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "jNZmC8AZTS54ri86kawg"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
393
+  (0.7ms) commit transaction
394
+  (1.0ms) DELETE FROM "opay_payments";
395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
396
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
397
+  (0.7ms) DELETE FROM "orders";
398
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
399
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
400
+  (0.1ms) begin transaction
401
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
402
+  (0.9ms) commit transaction
403
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
404
+  (0.1ms) begin transaction
405
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = '3QPSwyD9pYchPeNnxtmL' ORDER BY "opay_payments"."id" ASC LIMIT 1
406
+ SQL (0.4ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "3QPSwyD9pYchPeNnxtmL"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
407
+  (0.9ms) commit transaction
408
+  (1.0ms) DELETE FROM "opay_payments";
409
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
410
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
411
+  (0.7ms) DELETE FROM "orders";
412
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
413
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
414
+  (0.1ms) begin transaction
415
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
416
+  (0.8ms) commit transaction
417
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
418
+  (0.1ms) begin transaction
419
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'bTGthq84MzhMbEx1z2sd' ORDER BY "opay_payments"."id" ASC LIMIT 1
420
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "bTGthq84MzhMbEx1z2sd"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
421
+  (0.9ms) commit transaction
422
+  (1.1ms) DELETE FROM "opay_payments";
423
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
424
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
425
+  (0.7ms) DELETE FROM "orders";
426
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
427
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
428
+  (1.0ms) DELETE FROM "opay_payments";
429
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
430
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
431
+  (0.9ms) DELETE FROM "orders";
432
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
433
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
434
+  (0.1ms) begin transaction
435
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
436
+  (0.6ms) commit transaction
437
+  (0.1ms) begin transaction
438
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'jjrKqEZncwCr5ghTyh58' ORDER BY "opay_payments"."id" ASC LIMIT 1
439
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "jjrKqEZncwCr5ghTyh58"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
440
+  (0.9ms) commit transaction
441
+  (1.0ms) DELETE FROM "opay_payments";
442
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
443
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
444
+  (0.7ms) DELETE FROM "orders";
445
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
446
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
447
+  (0.1ms) begin transaction
448
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
449
+  (0.9ms) commit transaction
450
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
451
+  (0.1ms) begin transaction
452
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'kCehxXh5WEDnDXn54WMa' ORDER BY "opay_payments"."id" ASC LIMIT 1
453
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "kCehxXh5WEDnDXn54WMa"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
454
+  (0.9ms) commit transaction
455
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aDvbxrBciqAGT8RknRF5' ORDER BY "opay_payments"."id" ASC LIMIT 1
456
+  (0.0ms) begin transaction
457
+ SQL (0.4ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "aDvbxrBciqAGT8RknRF5"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
458
+  (0.9ms) commit transaction
459
+  (1.0ms) DELETE FROM "opay_payments";
460
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
461
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
462
+  (0.7ms) DELETE FROM "orders";
463
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
464
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
465
+  (1.2ms) DELETE FROM "opay_payments";
466
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
467
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
468
+  (0.6ms) DELETE FROM "orders";
469
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
470
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
471
+  (1.1ms) DELETE FROM "opay_payments";
472
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
473
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
474
+  (1.2ms) DELETE FROM "orders";
475
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
476
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
477
+  (1.0ms) DELETE FROM "opay_payments";
478
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
479
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
480
+  (1.1ms) DELETE FROM "orders";
481
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
482
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
483
+  (1.0ms) DELETE FROM "opay_payments";
484
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
485
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
486
+  (0.8ms) DELETE FROM "orders";
487
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
488
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
489
+  (1.3ms) DELETE FROM "opay_payments";
490
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
491
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
492
+  (1.1ms) DELETE FROM "orders";
493
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
494
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
495
+  (0.1ms) begin transaction
496
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
497
+  (0.9ms) commit transaction
498
+  (1.2ms) DELETE FROM "opay_payments";
499
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
500
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
501
+  (0.8ms) DELETE FROM "orders";
502
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
503
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
504
+  (0.1ms) begin transaction
505
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
506
+  (0.9ms) commit transaction
507
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
508
+  (0.0ms) begin transaction
509
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aCqomfpiQjcnTCohDzqP' ORDER BY "opay_payments"."id" ASC LIMIT 1
510
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "aCqomfpiQjcnTCohDzqP"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
511
+  (0.9ms) commit transaction
512
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'aCqomfpiQjcnTCohDzqP' ORDER BY "opay_payments"."id" ASC LIMIT 1
513
+ Order Load (0.4ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]]
514
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
515
+  (0.1ms) begin transaction
516
+ SQL (0.5ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
517
+  (0.8ms) commit transaction
518
+  (0.1ms) begin transaction
519
+ SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
520
+  (0.7ms) commit transaction
521
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
522
+  (1.0ms) DELETE FROM "opay_payments";
523
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
524
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
525
+  (1.1ms) DELETE FROM "orders";
526
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
527
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
528
+  (0.1ms) begin transaction
529
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
530
+  (0.8ms) commit transaction
531
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
532
+  (0.0ms) begin transaction
533
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'SLTWTCiXGxUvtVgcHNdR' ORDER BY "opay_payments"."id" ASC LIMIT 1
534
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "SLTWTCiXGxUvtVgcHNdR"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
535
+  (0.7ms) commit transaction
536
+  (0.9ms) DELETE FROM "opay_payments";
537
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
538
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
539
+  (0.8ms) DELETE FROM "orders";
540
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
541
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
542
+  (0.1ms) begin transaction
543
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
544
+  (0.8ms) commit transaction
545
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
546
+  (0.0ms) begin transaction
547
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'XzMnos8e4eacJateE6YE' ORDER BY "opay_payments"."id" ASC LIMIT 1
548
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "XzMnos8e4eacJateE6YE"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
549
+  (0.9ms) commit transaction
550
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'XzMnos8e4eacJateE6YE' ORDER BY "opay_payments"."id" ASC LIMIT 1
551
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? ORDER BY "orders"."id" ASC LIMIT 1 [["id", 1]]
552
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
553
+  (0.1ms) begin transaction
554
+ SQL (0.3ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
555
+  (0.6ms) commit transaction
556
+  (0.1ms) begin transaction
557
+ SQL (0.3ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
558
+  (0.7ms) commit transaction
559
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
560
+ Order Load (0.1ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
561
+  (0.9ms) DELETE FROM "opay_payments";
562
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
563
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
564
+  (1.2ms) DELETE FROM "orders";
565
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
566
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
567
+  (0.1ms) begin transaction
568
+ SQL (0.4ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["name", "first order"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
569
+  (0.7ms) commit transaction
570
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? ORDER BY "opay_payments"."id" ASC LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
571
+  (0.1ms) begin transaction
572
+ Opay::Payment Load (0.1ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LR8ieNnthWkJKyEAXUWk' ORDER BY "opay_payments"."id" ASC LIMIT 1
573
+ SQL (0.3ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "LR8ieNnthWkJKyEAXUWk"], ["updated_at", Tue, 25 Mar 2014 11:05:32 UTC +00:00]]
574
+  (0.9ms) commit transaction
575
+  (1.0ms) DELETE FROM "opay_payments";
576
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
577
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
578
+  (0.6ms) DELETE FROM "orders";
579
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
580
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';