nihaopay-ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE +22 -0
  4. data/README.md +344 -0
  5. data/lib/nihaopay-ruby.rb +29 -0
  6. data/lib/nihaopay/configure.rb +14 -0
  7. data/lib/nihaopay/credit_card.rb +27 -0
  8. data/lib/nihaopay/errors.rb +6 -0
  9. data/lib/nihaopay/merchant.rb +47 -0
  10. data/lib/nihaopay/mixins/api.rb +41 -0
  11. data/lib/nihaopay/mixins/queryable.rb +41 -0
  12. data/lib/nihaopay/query.rb +61 -0
  13. data/lib/nihaopay/secure_pay/ali_pay.rb +11 -0
  14. data/lib/nihaopay/secure_pay/base.rb +48 -0
  15. data/lib/nihaopay/secure_pay/union_pay.rb +11 -0
  16. data/lib/nihaopay/secure_pay/we_chat_pay.rb +11 -0
  17. data/lib/nihaopay/transactions/authorize.rb +37 -0
  18. data/lib/nihaopay/transactions/base.rb +78 -0
  19. data/lib/nihaopay/transactions/cancel.rb +28 -0
  20. data/lib/nihaopay/transactions/capture.rb +29 -0
  21. data/lib/nihaopay/transactions/purchase.rb +11 -0
  22. data/lib/nihaopay/transactions/refund.rb +31 -0
  23. data/lib/nihaopay/transactions/release.rb +28 -0
  24. data/lib/nihaopay/util/hash_util.rb +30 -0
  25. data/lib/nihaopay/version.rb +3 -0
  26. data/spec/credit_card_spec.rb +56 -0
  27. data/spec/merchant_spec.rb +142 -0
  28. data/spec/mixins/api_spec.rb +81 -0
  29. data/spec/mixins/queryable_spec.rb +95 -0
  30. data/spec/query_spec.rb +129 -0
  31. data/spec/secure_pay/ali_pay_spec.rb +112 -0
  32. data/spec/secure_pay/union_pay_spec.rb +13 -0
  33. data/spec/secure_pay/we_chat_pay_spec.rb +13 -0
  34. data/spec/spec_helper.rb +7 -0
  35. data/spec/transactions/authorize_spec.rb +115 -0
  36. data/spec/transactions/base_spec.rb +184 -0
  37. data/spec/transactions/cancel_spec.rb +83 -0
  38. data/spec/transactions/capture_spec.rb +85 -0
  39. data/spec/transactions/purchase_spec.rb +7 -0
  40. data/spec/transactions/refund_spec.rb +98 -0
  41. data/spec/transactions/release_spec.rb +83 -0
  42. data/spec/util/hash_util_spec.rb +22 -0
  43. metadata +187 -0
