opay 1.2.1 → 1.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e8f928442b8ec8574bf991b8cb84f432db244dc
4
- data.tar.gz: d2e823a50f0fb5bfeb025e85585cfd4c3092528b
3
+ metadata.gz: d176e0d6b89beb52d34fb5eedf06726607791e44
4
+ data.tar.gz: fca4f9121ec81d39a7f6e98fb8f1d1caabb17112
5
5
  SHA512:
6
- metadata.gz: bff5fbf5fcbe35af5d6d488a60db457da8ea020b5de434be6baae7254a4e36c5b1c43eea565b96a1a7c175eb6551e51fa58d37b6c46be741e4c8d81d50c2fc91
7
- data.tar.gz: 4efcc5b64ec2b30ccac4158eef60cf6c72d2e67bf353a30393359ccb6ecca570c8ad9b335021808770779ee9ff38be7a0f964bbbc916981906b94a2c41e4cfd4
6
+ metadata.gz: a60dfde636453c6573848d82592a0a30bafe018bbc8ccc9eedb832f9fa6b72505c6593b3da0676fde1ea316edf604bdfddd818f085db563f99051f6a3ee762d8
7
+ data.tar.gz: 973d6f4312ff8743103486f99ce7cef80914425a71ba8c8bcf6683f8aa83f55bd94b4c0d11d37358b5d3c36d49e5884db69d4f2e7651995525c0d8087a754e73
data/README.md CHANGED
@@ -62,10 +62,10 @@ create payment form
62
62
  = f.submit 'pay with payu'
63
63
  ```
64
64
 
65
+ set up online url in payu.pl to: `/opay/payu/online`
66
+
65
67
  ``` haml
66
68
  = opay_form_for(@model_name, provider: :paypal) do |f|
67
69
  = f.payment_info desc: 'Test payment', client_ip: '127.0.0.1'
