iyzipay 1.0.39 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/VERSION +1 -1
- data/iyzipay.gemspec +1 -1
- data/lib/iyzipay/iyzipay_resource.rb +1 -1
- data/spec/cancel_spec.rb +1 -1
- data/spec/tls12_test_spec.rb +16 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e711367ebf19b6a6f7ffced82142dee4a017c9f
|
4
|
+
data.tar.gz: 9fd10f2d29e9867f99fae7657f4c52d25922693e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f123ab13f45956c521a5dfe5ac6cb3255bdb7274a3177c7a0add2739c4074edfd3a32f702fb41db16030b928780264ba668b4009f2e81524850410f01b44d89c
|
7
|
+
data.tar.gz: abef9415f542caf8aa553c6b1296f71dcd95166a434a8cbc449655751925e18ba24a974e663edb2e143e4ab014786fbc76a7c3173542eb26af11fcf2d01cea0d
|
data/README.md
CHANGED
@@ -9,6 +9,10 @@ You can sign up for an iyzico account at https://iyzico.com
|
|
9
9
|
* Ruby 1.9.3 or newer
|
10
10
|
* rest-client
|
11
11
|
|
12
|
+
## Note
|
13
|
+
|
14
|
+
Ruby 1.9.3 will not be supported in March 2018 for TLS 1.2 migration. Please upgrade your Ruby version to minimum 2.0.0. If you have any questions, please open an issue on Github or contact us at integration@iyzico.com.
|
15
|
+
|
12
16
|
# Installation
|
13
17
|
|
14
18
|
gem install iyzipay
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.42
|
data/iyzipay.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'iyzipay'
|
6
|
-
s.version = '1.0.
|
6
|
+
s.version = '1.0.42'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.required_ruby_version = '>= 1.9.3'
|
9
9
|
s.summary = %q{iyzipay api ruby client}
|
@@ -15,7 +15,7 @@ module Iyzipay
|
|
15
15
|
random_header_value = random_string(RANDOM_STRING_SIZE)
|
16
16
|
header[:'Authorization'] = "#{prepare_authorization_string(pki_string, random_header_value, options)}"
|
17
17
|
header[:'x-iyzi-rnd'] = "#{random_header_value}"
|
18
|
-
header[:'x-iyzi-client-version'] = 'iyzipay-ruby-1.0.
|
18
|
+
header[:'x-iyzi-client-version'] = 'iyzipay-ruby-1.0.42'
|
19
19
|
end
|
20
20
|
|
21
21
|
header
|
data/spec/cancel_spec.rb
CHANGED
@@ -31,7 +31,7 @@ RSpec.describe 'Iyzipay' do
|
|
31
31
|
expect(cancel['paymentId']).to eq(payment['paymentId'])
|
32
32
|
expect(cancel['price']).to eq(1.10000000)
|
33
33
|
expect(cancel['currency']).to eq('TRY')
|
34
|
-
expect(cancel['authCode']).
|
34
|
+
expect(cancel['authCode']).not_to be_nil
|
35
35
|
rescue
|
36
36
|
$stderr.puts 'oops'
|
37
37
|
raise
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
require_relative 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe 'Iyzipay' do
|
6
|
+
before :all do
|
7
|
+
@options = Iyzipay::Options.new
|
8
|
+
@options.base_url = 'https://sandbox-api-tls12.iyzipay.com/'
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should test tls 1.2 support' do
|
12
|
+
api_test = Iyzipay::Model::ApiTest.new.retrieve(@options)
|
13
|
+
api_test = JSON.parse(api_test)
|
14
|
+
expect(api_test['status']).to eq('success')
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iyzipay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iyzico
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- spec/spec_options.rb
|
156
156
|
- spec/sub_merchant_spec.rb
|
157
157
|
- spec/threeds_payment_spec.rb
|
158
|
+
- spec/tls12_test_spec.rb
|
158
159
|
homepage: http://rubygems.org/gems/iyzipay
|
159
160
|
licenses:
|
160
161
|
- MIT
|
@@ -175,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
176
|
version: '0'
|
176
177
|
requirements: []
|
177
178
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.6.14
|
179
180
|
signing_key:
|
180
181
|
specification_version: 4
|
181
182
|
summary: iyzipay api ruby client
|