gmo_payment 0.0.1 → 0.0.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 +5 -5
- data/.travis.yml +7 -2
- data/CHANGELOG.md +7 -2
- data/Gemfile +4 -0
- data/README.md +20 -22
- data/lib/gmo_payment/client.rb +1 -1
- data/lib/gmo_payment/version.rb +1 -1
- data/spec/cassettes/GmoPayment_Client/_auth_to_sales/return_6_items.yml +22 -22
- data/spec/cassettes/GmoPayment_Client/_change_tran/return_6_items.yml +22 -22
- data/spec/cassettes/GmoPayment_Client/_delete_card/return_1_items.yml +16 -16
- data/spec/cassettes/GmoPayment_Client/_delete_member/return_1_items.yml +12 -12
- data/spec/cassettes/GmoPayment_Client/_delete_tran/return_6_items.yml +22 -22
- data/spec/cassettes/GmoPayment_Client/_entry_tran/return_2_items.yml +6 -6
- data/spec/cassettes/GmoPayment_Client/_entry_tran_btc/return_2_items.yml +7 -7
- data/spec/cassettes/GmoPayment_Client/_exec_tran/return_12_items.yml +17 -17
- data/spec/cassettes/GmoPayment_Client/_exec_tran_3d/return_4_items.yml +12 -12
- data/spec/cassettes/GmoPayment_Client/_exec_tran_btc/return_3_items.yml +14 -14
- data/spec/cassettes/GmoPayment_Client/_exec_tran_member/return_12_items.yml +29 -28
- data/spec/cassettes/GmoPayment_Client/_exec_tran_member_3d/return_4_items.yml +23 -23
- data/spec/cassettes/GmoPayment_Client/_get_rate_btc/return_1_item.yml +4 -4
- data/spec/cassettes/GmoPayment_Client/_re_exec_tran/return_6_items.yml +27 -27
- data/spec/cassettes/GmoPayment_Client/_save_card/return_3_items.yml +11 -11
- data/spec/cassettes/GmoPayment_Client/_save_member/return_1_items.yml +6 -6
- data/spec/cassettes/GmoPayment_Client/_save_traded_card/return_3_items.yml +34 -33
- data/spec/cassettes/GmoPayment_Client/_search_card/return_7_items.yml +16 -16
- data/spec/cassettes/GmoPayment_Client/_search_member/return_3_items.yml +12 -12
- data/spec/cassettes/GmoPayment_Client/_search_trade/return_21_items.yml +12 -12
- data/spec/cassettes/GmoPayment_Client/_search_trade_btc/return_11_items.yml +13 -13
- data/spec/cassettes/GmoPayment_Client/_secure_tran/return_11_items.yml +26 -26
- data/spec/cassettes/GmoPayment_Client/_update_card/return_3_items.yml +16 -16
- data/spec/cassettes/GmoPayment_Client/_update_member/return_1_items.yml +12 -12
- data/spec/gmo_payment/client_spec.rb +66 -29
- data/spec/gmo_payment/errors_spec.rb +1 -1
- metadata +3 -4
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
require 'spec_helper'
|
|
3
3
|
|
|
4
|
+
is_cassette_available = -> { VCR.current_cassette.originally_recorded_at }
|
|
5
|
+
uuid = -> (name:, index: 0) { YAML.load_file(VCR.current_cassette.file)['http_interactions'][index]['request']['body']['string'].match(/#{GmoPayment::GLOSSARY[name]}=([^&]+)/)[1] }
|
|
6
|
+
|
|
4
7
|
describe GmoPayment::Client, :vcr do
|
|
5
8
|
describe '#call' do
|
|
6
9
|
before { GmoPayment.reset! }
|
|
@@ -102,7 +105,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
102
105
|
|
|
103
106
|
describe '#entry_tran' do
|
|
104
107
|
let(:call_method) { '#entry_tran' }
|
|
105
|
-
let(:order_id) {
|
|
108
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
106
109
|
it 'return 2 items' do
|
|
107
110
|
args = {
|
|
108
111
|
:order_id => order_id,
|
|
@@ -116,7 +119,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
116
119
|
|
|
117
120
|
describe '#exec_tran' do
|
|
118
121
|
let(:call_method) { '#exec_tran' }
|
|
119
|
-
let(:order_id) {
|
|
122
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
120
123
|
it 'return 12 items' do
|
|
121
124
|
args1 = {
|
|
122
125
|
:order_id => order_id,
|
|
@@ -153,7 +156,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
153
156
|
|
|
154
157
|
describe '#exec_tran_3d' do
|
|
155
158
|
let(:call_method) { '#exec_tran_3d' }
|
|
156
|
-
let(:order_id) {
|
|
159
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
157
160
|
it 'return 4 items' do
|
|
158
161
|
args1 = {
|
|
159
162
|
:order_id => order_id,
|
|
@@ -188,7 +191,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
188
191
|
|
|
189
192
|
describe '#secure_tran' do
|
|
190
193
|
let(:call_method) { '#secure_tran' }
|
|
191
|
-
let(:order_id) {
|
|
194
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
192
195
|
it 'return 11 items' do
|
|
193
196
|
args1 = {
|
|
194
197
|
:order_id => order_id,
|
|
@@ -216,8 +219,42 @@ describe GmoPayment::Client, :vcr do
|
|
|
216
219
|
client.exec_tran_3d(args2)
|
|
217
220
|
# After the operation in the browser, "MD" and "PaRes" will be returned.
|
|
218
221
|
args3 = {
|
|
219
|
-
:md => "
|
|
220
|
-
:pa_res => "
|
|
222
|
+
:md => "7aacaf1ed56f6de279f1dbdf71c1caf2",
|
|
223
|
+
:pa_res => "eJydVlmTqkoSfvdXdPR9NM5hVzhBe6NYRBCUfXtDQPZFQUF//aD27dNzYiJmYogAqpKsLzO/zEqK
|
|
224
|
+
/nusyrdrfO6ypv54R37C729xHTZRVicf75a5/kG+v3V9UEdB2dTxx3vdvP+9os30HMecEYeXc7yi
|
|
225
|
+
lbjrgiR+y6KPdzXQ4xNCoEsChgl0sYSxabTAUXgBE9T0gEmCxN9XtAr0uHuucAlHIh3ZPgqssUcj
|
|
226
|
+
3KpcWAD8GgAAT4qfvq0m136iNPTPdDJ6DtOg7ld0EJ4YcbfCERTDCRr6nNJVfBa51VO4WJIU/Pn5
|
|
227
|
+
Jaah3+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EPHa/p
|
|
252
|
+
Bgd2MyYpTmmRCdQAP+pl+v3sWaDxQFuIhIVqUn0d0YUgl5hvgmOBwOOYbw9GZl9VuFyetAuHe+Qg
|
|
253
|
+
lOPUcLDZfLF3l1h3nd/6Pgpw6Ux57qgvh0uvc4slr4rXrS9d7f0cRta9aVqIUl/ztVxzJrHl50OW
|
|
254
|
+
HDQqbVNCaExiRmRedoXh5pC6J4Fhwr0MNQKC96eOL7GzjS5MNdwtSInJjL14BMdwN7Y+EUmErebH
|
|
255
|
+
eQZ21OnicQv4ikv6TDT0kh1btdjwVHgfVHeL55c5J+VibUT3WozWVXxU/b0/vylnJlneMO1O3Fyw
|
|
256
|
+
GBdeSJhC1SFUYRxitfXkWZrEmNEcudS5MoOm79jQz/ehe6wchNzKrZdepWXhq0V+YzeodMT4K+wu
|
|
257
|
+
tIo/bOLjUnu09z9790vy6uvQV6///Rd4nj+fh+bHqen7YfpfuDC/VA=="
|
|
221
258
|
}
|
|
222
259
|
response = client.secure_tran(args3)
|
|
223
260
|
expect(response.order_id).to eq(order_id)
|
|
@@ -236,7 +273,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
236
273
|
|
|
237
274
|
describe '#save_member' do
|
|
238
275
|
let(:call_method) { '#save_member' }
|
|
239
|
-
let(:member_id) {
|
|
276
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
240
277
|
it 'return 1 items' do
|
|
241
278
|
args = {
|
|
242
279
|
:member_id => member_id
|
|
@@ -248,7 +285,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
248
285
|
|
|
249
286
|
describe '#update_member' do
|
|
250
287
|
let(:call_method) { '#update_member' }
|
|
251
|
-
let(:member_id) {
|
|
288
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
252
289
|
it 'return 1 items' do
|
|
253
290
|
member_name_old = 'old_name'
|
|
254
291
|
member_name_new = 'new_name'
|
|
@@ -268,7 +305,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
268
305
|
|
|
269
306
|
describe '#delete_member' do
|
|
270
307
|
let(:call_method) { '#delete_member' }
|
|
271
|
-
let(:member_id) {
|
|
308
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
272
309
|
it 'return 1 items' do
|
|
273
310
|
args1 = {
|
|
274
311
|
:member_id => member_id
|
|
@@ -284,7 +321,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
284
321
|
|
|
285
322
|
describe '#search_member' do
|
|
286
323
|
let(:call_method) { '#search_member' }
|
|
287
|
-
let(:member_id) {
|
|
324
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
288
325
|
it 'return 3 items' do
|
|
289
326
|
member_name = 'member_name'
|
|
290
327
|
args1 = {
|
|
@@ -304,7 +341,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
304
341
|
|
|
305
342
|
describe '#save_card' do
|
|
306
343
|
let(:call_method) { '#save_card' }
|
|
307
|
-
let(:member_id) {
|
|
344
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
308
345
|
it 'return 3 items' do
|
|
309
346
|
args1 = {
|
|
310
347
|
:member_id => member_id
|
|
@@ -324,7 +361,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
324
361
|
|
|
325
362
|
describe '#update_card' do
|
|
326
363
|
let(:call_method) { '#update_card' }
|
|
327
|
-
let(:member_id) {
|
|
364
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
328
365
|
it 'return 3 items' do
|
|
329
366
|
args1 = {
|
|
330
367
|
:member_id => member_id
|
|
@@ -351,7 +388,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
351
388
|
|
|
352
389
|
describe '#delete_card' do
|
|
353
390
|
let(:call_method) { '#delete_card' }
|
|
354
|
-
let(:member_id) {
|
|
391
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
355
392
|
it 'return 1 items' do
|
|
356
393
|
args1 = {
|
|
357
394
|
:member_id => member_id
|
|
@@ -374,7 +411,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
374
411
|
|
|
375
412
|
describe '#search_card' do
|
|
376
413
|
let(:call_method) { '#search_card' }
|
|
377
|
-
let(:member_id) {
|
|
414
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
378
415
|
it 'return 7 items' do
|
|
379
416
|
args1 = {
|
|
380
417
|
:member_id => member_id
|
|
@@ -403,8 +440,8 @@ describe GmoPayment::Client, :vcr do
|
|
|
403
440
|
|
|
404
441
|
describe '#exec_tran_member' do
|
|
405
442
|
let(:call_method) { '#exec_tran_member' }
|
|
406
|
-
let(:
|
|
407
|
-
let(:
|
|
443
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
444
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id, index: 2) : SecureRandom.hex(27/2) }
|
|
408
445
|
it 'return 12 items' do
|
|
409
446
|
args1 = {
|
|
410
447
|
:member_id => member_id
|
|
@@ -451,8 +488,8 @@ describe GmoPayment::Client, :vcr do
|
|
|
451
488
|
|
|
452
489
|
describe '#exec_tran_member_3d' do
|
|
453
490
|
let(:call_method) { '#exec_tran_member_3d' }
|
|
454
|
-
let(:
|
|
455
|
-
let(:
|
|
491
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
492
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id, index: 2) : SecureRandom.hex(27/2) }
|
|
456
493
|
it 'return 4 items' do
|
|
457
494
|
args1 = {
|
|
458
495
|
:member_id => member_id
|
|
@@ -495,7 +532,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
495
532
|
|
|
496
533
|
describe '#delete_tran' do
|
|
497
534
|
let(:call_method) { '#delete_tran' }
|
|
498
|
-
let(:order_id) {
|
|
535
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
499
536
|
it 'return 6 items' do
|
|
500
537
|
args1 = {
|
|
501
538
|
:order_id => order_id,
|
|
@@ -532,7 +569,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
532
569
|
|
|
533
570
|
describe '#re_exec_tran' do
|
|
534
571
|
let(:call_method) { '#re_exec_tran' }
|
|
535
|
-
let(:order_id) {
|
|
572
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
536
573
|
it 'return 6 items' do
|
|
537
574
|
args1 = {
|
|
538
575
|
:order_id => order_id,
|
|
@@ -577,7 +614,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
577
614
|
|
|
578
615
|
describe '#auth_to_sales' do
|
|
579
616
|
let(:call_method) { '#auth_to_sales' }
|
|
580
|
-
let(:order_id) {
|
|
617
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
581
618
|
it 'return 6 items' do
|
|
582
619
|
amount = 1
|
|
583
620
|
args1 = {
|
|
@@ -615,7 +652,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
615
652
|
|
|
616
653
|
describe '#change_tran' do
|
|
617
654
|
let(:call_method) { '#change_tran' }
|
|
618
|
-
let(:order_id) {
|
|
655
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
619
656
|
it 'return 6 items' do
|
|
620
657
|
amount_old = 1
|
|
621
658
|
amount_new = 2
|
|
@@ -655,7 +692,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
655
692
|
|
|
656
693
|
describe '#search_trade' do
|
|
657
694
|
let(:call_method) { '#search_trade' }
|
|
658
|
-
let(:order_id) {
|
|
695
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
659
696
|
it 'return 21 items' do
|
|
660
697
|
args1 = {
|
|
661
698
|
:order_id => order_id,
|
|
@@ -692,8 +729,8 @@ describe GmoPayment::Client, :vcr do
|
|
|
692
729
|
|
|
693
730
|
describe '#save_traded_card' do
|
|
694
731
|
let(:call_method) { '#save_traded_card' }
|
|
695
|
-
let(:
|
|
696
|
-
let(:
|
|
732
|
+
let(:member_id) { is_cassette_available.call ? uuid.call(name: :member_id) : SecureRandom.uuid }
|
|
733
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order, index: 1) : SecureRandom.hex(27/2) }
|
|
697
734
|
it 'return 3 items' do
|
|
698
735
|
args1 = {
|
|
699
736
|
:member_id => member_id
|
|
@@ -723,14 +760,14 @@ describe GmoPayment::Client, :vcr do
|
|
|
723
760
|
}
|
|
724
761
|
response = client.save_traded_card(args4)
|
|
725
762
|
expect(response.card_seq).to eq('0') | eq('1') | eq('2') | eq('3') | eq('4')
|
|
726
|
-
expect(response.card_no).to eq(card_no_n_mask)
|
|
763
|
+
expect(response.card_no).to eq(card_no_n_mask) # [FIXME] expect(response.card_no).to eq(card_no_n_mask.sub(/(\*)+(\d)+/) { $1 * (16 - 4) + $2 * 4 })
|
|
727
764
|
expect(response.forward).to eq(res2.forward)
|
|
728
765
|
end
|
|
729
766
|
end
|
|
730
767
|
|
|
731
768
|
describe '#entry_tran_btc' do
|
|
732
769
|
let(:call_method) { '#entry_tran_btc' }
|
|
733
|
-
let(:order_id) {
|
|
770
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
734
771
|
it 'return 2 items' do
|
|
735
772
|
args = {
|
|
736
773
|
:order_id => order_id,
|
|
@@ -744,7 +781,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
744
781
|
|
|
745
782
|
describe '#exec_tran_btc' do
|
|
746
783
|
let(:call_method) { '#exec_tran_btc' }
|
|
747
|
-
let(:order_id) {
|
|
784
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
748
785
|
it 'return 3 items' do
|
|
749
786
|
args1 = {
|
|
750
787
|
:order_id => order_id,
|
|
@@ -781,7 +818,7 @@ describe GmoPayment::Client, :vcr do
|
|
|
781
818
|
|
|
782
819
|
describe '#search_trade_btc' do
|
|
783
820
|
let(:call_method) { '#search_trade_btc' }
|
|
784
|
-
let(:order_id) {
|
|
821
|
+
let(:order_id) { is_cassette_available.call ? uuid.call(name: :order_id) : SecureRandom.hex(27/2) }
|
|
785
822
|
it 'return 11 items' do
|
|
786
823
|
args1 = {
|
|
787
824
|
:order_id => order_id,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gmo_payment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Fujigaya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby client for the protocol type API provided by GMO Payment Gateway.
|
|
14
14
|
email:
|
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
117
|
rubyforge_project:
|
|
118
|
-
rubygems_version: 2.
|
|
118
|
+
rubygems_version: 2.7.3
|
|
119
119
|
signing_key:
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Ruby client for GMO-PG API.
|
|
@@ -176,4 +176,3 @@ test_files:
|
|
|
176
176
|
- spec/gmo_payment_spec.rb
|
|
177
177
|
- spec/spec_helper.rb
|
|
178
178
|
- spec/support/request_validation.rb
|
|
179
|
-
has_rdoc:
|