68
- = f.submit 'pay with payu'
70
+ = f.paypal_submit_tag
69
71
  ```
70
-
71
- set up online url in payu.pl to: `/opay/payu/online`
data/lib/opay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opay
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
Binary file
@@ -6784,3 +6784,245 @@ Migrating to CreateOrders (20130326152550)
6784
6784
   (0.8ms) DELETE FROM "orders";
6785
6785
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6786
6786
   (1.0ms) DELETE FROM sqlite_sequence where name = 'orders';
6787
+  (0.2ms) begin transaction
6788
+ SQL (7.7ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00]]
6789
+  (0.8ms) commit transaction
6790
+ Opay::Payment Load (0.7ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6791
+  (0.1ms) begin transaction
6792
+ Opay::Payment Load (0.5ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'tj9zrSNpzTCWUFygzGqJ' ORDER BY "opay_payments"."id" ASC LIMIT 1
6793
+ SQL (0.9ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "tj9zrSNpzTCWUFygzGqJ"], ["updated_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00]]
6794
+  (0.7ms) commit transaction
6795
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'URex7feKyyspQ4SrqjaK' ORDER BY "opay_payments"."id" ASC LIMIT 1
6796
+  (0.1ms) begin transaction
6797
+ SQL (0.8ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "URex7feKyyspQ4SrqjaK"], ["updated_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00]]
6798
+  (0.7ms) commit transaction
6799
+  (0.9ms) DELETE FROM "opay_payments";
6800
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6801
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6802
+  (0.7ms) DELETE FROM "orders";
6803
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6804
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';
6805
+  (0.1ms) begin transaction
6806
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00]]
6807
+  (0.6ms) commit transaction
6808
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6809
+  (0.1ms) begin transaction
6810
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Vuaq3HA9QpUsdpu75xQT' ORDER BY "opay_payments"."id" ASC LIMIT 1
6811
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "Vuaq3HA9QpUsdpu75xQT"], ["updated_at", Wed, 26 Mar 2014 12:23:58 UTC +00:00]]
6812
+  (1.0ms) commit transaction
6813
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Vuaq3HA9QpUsdpu75xQT' ORDER BY "opay_payments"."id" ASC LIMIT 1
6814
+  (1.0ms) DELETE FROM "opay_payments";
6815
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6816
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6817
+  (4.4ms) DELETE FROM "orders";
6818
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6819
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'orders';
6820
+  (1.0ms) DELETE FROM "opay_payments";
6821
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6822
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6823
+  (0.9ms) DELETE FROM "orders";
6824
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6825
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6826
+  (0.1ms) begin transaction
6827
+ SQL (0.7ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6828
+  (0.8ms) commit transaction
6829
+  (0.9ms) DELETE FROM "opay_payments";
6830
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6831
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6832
+  (0.7ms) DELETE FROM "orders";
6833
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6834
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'orders';
6835
+  (1.0ms) DELETE FROM "opay_payments";
6836
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6837
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6838
+  (0.7ms) DELETE FROM "orders";
6839
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6840
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6841
+  (0.2ms) begin transaction
6842
+ SQL (3.9ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6843
+  (0.6ms) commit transaction
6844
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6845
+  (0.1ms) begin transaction
6846
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zpoemwzgajv1q4tGeUpt' ORDER BY "opay_payments"."id" ASC LIMIT 1
6847
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "zpoemwzgajv1q4tGeUpt"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6848
+  (0.9ms) commit transaction
6849
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zpoemwzgajv1q4tGeUpt' ORDER BY "opay_payments"."id" ASC LIMIT 1
6850
+ Order Load (0.3ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
6851
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6852
+  (0.1ms) begin transaction
6853
+ SQL (0.5ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6854
+  (4.1ms) commit transaction
6855
+  (0.1ms) begin transaction
6856
+ SQL (0.6ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6857
+  (4.5ms) commit transaction
6858
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
6859
+  (0.9ms) DELETE FROM "opay_payments";
6860
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6861
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6862
+  (1.0ms) DELETE FROM "orders";
6863
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6864
+  (4.8ms) DELETE FROM sqlite_sequence where name = 'orders';
6865
+  (0.1ms) begin transaction
6866
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6867
+  (0.6ms) commit transaction
6868
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6869
+  (0.1ms) begin transaction
6870
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Q5y9DZ4pTmCdYHgPmsKL' ORDER BY "opay_payments"."id" ASC LIMIT 1
6871
+ SQL (0.7ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "Q5y9DZ4pTmCdYHgPmsKL"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6872
+  (0.7ms) commit transaction
6873
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Q5y9DZ4pTmCdYHgPmsKL' ORDER BY "opay_payments"."id" ASC LIMIT 1
6874
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
6875
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6876
+  (0.1ms) begin transaction
6877
+ SQL (0.5ms) UPDATE "opay_payments" SET "finished" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["finished", true], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6878
+  (0.6ms) commit transaction
6879
+  (0.1ms) begin transaction
6880
+ SQL (0.4ms) UPDATE "orders" SET "finished" = ?, "updated_at" = ? WHERE "orders"."id" = 1 [["finished", true], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6881
+  (0.6ms) commit transaction
6882
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."id" = ? LIMIT 1 [["id", 1]]
6883
+ Order Load (0.2ms) SELECT "orders".* FROM "orders" WHERE "orders"."id" = ? LIMIT 1 [["id", 1]]
6884
+  (1.1ms) DELETE FROM "opay_payments";
6885
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6886
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6887
+  (0.8ms) DELETE FROM "orders";
6888
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6889
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6890
+  (0.1ms) begin transaction
6891
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6892
+  (0.6ms) commit transaction
6893
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6894
+  (0.1ms) begin transaction
6895
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'HJAnjAyxocWgYzqcmGWr' ORDER BY "opay_payments"."id" ASC LIMIT 1
6896
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "HJAnjAyxocWgYzqcmGWr"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6897
+  (0.7ms) commit transaction
6898
+  (1.0ms) DELETE FROM "opay_payments";
6899
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6900
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6901
+  (1.1ms) DELETE FROM "orders";
6902
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6903
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'orders';
6904
+  (0.4ms) begin transaction
6905
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6906
+  (0.7ms) commit transaction
6907
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6908
+  (0.1ms) begin transaction
6909
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'LQ6Fwk25JYg6uZNZjZqh' ORDER BY "opay_payments"."id" ASC LIMIT 1
6910
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "LQ6Fwk25JYg6uZNZjZqh"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6911
+  (1.0ms) commit transaction
6912
+  (1.3ms) DELETE FROM "opay_payments";
6913
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6914
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6915
+  (3.6ms) DELETE FROM "orders";
6916
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6917
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'orders';
6918
+  (0.1ms) begin transaction
6919
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 2000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6920
+  (0.7ms) commit transaction
6921
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6922
+  (0.1ms) begin transaction
6923
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'G1scHacXHuyVCcMesfzc' ORDER BY "opay_payments"."id" ASC LIMIT 1
6924
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 2000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "G1scHacXHuyVCcMesfzc"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6925
+  (0.7ms) commit transaction
6926
+  (0.9ms) DELETE FROM "opay_payments";
6927
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6928
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6929
+  (0.7ms) DELETE FROM "orders";
6930
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6931
+  (2.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6932
+  (1.2ms) DELETE FROM "opay_payments";
6933
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6934
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6935
+  (0.7ms) DELETE FROM "orders";
6936
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6937
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6938
+  (0.1ms) begin transaction
6939
+ SQL (0.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6940
+  (0.6ms) commit transaction
6941
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6942
+  (0.1ms) begin transaction
6943
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'zokfSy4B3x5Df6APZsfy' ORDER BY "opay_payments"."id" ASC LIMIT 1
6944
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "zokfSy4B3x5Df6APZsfy"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6945
+  (2.5ms) commit transaction
6946
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Dr22gvyLxoWsSQvucNm3' ORDER BY "opay_payments"."id" ASC LIMIT 1
6947
+  (0.1ms) begin transaction
6948
+ SQL (0.5ms) UPDATE "opay_payments" SET "session_id" = ?, "updated_at" = ? WHERE "opay_payments"."id" = 1 [["session_id", "Dr22gvyLxoWsSQvucNm3"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6949
+  (0.9ms) commit transaction
6950
+  (3.9ms) DELETE FROM "opay_payments";
6951
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6952
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6953
+  (0.7ms) DELETE FROM "orders";
6954
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6955
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'orders';
6956
+  (0.2ms) begin transaction
6957
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6958
+  (2.9ms) commit transaction
6959
+  (0.1ms) begin transaction
6960
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'Fu5qBy3WChyNVg6vzb6y' ORDER BY "opay_payments"."id" ASC LIMIT 1
6961
+ SQL (0.5ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "Fu5qBy3WChyNVg6vzb6y"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6962
+  (0.7ms) commit transaction
6963
+  (0.8ms) DELETE FROM "opay_payments";
6964
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6965
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6966
+  (0.8ms) DELETE FROM "orders";
6967
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6968
+  (5.2ms) DELETE FROM sqlite_sequence where name = 'orders';
6969
+  (4.0ms) DELETE FROM "opay_payments";
6970
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6971
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6972
+  (1.3ms) DELETE FROM "orders";
6973
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6974
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
6975
+  (0.1ms) begin transaction
6976
+ SQL (2.5ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6977
+  (3.7ms) commit transaction
6978
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6979
+  (0.2ms) begin transaction
6980
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'xyKDPRSBqH8sqhjhgZbx' ORDER BY "opay_payments"."id" ASC LIMIT 1
6981
+ SQL (0.7ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "xyKDPRSBqH8sqhjhgZbx"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6982
+  (2.3ms) commit transaction
6983
+  (1.0ms) DELETE FROM "opay_payments";
6984
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6985
+  (3.8ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
6986
+  (0.8ms) DELETE FROM "orders";
6987
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6988
+  (3.6ms) DELETE FROM sqlite_sequence where name = 'orders';
6989
+  (0.1ms) begin transaction
6990
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6991
+  (4.1ms) commit transaction
6992
+ Opay::Payment Load (0.3ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
6993
+  (0.2ms) begin transaction
6994
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'H3YsRrdGMcq36zGrtPMy' ORDER BY "opay_payments"."id" ASC LIMIT 1
6995
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "H3YsRrdGMcq36zGrtPMy"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
6996
+  (0.8ms) commit transaction
6997
+  (3.7ms) DELETE FROM "opay_payments";
6998
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
6999
+  (3.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
7000
+  (1.0ms) DELETE FROM "orders";
7001
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7002
+  (6.0ms) DELETE FROM sqlite_sequence where name = 'orders';
7003
+  (0.1ms) begin transaction
7004
+ SQL (0.6ms) INSERT INTO "orders" ("amount", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["name", "first order"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
7005
+  (0.9ms) commit transaction
7006
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."payable_id" = ? AND "opay_payments"."payable_type" = ? LIMIT 1 [["payable_id", 1], ["payable_type", "Order"]]
7007
+  (0.1ms) begin transaction
7008
+ Opay::Payment Load (0.2ms) SELECT "opay_payments".* FROM "opay_payments" WHERE "opay_payments"."session_id" = 'CBcrmkxmHQpUaihcqz6b' ORDER BY "opay_payments"."id" ASC LIMIT 1
7009
+ SQL (0.6ms) INSERT INTO "opay_payments" ("amount", "created_at", "payable_id", "payable_type", "provider", "session_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["amount", 1000], ["created_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00], ["payable_id", 1], ["payable_type", "Order"], ["provider", "payu"], ["session_id", "CBcrmkxmHQpUaihcqz6b"], ["updated_at", Wed, 26 Mar 2014 12:23:59 UTC +00:00]]
7010
+  (0.8ms) commit transaction
7011
+  (1.8ms) DELETE FROM "opay_payments";
7012
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7013
+  (3.7ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
7014
+  (5.2ms) DELETE FROM "orders";
7015
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7016
+  (1.3ms) DELETE FROM sqlite_sequence where name = 'orders';
7017
+  (0.9ms) DELETE FROM "opay_payments";
7018
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7019
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
7020
+  (0.9ms) DELETE FROM "orders";
7021
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7022
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
7023
+  (0.9ms) DELETE FROM "opay_payments";
7024
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7025
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'opay_payments';
7026
+  (0.9ms) DELETE FROM "orders";
7027
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
7028
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'orders';
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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariusz Ołownia
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: sqlite3
28
+ name: activemerchant
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: mysql2
42
+ name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '>='
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: pg
56
+ name: mysql2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '>='
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: activemerchant
70
+ name: pg
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '>='