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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cf4fa490bb2ffa077787c252c8238bb02a526f0
4
- data.tar.gz: fa7343f1192807ebcd50df80b4caa50296bdb194
3
+ metadata.gz: a61d550d6ed1d2d1bb2c57513cbf79f720ea34d3
4
+ data.tar.gz: d78c1489e5ec779d56de576a7f98c33356db9034
5
5
  SHA512:
6
- metadata.gz: 9b61339f19ae96a94fdb6b488362ff81e307564985fcea10d6eed42059073eace4b59ddb4c9afc0c446944e6323e29cbc17de368b4e03e009122132913c2ff0a
7
- data.tar.gz: 439cda38ac8ae5c4b8e3c5ab4c5f629bb86bede8a973f34c43aa8906ae98f2f63442f35d854612617d7962b7dee640d809296e4b273c8542eaebf8edd5665941
6
+ metadata.gz: 2525fd394d4ca8ab121a6e9d865daf1250ba8fd17b4b9dc1726e2f13e16e4a2ee7b4013e7a11993ea255885f1d1122e2231667710bd747862256ac12b9eea595
7
+ data.tar.gz: eed41c7c4161f17488f188bbc12c452c4df80ded4580f2583496e9da193e2f5fb010f9e83bfbc73964419e932cf56c97c56c1de92cbbab476961ca3ca2a86213
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  Gemfile.lock
10
10
  .Gemfile.lock
11
11
  tags
12
+ .secrets.yml
@@ -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
@@ -1,3 +1,3 @@
1
1
  module IyziPay
2
- VERSION = '1.0.37'
2
+ VERSION = '1.0.38'
3
3
  end
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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: 'https://www.merchant.com/callback',
66
+ callbackUrl: 'http://requestb.in/1fwf0d91',
67
+ enabledInstallments: [2, 3, 6, 9],
68
68
  buyer: buyer,
69
69
  billingAddress: address,
70
70
  shippingAddress: address,
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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
@@ -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
@@ -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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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 = 'your api key'
9
- @options.secret_key = 'your secret key'
10
- @options.base_url = 'https://sandbox-api.iyzipay.com'
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.37
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-10-28 00:00:00.000000000 Z
12
+ date: 2016-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client