iyzipay-zebramo 1.0.37 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/iyzipay/model/bkm_initialize.rb +1 -0
- data/lib/iyzipay/version.rb +1 -1
- data/spec/api_test_spec.rb +3 -3
- data/spec/approval_spec.rb +3 -3
- data/spec/bin_number_spec.rb +3 -3
- data/spec/bkm_spec.rb +5 -5
- data/spec/cancel_spec.rb +3 -3
- data/spec/checkout_form_spec.rb +3 -3
- data/spec/disapproval_spec.rb +3 -3
- data/spec/installment_spec.rb +3 -3
- data/spec/payment_spec.rb +3 -3
- data/spec/pecco_spec.rb +3 -3
- data/spec/refund_spec.rb +3 -3
- data/spec/retrieve_transactions_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -0
- data/spec/sub_merchant_spec.rb +3 -3
- data/spec/threeds_payment_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a61d550d6ed1d2d1bb2c57513cbf79f720ea34d3
|
4
|
+
data.tar.gz: d78c1489e5ec779d56de576a7f98c33356db9034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2525fd394d4ca8ab121a6e9d865daf1250ba8fd17b4b9dc1726e2f13e16e4a2ee7b4013e7a11993ea255885f1d1122e2231667710bd747862256ac12b9eea595
|
7
|
+
data.tar.gz: eed41c7c4161f17488f188bbc12c452c4df80ded4580f2583496e9da193e2f5fb010f9e83bfbc73964419e932cf56c97c56c1de92cbbab476961ca3ca2a86213
|
data/.gitignore
CHANGED
@@ -17,6 +17,7 @@ module IyziPay
|
|
17
17
|
append(:billingAddress, Address.to_pki_string(request[:billingAddress])).
|
18
18
|
append_array(:basketItems, Basket.to_pki_string(request[:basketItems])).
|
19
19
|
append(:callbackUrl, request[:callbackUrl]).
|
20
|
+
append_array(:enabledInstallments, request[:enabledInstallments]).
|
20
21
|
get_request_string
|
21
22
|
end
|
22
23
|
end
|
data/lib/iyzipay/version.rb
CHANGED
data/spec/api_test_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should test api' do
|
data/spec/approval_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should approve payment item' do
|
data/spec/bin_number_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should retrieve bin number' do
|
data/spec/bkm_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should initialize bkm' do
|
@@ -33,7 +33,6 @@ RSpec.describe 'IyziPay' do
|
|
33
33
|
address: 'Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1',
|
34
34
|
zipCode: '34732'
|
35
35
|
}
|
36
|
-
|
37
36
|
item1 = {
|
38
37
|
id: 'BI101',
|
39
38
|
name: 'Binocular',
|
@@ -64,7 +63,8 @@ RSpec.describe 'IyziPay' do
|
|
64
63
|
price: '1',
|
65
64
|
basketId: 'B67832',
|
66
65
|
paymentGroup: IyziPay::Model::PaymentGroup::PRODUCT,
|
67
|
-
callbackUrl: '
|
66
|
+
callbackUrl: 'http://requestb.in/1fwf0d91',
|
67
|
+
enabledInstallments: [2, 3, 6, 9],
|
68
68
|
buyer: buyer,
|
69
69
|
billingAddress: address,
|
70
70
|
shippingAddress: address,
|
data/spec/cancel_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should cancel payment' do
|
data/spec/checkout_form_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should initialize checkout form' do
|
data/spec/disapproval_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should disapprove payment item' do
|
data/spec/installment_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should retrieve bin number' do
|
data/spec/payment_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should create payment' do
|
data/spec/pecco_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should initialize pecco' do
|
data/spec/refund_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should refund payment' do
|
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should retrieve payout completed transactions' do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require_relative '../lib/IyziPay.rb'
|
2
|
+
require 'yaml'
|
2
3
|
|
3
4
|
RSpec.configure do |config|
|
4
5
|
# rspec-expectations config goes here. You can use an alternate
|
@@ -77,4 +78,8 @@ RSpec.configure do |config|
|
|
77
78
|
# as the one that triggered the failure.
|
78
79
|
Kernel.srand config.seed
|
79
80
|
=end
|
81
|
+
|
82
|
+
# To see more details during testing
|
83
|
+
RestClient.log = 'stdout'
|
84
|
+
|
80
85
|
end
|
data/spec/sub_merchant_spec.rb
CHANGED
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should create personal sub merchant' do
|
@@ -5,9 +5,9 @@ require_relative 'spec_helper'
|
|
5
5
|
RSpec.describe 'IyziPay' do
|
6
6
|
before :all do
|
7
7
|
@options = IyziPay::Options.new
|
8
|
-
@options.api_key = '
|
9
|
-
@options.secret_key = '
|
10
|
-
@options.base_url = '
|
8
|
+
@options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
|
9
|
+
@options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
|
10
|
+
@options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'should create payment with physical and virtual item for standard merchant' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iyzipay-zebramo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iyzico
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|