@@ -0,0 +1,83 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::Transactions::Cancel do
4
+ before do
5
+ Nihaopay.test_mode = true
6
+ Nihaopay.token = token
7
+ end
8
+ let(:token) { 'merchanttoken1' }
9
+ let(:attrs) do
10
+ { token: token,
11
+ transaction_id: '2222',
12
+ status: 'success',
13
+ cancelled: true,
14
+ cancel_transaction_id: '1111' }
15
+ end
16
+ let(:cancel_txn) { described_class.new(attrs) }
17
+
18
+ describe '.attr_accessor' do
19
+ subject { cancel_txn }
20
+ it { is_expected.to respond_to :cancelled= }
21
+ it { is_expected.to respond_to :cancelled }
22
+ it { is_expected.to respond_to :cancel_transaction_id= }
23
+ it { is_expected.to respond_to :cancel_transaction_id }
24
+ end
25
+
26
+ describe '.start' do
27
+ before do
28
+ allow(response).to receive(:parsed_response) { parsed_response }
29
+ allow(HTTParty).to receive(:post) { response }
30
+ end
31
+ let(:url) { 'http://api.test.nihaopay.com/v1.1/transactions/1111/cancel' }
32
+ let(:headers) do
33
+ { 'Authorization' => "Bearer #{token}",
34
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
35
+ end
36
+ let(:response) { Object.new }
37
+ let(:parsed_response) do
38
+ { 'id' => '2222',
39
+ 'status' => 'success',
40
+ 'cancelled' => true,
41
+ 'transaction_id' => '1111' }
42
+ end
43
+
44
+ context 'without options' do
45
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: '') }
46
+ after { described_class.start('1111') }
47
+ end
48
+
49
+ context 'with :token in options' do
50
+ let(:options) { { token: 'merchanttoken2' } }
51
+ let(:headers) do
52
+ { 'Authorization' => 'Bearer merchanttoken2',
53
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
54
+ end
55
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: '') }
56
+ after do
57
+ described_class.start('1111', options)
58
+ described_class.instance_variable_set(:@token, nil)
59
+ end
60
+ end
61
+
62
+ describe '.build_from_response!' do
63
+ it 'should return transaction object' do
64
+ txn = described_class.start('1111')
65
+ expect(txn).to be_a Nihaopay::Transactions::Base
66
+ expect(txn.transaction_id).to eq '2222'
67
+ expect(txn.status).to eq 'success'
68
+ expect(txn.cancelled).to be true
69
+ expect(txn.cancel_transaction_id).to eq '1111'
70
+ end
71
+ end
72
+ end
73
+
74
+ describe '.valid_attributes' do
75
+ let(:expectation) { %i(transaction_id status cancelled cancel_transaction_id) }
76
+ it { expect(described_class.valid_attributes).to eq expectation }
77
+ end
78
+
79
+ describe '.response_keys_map' do
80
+ let(:expectation) { { id: :transaction_id, transaction_id: :cancel_transaction_id } }
81
+ it { expect(described_class.response_keys_map).to eq expectation }
82
+ end
83
+ end
@@ -0,0 +1,85 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::Transactions::Capture do
4
+ before(:all) do
5
+ Nihaopay.test_mode = true
6
+ Nihaopay.token = 'merchanttoken1'
7
+ end
8
+ after(:all) { Nihaopay.token = nil }
9
+ let(:token) { 'merchanttoken1' }
10
+ let(:attrs) do
11
+ { token: token,
12
+ transaction_id: '2222',
13
+ status: 'success',
14
+ captured: true,
15
+ capture_transaction_id: '1111' }
16
+ end
17
+ let(:capture_txn) { described_class.new(attrs) }
18
+
19
+ describe '.attr_accessor' do
20
+ subject { capture_txn }
21
+ it { is_expected.to respond_to :captured= }
22
+ it { is_expected.to respond_to :captured }
23
+ it { is_expected.to respond_to :capture_transaction_id= }
24
+ it { is_expected.to respond_to :capture_transaction_id }
25
+ end
26
+
27
+ describe '.start' do
28
+ before do
29
+ allow(response).to receive(:parsed_response) { parsed_response }
30
+ allow(HTTParty).to receive(:post) { response }
31
+ end
32
+ let(:url) { 'http://api.test.nihaopay.com/v1.1/transactions/1111/capture' }
33
+ let(:headers) do
34
+ { 'Authorization' => "Bearer #{token}",
35
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
36
+ end
37
+ let(:body) { 'amount=1000&currency=JPY' }
38
+ let(:response) { Object.new }
39
+ let(:parsed_response) do
40
+ { 'id' => '2222',
41
+ 'status' => 'success',
42
+ 'captured' => true,
43
+ 'transaction_id' => '1111' }
44
+ end
45
+
46
+ context 'without options' do
47
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
48
+ after { described_class.start('1111', 1000, 'JPY') }
49
+ end
50
+
51
+ context 'with :token in options' do
52
+ let(:options) { { token: 'merchanttoken2' } }
53
+ let(:headers) do
54
+ { 'Authorization' => 'Bearer merchanttoken2',
55
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
56
+ end
57
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
58
+ after do
59
+ described_class.start('1111', 1000, 'JPY', options)
60
+ described_class.instance_variable_set(:@token, nil)
61
+ end
62
+ end
63
+
64
+ describe '.build_from_response!' do
65
+ it 'should return transaction object' do
66
+ txn = described_class.start('1111', 1000, 'JPY')
67
+ expect(txn).to be_a Nihaopay::Transactions::Base
68
+ expect(txn.transaction_id).to eq '2222'
69
+ expect(txn.status).to eq 'success'
70
+ expect(txn.captured).to be true
71
+ expect(txn.capture_transaction_id).to eq '1111'
72
+ end
73
+ end
74
+ end
75
+
76
+ describe '.valid_attributes' do
77
+ let(:expectation) { %i(transaction_id status captured capture_transaction_id) }
78
+ it { expect(described_class.valid_attributes).to eq expectation }
79
+ end
80
+
81
+ describe '.response_keys_map' do
82
+ let(:expectation) { { id: :transaction_id, transaction_id: :capture_transaction_id } }
83
+ it { expect(described_class.response_keys_map).to eq expectation }
84
+ end
85
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::Transactions::Purchase do
4
+ describe '.capture_param' do
5
+ it { expect(described_class.capture_param).to be true }
6
+ end
7
+ end
@@ -0,0 +1,98 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::Transactions::Refund do
4
+ before(:all) do
5
+ Nihaopay.test_mode = true
6
+ Nihaopay.token = 'merchanttoken1'
7
+ end
8
+ after(:all) { Nihaopay.token = nil }
9
+ let(:token) { 'merchanttoken1' }
10
+ let(:attrs) do
11
+ { token: token,
12
+ transaction_id: '2222',
13
+ status: 'success',
14
+ refunded: true,
15
+ refund_transaction_id: '1111' }
16
+ end
17
+ let(:refund_txn) { described_class.new(attrs) }
18
+
19
+ describe '.attr_accessor' do
20
+ subject { refund_txn }
21
+ it { is_expected.to respond_to :refunded= }
22
+ it { is_expected.to respond_to :refunded }
23
+ it { is_expected.to respond_to :refund_transaction_id= }
24
+ it { is_expected.to respond_to :refund_transaction_id }
25
+ end
26
+
27
+ describe '.start' do
28
+ before do
29
+ allow(response).to receive(:parsed_response) { parsed_response }
30
+ allow(HTTParty).to receive(:post) { response }
31
+ end
32
+ let(:url) { 'http://api.test.nihaopay.com/v1.1/transactions/1111/refund' }
33
+ let(:headers) do
34
+ { 'Authorization' => "Bearer #{token}",
35
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
36
+ end
37
+ let(:body) { 'amount=1000&currency=JPY' }
38
+ let(:response) { Object.new }
39
+ let(:parsed_response) do
40
+ { 'id' => '2222',
41
+ 'status' => 'success',
42
+ 'refunded' => true,
43
+ 'transaction_id' => '1111' }
44
+ end
45
+
46
+ context 'without options' do
47
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
48
+ after { described_class.start('1111', 1000, 'JPY') }
49
+ end
50
+
51
+ context 'with options' do
52
+ let(:options) { { reason: 'out of stock' } }
53
+ let(:body) { 'reason=out of stock&amount=1000&currency=JPY' }
54
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
55
+ after { described_class.start('1111', 1000, 'JPY', options) }
56
+ end
57
+
58
+ context 'with invalid options' do
59
+ let(:options) { { foo: :bar } }
60
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
61
+ after { described_class.start('1111', 1000, 'JPY', options) }
62
+ end
63
+
64
+ context 'with :token in options' do
65
+ let(:options) { { token: 'merchanttoken2' } }
66
+ let(:headers) do
67
+ { 'Authorization' => 'Bearer merchanttoken2',
68
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
69
+ end
70
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: body) }
71
+ after do
72
+ described_class.start('1111', 1000, 'JPY', options)
73
+ described_class.instance_variable_set(:@token, nil)
74
+ end
75
+ end
76
+
77
+ describe '.build_from_response!' do
78
+ it 'should return transaction object' do
79
+ txn = described_class.start('1111', 1000, 'JPY')
80
+ expect(txn).to be_a Nihaopay::Transactions::Base
81
+ expect(txn.transaction_id).to eq '2222'
82
+ expect(txn.status).to eq 'success'
83
+ expect(txn.refunded).to be true
84
+ expect(txn.refund_transaction_id).to eq '1111'
85
+ end
86
+ end
87
+ end
88
+
89
+ describe '.valid_attributes' do
90
+ let(:expectation) { %i(transaction_id status refunded refund_transaction_id) }
91
+ it { expect(described_class.valid_attributes).to eq expectation }
92
+ end
93
+
94
+ describe '.response_keys_map' do
95
+ let(:expectation) { { id: :transaction_id, transaction_id: :refund_transaction_id } }
96
+ it { expect(described_class.response_keys_map).to eq expectation }
97
+ end
98
+ end
@@ -0,0 +1,83 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::Transactions::Release do
4
+ before do
5
+ Nihaopay.test_mode = true
6
+ Nihaopay.token = token
7
+ end
8
+ let(:token) { 'merchanttoken1' }
9
+ let(:attrs) do
10
+ { token: token,
11
+ transaction_id: '2222',
12
+ status: 'success',
13
+ released: true,
14
+ release_transaction_id: '1111' }
15
+ end
16
+ let(:release_txn) { described_class.new(attrs) }
17
+
18
+ describe '.attr_accessor' do
19
+ subject { release_txn }
20
+ it { is_expected.to respond_to :released= }
21
+ it { is_expected.to respond_to :released }
22
+ it { is_expected.to respond_to :release_transaction_id= }
23
+ it { is_expected.to respond_to :release_transaction_id }
24
+ end
25
+
26
+ describe '.start' do
27
+ before do
28
+ allow(response).to receive(:parsed_response) { parsed_response }
29
+ allow(HTTParty).to receive(:post) { response }
30
+ end
31
+ let(:url) { 'http://api.test.nihaopay.com/v1.1/transactions/1111/release' }
32
+ let(:headers) do
33
+ { 'Authorization' => "Bearer #{token}",
34
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
35
+ end
36
+ let(:response) { Object.new }
37
+ let(:parsed_response) do
38
+ { 'id' => '2222',
39
+ 'status' => 'success',
40
+ 'released' => true,
41
+ 'transaction_id' => '1111' }
42
+ end
43
+
44
+ context 'without options' do
45
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: '') }
46
+ after { described_class.start('1111') }
47
+ end
48
+
49
+ context 'with :token in options' do
50
+ let(:options) { { token: 'merchanttoken2' } }
51
+ let(:headers) do
52
+ { 'Authorization' => 'Bearer merchanttoken2',
53
+ 'Content-Type' => 'application/x-www-form-urlencoded' }
54
+ end
55
+ it { expect(HTTParty).to receive(:post).with(url, headers: headers, body: '') }
56
+ after do
57
+ described_class.start('1111', options)
58
+ described_class.instance_variable_set(:@token, nil)
59
+ end
60
+ end
61
+
62
+ describe '.build_from_response!' do
63
+ it 'should return transaction object' do
64
+ txn = described_class.start('1111')
65
+ expect(txn).to be_a Nihaopay::Transactions::Base
66
+ expect(txn.transaction_id).to eq '2222'
67
+ expect(txn.status).to eq 'success'
68
+ expect(txn.released).to be true
69
+ expect(txn.release_transaction_id).to eq '1111'
70
+ end
71
+ end
72
+ end
73
+
74
+ describe '.valid_attributes' do
75
+ let(:expectation) { %i(transaction_id status released release_transaction_id) }
76
+ it { expect(described_class.valid_attributes).to eq expectation }
77
+ end
78
+
79
+ describe '.response_keys_map' do
80
+ let(:expectation) { { id: :transaction_id, transaction_id: :release_transaction_id } }
81
+ it { expect(described_class.response_keys_map).to eq expectation }
82
+ end
83
+ end
@@ -0,0 +1,22 @@
1
+ require_relative '../spec_helper'
2
+
3
+ describe Nihaopay::HashUtil do
4
+ subject { described_class }
5
+
6
+ describe '::stringify_keys' do
7
+ let(:hash) { { a: 1, 'b' => 2, 3 => 3 } }
8
+ let(:exp) { { 'a' => 1, 'b' => 2, '3' => 3 } }
9
+ it { expect(subject.stringify_keys(hash)).to eq exp }
10
+ end
11
+
12
+ describe '::symbolize_keys' do
13
+ let(:hash) { { a: 1, 'b' => 2, 3 => 3 } }
14
+ let(:exp) { { a: 1, b: 2, 3 => 3 } }
15
+ it { expect(subject.symbolize_keys(hash)).to eq exp }
16
+ end
17
+
18
+ describe '::slice' do
19
+ let(:hash) { { a: 1, 'b' => 2, 3 => 3 } }
20
+ it { expect(subject.slice(hash, :a, :b, 3)).to eq(a: 1, 3 => 3) }
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nihaopay-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - JagdeepSingh
8
+ - Johnny Shields
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-11-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0.13'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0.13'
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rubocop
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '3'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '3'
84
+ - !ruby/object:Gem::Dependency
85
+ name: tzinfo-data
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ description: Ruby library for Nihaopay payment gateway API
99
+ email:
100
+ - jagdeepsingh.fof@gmail.com
101
+ - johnny.shields@gmail.com
102
+ executables: []
103
+ extensions: []
104
+ extra_rdoc_files: []
105
+ files:
106
+ - CHANGELOG.md
107
+ - LICENSE
108
+ - README.md
109
+ - lib/nihaopay-ruby.rb
110
+ - lib/nihaopay/configure.rb
111
+ - lib/nihaopay/credit_card.rb
112
+ - lib/nihaopay/errors.rb
113
+ - lib/nihaopay/merchant.rb
114
+ - lib/nihaopay/mixins/api.rb
115
+ - lib/nihaopay/mixins/queryable.rb
116
+ - lib/nihaopay/query.rb
117
+ - lib/nihaopay/secure_pay/ali_pay.rb
118
+ - lib/nihaopay/secure_pay/base.rb
119
+ - lib/nihaopay/secure_pay/union_pay.rb
120
+ - lib/nihaopay/secure_pay/we_chat_pay.rb
121
+ - lib/nihaopay/transactions/authorize.rb
122
+ - lib/nihaopay/transactions/base.rb
123
+ - lib/nihaopay/transactions/cancel.rb
124
+ - lib/nihaopay/transactions/capture.rb
125
+ - lib/nihaopay/transactions/purchase.rb
126
+ - lib/nihaopay/transactions/refund.rb
127
+ - lib/nihaopay/transactions/release.rb
128
+ - lib/nihaopay/util/hash_util.rb
129
+ - lib/nihaopay/version.rb
130
+ - spec/credit_card_spec.rb
131
+ - spec/merchant_spec.rb
132
+ - spec/mixins/api_spec.rb
133
+ - spec/mixins/queryable_spec.rb
134
+ - spec/query_spec.rb
135
+ - spec/secure_pay/ali_pay_spec.rb
136
+ - spec/secure_pay/union_pay_spec.rb
137
+ - spec/secure_pay/we_chat_pay_spec.rb
138
+ - spec/spec_helper.rb
139
+ - spec/transactions/authorize_spec.rb
140
+ - spec/transactions/base_spec.rb
141
+ - spec/transactions/cancel_spec.rb
142
+ - spec/transactions/capture_spec.rb
143
+ - spec/transactions/purchase_spec.rb
144
+ - spec/transactions/refund_spec.rb
145
+ - spec/transactions/release_spec.rb
146
+ - spec/util/hash_util_spec.rb
147
+ homepage:
148
+ licenses: []
149
+ metadata: {}
150
+ post_install_message:
151
+ rdoc_options: []
152
+ require_paths:
153
+ - lib
154
+ required_ruby_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ requirements: []
165
+ rubyforge_project:
166
+ rubygems_version: 2.6.7
167
+ signing_key:
168
+ specification_version: 4
169
+ summary: Ruby library for Nihaopay payment gateway API
170
+ test_files:
171
+ - spec/credit_card_spec.rb
172
+ - spec/merchant_spec.rb
173
+ - spec/mixins/api_spec.rb
174
+ - spec/mixins/queryable_spec.rb
175
+ - spec/query_spec.rb
176
+ - spec/secure_pay/ali_pay_spec.rb
177
+ - spec/secure_pay/union_pay_spec.rb
178
+ - spec/secure_pay/we_chat_pay_spec.rb
179
+ - spec/spec_helper.rb
180
+ - spec/transactions/authorize_spec.rb
181
+ - spec/transactions/base_spec.rb
182
+ - spec/transactions/cancel_spec.rb
183
+ - spec/transactions/capture_spec.rb
184
+ - spec/transactions/purchase_spec.rb
185
+ - spec/transactions/refund_spec.rb
186
+ - spec/transactions/release_spec.rb
187
+ - spec/util/hash_util_spec.rb