gmo 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +11 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_linepay_gets_data_about_a_transaction.yml +36 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_linepay_gets_data_about_a_transaction.yml +69 -0
- data/fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_doesn_t_require_card_info_if_token_is_present.yml +36 -0
- data/gmo.gemspec +1 -1
- data/lib/gmo/const.rb +9 -1
- data/lib/gmo/shop_api.rb +22 -3
- data/lib/gmo/site_api.rb +5 -1
- data/lib/gmo/version.rb +1 -1
- data/spec/gmo/shop_and_site_api_spec.rb +4 -4
- data/spec/gmo/shop_api_spec.rb +157 -108
- data/spec/gmo/site_api_spec.rb +32 -22
- data/spec/support/config.example.yml +3 -1
- data/spec/support/config.yml +3 -1
- data/spec/support/vcr.rb +3 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 048e3b396cc3cc7d28f96b43f1366bd63ae9c7da
|
4
|
+
data.tar.gz: 7917490d3be024b315adee09bae322cc4941aa5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f16921e658be31b5ca581424b7a8b759704a58c39b4a1dbe491a7b42b674c2c8d89b15d6f1e16bd07f0f43c239fcc15de745f6e8152b1b47ca3c1de0289c95
|
7
|
+
data.tar.gz: 187659b67bc22d8eabdbbe19e88b31cc3bd6c8fde7174442ee64da611c4ba89aa052f79187c335b524b309f132fd031d77098aed30a12ff306bed3f0ec563839
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.3.0
|
4
|
+
* ShopAPI
|
5
|
+
* Support LINE Pay payment #13 (Thanks @ryooob)
|
6
|
+
|
7
|
+
ShopAPI#entry_tran_linepay, ShopAPI#exec_tran_linepay were added
|
8
|
+
* Update required item on ShopAPI#exec_tran_cvs #15 (Thanks @pyonnuka)
|
9
|
+
* SiteAPI
|
10
|
+
* card_no and expire are not required for save_card if a token is used #17 (Thanks @mcfiredrill)
|
11
|
+
* Testing
|
12
|
+
* fix Spec and upgrade RSpec to v3 #14, #16, #18, #19 (Thanks @htz @cameluby @kazuooooo @mcfiredrill)
|
13
|
+
|
3
14
|
## 0.2.6
|
4
15
|
* Fixes several Ruby warnings #8 (Thanks @amatsuda)
|
5
16
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranLinepay.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=1467366013&JobCd=CAPTURE&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Fri, 01 Jul 2016 09:40:14 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-31J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: OrderID=1467366013&AccessID=2eb607a4a86106c53f8748e59de5d41b&AccessPass=3fb30254d3e3e6b4efbfe6eedda7196d
|
34
|
+
http_version:
|
35
|
+
recorded_at: Fri, 01 Jul 2016 09:40:14 GMT
|
36
|
+
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_linepay_gets_data_about_a_transaction.yml
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/EntryTranLinepay.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: OrderID=1467366014&JobCd=CAPTURE&Amount=100&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Fri, 01 Jul 2016 09:40:14 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-31J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: OrderID=1467366014&AccessID=2352c8be3fd34b2e75ce3fd2b19c1cd2&AccessPass=06561ea4bbb6200b172a58457c88776f
|
34
|
+
http_version:
|
35
|
+
recorded_at: Fri, 01 Jul 2016 09:40:14 GMT
|
36
|
+
- request:
|
37
|
+
method: post
|
38
|
+
uri: https://<HOST>/payment/ExecTranLinepay.idPass
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: OrderID=1467366014&AccessID=2352c8be3fd34b2e75ce3fd2b19c1cd2&AccessPass=06561ea4bbb6200b172a58457c88776f&RetURL=https%3A%2F%2Fexample.com%2Fpath%2Fto%2Freturn%2Fsuccess&ErrorRcvURL=https%3A%2F%2Fexample.com%2Fpath%2Fto%2Freturn%2Ffailure&ProductName=%8Dw%93%FC%82%B7%82%E9%8F%A4%95i%96%BC&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
42
|
+
headers:
|
43
|
+
Accept-Encoding:
|
44
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
45
|
+
Accept:
|
46
|
+
- "*/*"
|
47
|
+
User-Agent:
|
48
|
+
- Ruby
|
49
|
+
response:
|
50
|
+
status:
|
51
|
+
code: 200
|
52
|
+
message: OK
|
53
|
+
headers:
|
54
|
+
Server:
|
55
|
+
- nginx
|
56
|
+
Date:
|
57
|
+
- Fri, 01 Jul 2016 09:40:14 GMT
|
58
|
+
Content-Type:
|
59
|
+
- text/plain;charset=Windows-31J
|
60
|
+
Transfer-Encoding:
|
61
|
+
- chunked
|
62
|
+
Connection:
|
63
|
+
- close
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: Start=1&AccessID=2352c8be3fd34b2e75ce3fd2b19c1cd2&Token=5eUT14IYmsZRnCs/S/RYxKrphuf29PTylubWI8BbbUuwBS7yYvxSiC0zeMVH+O4F&StartURL=https://<HOST>/payment/LinepayStart.idPass
|
67
|
+
http_version:
|
68
|
+
recorded_at: Fri, 01 Jul 2016 09:40:14 GMT
|
69
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/SaveCard.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: MemberID=<TOKEN_MEMBER_ID>&Token=<TOKEN>&SiteID=<SITE_ID>&SitePass=<SITE_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Fri, 03 Feb 2017 09:42:26 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=Windows-31J
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: CardSeq=0&CardNo=*************111&Forward=2a99662
|
34
|
+
http_version:
|
35
|
+
recorded_at: Fri, 03 Feb 2017 09:42:25 GMT
|
36
|
+
recorded_with: VCR 3.0.3
|
data/gmo.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
|
24
24
|
gem.add_runtime_dependency "rack"
|
25
25
|
gem.add_runtime_dependency "multi_json"
|
26
|
-
gem.add_development_dependency "rspec", "~>
|
26
|
+
gem.add_development_dependency "rspec", "~> 3"
|
27
27
|
gem.add_development_dependency "rake"
|
28
28
|
gem.add_development_dependency "vcr"
|
29
29
|
gem.add_development_dependency "webmock"
|
data/lib/gmo/const.rb
CHANGED
@@ -101,7 +101,15 @@ module GMO
|
|
101
101
|
:td_flag => "TdFlag",
|
102
102
|
:td_tenant_name => "TdTenantName",
|
103
103
|
:tel_no => "TelNo",
|
104
|
-
:token => "Token"
|
104
|
+
:token => "Token",
|
105
|
+
:error_rcv_url => "ErrorRcvURL",
|
106
|
+
:product_name => "ProductName",
|
107
|
+
:product_image_url => "ProductImageUrl",
|
108
|
+
:mid => "Mid",
|
109
|
+
:delivery_place_phone => "DeliveryPlacePhone",
|
110
|
+
:lang_cd => "LangCd",
|
111
|
+
:user_info => "UserInfo",
|
112
|
+
:package_name => "PackageName"
|
105
113
|
}
|
106
114
|
end
|
107
115
|
end
|
data/lib/gmo/shop_api.rb
CHANGED
@@ -71,6 +71,16 @@ module GMO
|
|
71
71
|
post_request name, options
|
72
72
|
end
|
73
73
|
|
74
|
+
# 【LINE Pay決済】
|
75
|
+
# 20.1.2.1. 取引登録
|
76
|
+
# これ以降の決済取引で必要となる取引IDと取引パスワードの発行を行い、取引を開始します。
|
77
|
+
def entry_tran_linepay(options = {})
|
78
|
+
name = "EntryTranLinepay.idPass"
|
79
|
+
required = [:order_id, :job_cd, :amount]
|
80
|
+
assert_required_options(required, options)
|
81
|
+
post_request name, options
|
82
|
+
end
|
83
|
+
|
74
84
|
## 2.2.2.2.決済実行
|
75
85
|
# 指定されたサイトに会員を登録します。
|
76
86
|
# return
|
@@ -145,7 +155,7 @@ module GMO
|
|
145
155
|
# お客様が入力した情報で後続の決済センターと通信を行い決済を実施し、結果を返します。
|
146
156
|
def exec_tran_cvs(options = {})
|
147
157
|
name = "ExecTranCvs.idPass"
|
148
|
-
required = [:access_id, :access_pass, :order_id, :convenience, :customer_name, :tel_no, :receipts_disp_11, :receipts_disp_12, :receipts_disp_13]
|
158
|
+
required = [:access_id, :access_pass, :order_id, :convenience, :customer_name, :customer_kana, :tel_no, :receipts_disp_11, :receipts_disp_12, :receipts_disp_13]
|
149
159
|
assert_required_options(required, options)
|
150
160
|
post_request name, options
|
151
161
|
end
|
@@ -160,6 +170,15 @@ module GMO
|
|
160
170
|
post_request name, options
|
161
171
|
end
|
162
172
|
|
173
|
+
# 【LINE Pay決済】
|
174
|
+
# 20.1.2.2. 決済実行
|
175
|
+
def exec_tran_linepay(options = {})
|
176
|
+
name = "ExecTranLinepay.idPass"
|
177
|
+
required = [:access_id, :access_pass, :order_id, :ret_url, :error_rcv_url, :product_name]
|
178
|
+
assert_required_options(required, options)
|
179
|
+
post_request name, options
|
180
|
+
end
|
181
|
+
|
163
182
|
## 2.14.2.1.決済変更
|
164
183
|
# 仮売上の決済に対して実売上を行います。尚、実行時に仮売上時との金額チェックを行います。
|
165
184
|
# /payment/AlterTran.idPass
|
@@ -204,8 +223,8 @@ module GMO
|
|
204
223
|
# gmo.change_tran({
|
205
224
|
# access_id: "a41d83f1f4c908baeda04e6dc03e300c",
|
206
225
|
# access_pass: "d72eca02e28c88f98b9341a33ba46d5d",
|
207
|
-
#
|
208
|
-
#
|
226
|
+
# job_cd: "CAPTURE",
|
227
|
+
# amount: 100
|
209
228
|
# })
|
210
229
|
def change_tran(options = {})
|
211
230
|
name = "ChangeTran.idPass"
|
data/lib/gmo/site_api.rb
CHANGED
@@ -64,7 +64,11 @@ module GMO
|
|
64
64
|
# 指定した会員にカード情報を登録します。尚、サイトに設定されたショップ ID を使用してカード会社と通信を行い有効性の確認を行います。
|
65
65
|
def save_card(options = {})
|
66
66
|
name = "SaveCard.idPass"
|
67
|
-
|
67
|
+
if options[:token].nil?
|
68
|
+
required = [:member_id, :card_no, :expire]
|
69
|
+
else
|
70
|
+
required = [:member_id, :token]
|
71
|
+
end
|
68
72
|
assert_required_options(required, options)
|
69
73
|
post_request name, options
|
70
74
|
end
|
data/lib/gmo/version.rb
CHANGED
@@ -79,9 +79,9 @@ describe "GMO::Payment::ShopAndSiteAPI" do
|
|
79
79
|
:order_id => order_id,
|
80
80
|
:member_id => member_id
|
81
81
|
})
|
82
|
-
result["CardSeq"].nil?.should_not
|
83
|
-
result["CardNo"].nil?.should_not
|
84
|
-
result["Forward"].nil?.should_not
|
82
|
+
result["CardSeq"].nil?.should_not be_truthy
|
83
|
+
result["CardNo"].nil?.should_not be_truthy
|
84
|
+
result["Forward"].nil?.should_not be_truthy
|
85
85
|
end
|
86
86
|
|
87
87
|
it "got error if missing options", :vcr do
|
@@ -91,4 +91,4 @@ describe "GMO::Payment::ShopAndSiteAPI" do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
-
end
|
94
|
+
end
|
data/spec/gmo/shop_api_spec.rb
CHANGED
@@ -42,8 +42,8 @@ describe "GMO::Payment::ShopAPI" do
|
|
42
42
|
:job_cd => "AUTH",
|
43
43
|
:amount => 100
|
44
44
|
})
|
45
|
-
result["AccessID"].nil?.should_not
|
46
|
-
result["AccessPass"].nil?.should_not
|
45
|
+
result["AccessID"].nil?.should_not be_truthy
|
46
|
+
result["AccessPass"].nil?.should_not be_truthy
|
47
47
|
end
|
48
48
|
|
49
49
|
it "got error if missing options", :vcr do
|
@@ -60,8 +60,8 @@ describe "GMO::Payment::ShopAPI" do
|
|
60
60
|
:order_id => order_id,
|
61
61
|
:amount => 100
|
62
62
|
})
|
63
|
-
result["AccessID"].nil?.should_not
|
64
|
-
result["AccessPass"].nil?.should_not
|
63
|
+
result["AccessID"].nil?.should_not be_truthy
|
64
|
+
result["AccessPass"].nil?.should_not be_truthy
|
65
65
|
end
|
66
66
|
|
67
67
|
it "got error if missing options", :vcr do
|
@@ -78,8 +78,8 @@ describe "GMO::Payment::ShopAPI" do
|
|
78
78
|
:order_id => order_id,
|
79
79
|
:amount => 100
|
80
80
|
})
|
81
|
-
result["AccessID"].nil?.should_not
|
82
|
-
result["AccessPass"].nil?.should_not
|
81
|
+
result["AccessID"].nil?.should_not be_truthy
|
82
|
+
result["AccessPass"].nil?.should_not be_truthy
|
83
83
|
end
|
84
84
|
|
85
85
|
it "got error if missing options", :vcr do
|
@@ -89,6 +89,25 @@ describe "GMO::Payment::ShopAPI" do
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
describe "#entry_tran_linepay" do
|
93
|
+
it "gets data about a transaction", :vcr do
|
94
|
+
order_id = @order_id
|
95
|
+
result = @service.entry_tran_linepay({
|
96
|
+
:order_id => order_id,
|
97
|
+
:job_cd => 'CAPTURE',
|
98
|
+
:amount => 100
|
99
|
+
})
|
100
|
+
result["AccessID"].nil?.should_not be_truthy
|
101
|
+
result["AccessPass"].nil?.should_not be_truthy
|
102
|
+
end
|
103
|
+
|
104
|
+
it "got error if missing options", :vcr do
|
105
|
+
lambda {
|
106
|
+
result = @service.entry_tran_linepay()
|
107
|
+
}.should raise_error("Required order_id, job_cd, amount were not provided.")
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
92
111
|
describe "#exec_tran" do
|
93
112
|
it "gets data about a transaction", :vcr do
|
94
113
|
order_id = generate_id
|
@@ -110,18 +129,18 @@ describe "GMO::Payment::ShopAPI" do
|
|
110
129
|
:expire => "1405",
|
111
130
|
:client_field_1 => client_field_1
|
112
131
|
})
|
113
|
-
result["ACS"].nil?.should_not
|
114
|
-
result["OrderID"].nil?.should_not
|
115
|
-
result["Forward"].nil?.should_not
|
116
|
-
result["Method"].nil?.should_not
|
117
|
-
result["PayTimes"].nil?.should_not
|
118
|
-
result["Approve"].nil?.should_not
|
119
|
-
result["TranID"].nil?.should_not
|
120
|
-
result["TranDate"].nil?.should_not
|
121
|
-
result["CheckString"].nil?.should_not
|
122
|
-
result["ClientField1"].nil?.should_not
|
123
|
-
(result["ClientField1"] == client_field_1).should
|
124
|
-
result["ClientField3"].nil?.should_not
|
132
|
+
result["ACS"].nil?.should_not be_truthy
|
133
|
+
result["OrderID"].nil?.should_not be_truthy
|
134
|
+
result["Forward"].nil?.should_not be_truthy
|
135
|
+
result["Method"].nil?.should_not be_truthy
|
136
|
+
result["PayTimes"].nil?.should_not be_truthy
|
137
|
+
result["Approve"].nil?.should_not be_truthy
|
138
|
+
result["TranID"].nil?.should_not be_truthy
|
139
|
+
result["TranDate"].nil?.should_not be_truthy
|
140
|
+
result["CheckString"].nil?.should_not be_truthy
|
141
|
+
result["ClientField1"].nil?.should_not be_truthy
|
142
|
+
(result["ClientField1"] == client_field_1).should be_truthy
|
143
|
+
result["ClientField3"].nil?.should_not be_truthy
|
125
144
|
end
|
126
145
|
|
127
146
|
it "got error if missing options", :vcr do
|
@@ -153,19 +172,19 @@ describe "GMO::Payment::ShopAPI" do
|
|
153
172
|
:expire => "1405",
|
154
173
|
:client_field_1 => client_field_1
|
155
174
|
})
|
156
|
-
result["ACS"].nil?.should_not
|
157
|
-
result["OrderID"].nil?.should_not
|
158
|
-
result["Forward"].nil?.should_not
|
159
|
-
result["Method"].nil?.should_not
|
160
|
-
result["PayTimes"].nil?.should_not
|
161
|
-
result["Approve"].nil?.should_not
|
162
|
-
result["TranID"].nil?.should_not
|
163
|
-
result["TranDate"].nil?.should_not
|
164
|
-
result["CheckString"].nil?.should_not
|
165
|
-
result["ClientField1"].nil?.should_not
|
166
|
-
(result["ClientField1"] == client_field_1).should
|
167
|
-
(result["ClientField1"].encoding.to_s == "UTF-8").should
|
168
|
-
result["ClientField3"].nil?.should_not
|
175
|
+
result["ACS"].nil?.should_not be_truthy
|
176
|
+
result["OrderID"].nil?.should_not be_truthy
|
177
|
+
result["Forward"].nil?.should_not be_truthy
|
178
|
+
result["Method"].nil?.should_not be_truthy
|
179
|
+
result["PayTimes"].nil?.should_not be_truthy
|
180
|
+
result["Approve"].nil?.should_not be_truthy
|
181
|
+
result["TranID"].nil?.should_not be_truthy
|
182
|
+
result["TranDate"].nil?.should_not be_truthy
|
183
|
+
result["CheckString"].nil?.should_not be_truthy
|
184
|
+
result["ClientField1"].nil?.should_not be_truthy
|
185
|
+
(result["ClientField1"] == client_field_1).should be_truthy
|
186
|
+
(result["ClientField1"].encoding.to_s == "UTF-8").should be_truthy
|
187
|
+
result["ClientField3"].nil?.should_not be_truthy
|
169
188
|
end
|
170
189
|
end
|
171
190
|
end
|
@@ -193,22 +212,22 @@ describe "GMO::Payment::ShopAPI" do
|
|
193
212
|
:receipts_disp_13 => '00:00-00:15',
|
194
213
|
:client_field_1 => client_field_1
|
195
214
|
})
|
196
|
-
result["OrderID"].nil?.should_not
|
197
|
-
result["Convenience"].nil?.should_not
|
198
|
-
result["ConfNo"].nil?.should_not
|
199
|
-
result["ReceiptNo"].nil?.should_not
|
200
|
-
result["PaymentTerm"].nil?.should_not
|
201
|
-
result["TranDate"].nil?.should_not
|
202
|
-
result["CheckString"].nil?.should_not
|
203
|
-
result["ClientField1"].nil?.should_not
|
204
|
-
(result["ClientField1"] == client_field_1).should
|
205
|
-
result["ClientField3"].nil?.should_not
|
215
|
+
result["OrderID"].nil?.should_not be_truthy
|
216
|
+
result["Convenience"].nil?.should_not be_truthy
|
217
|
+
result["ConfNo"].nil?.should_not be_truthy
|
218
|
+
result["ReceiptNo"].nil?.should_not be_truthy
|
219
|
+
result["PaymentTerm"].nil?.should_not be_truthy
|
220
|
+
result["TranDate"].nil?.should_not be_truthy
|
221
|
+
result["CheckString"].nil?.should_not be_truthy
|
222
|
+
result["ClientField1"].nil?.should_not be_truthy
|
223
|
+
(result["ClientField1"] == client_field_1).should be_truthy
|
224
|
+
result["ClientField3"].nil?.should_not be_truthy
|
206
225
|
end
|
207
226
|
|
208
227
|
it "got error if missing options", :vcr do
|
209
228
|
lambda {
|
210
229
|
result = @service.exec_tran_cvs()
|
211
|
-
}.should raise_error("Required access_id, access_pass, order_id, convenience, customer_name, tel_no, receipts_disp_11, receipts_disp_12, receipts_disp_13 were not provided.")
|
230
|
+
}.should raise_error(ArgumentError, "Required access_id, access_pass, order_id, convenience, customer_name, customer_kana, tel_no, receipts_disp_11, receipts_disp_12, receipts_disp_13 were not provided.")
|
212
231
|
end
|
213
232
|
end
|
214
233
|
|
@@ -232,14 +251,14 @@ describe "GMO::Payment::ShopAPI" do
|
|
232
251
|
:receipts_disp_12 => '0300000001',
|
233
252
|
:receipts_disp_13 => '00:00-00:15'
|
234
253
|
})
|
235
|
-
result["OrderID"].nil?.should_not
|
236
|
-
result["CustID"].nil?.should_not
|
237
|
-
result["BkCode"].nil?.should_not
|
238
|
-
result["ConfNo"].nil?.should_not
|
239
|
-
result["EncryptReceiptNo"].nil?.should_not
|
240
|
-
result["PaymentTerm"].nil?.should_not
|
241
|
-
result["TranDate"].nil?.should_not
|
242
|
-
result["CheckString"].nil?.should_not
|
254
|
+
result["OrderID"].nil?.should_not be_truthy
|
255
|
+
result["CustID"].nil?.should_not be_truthy
|
256
|
+
result["BkCode"].nil?.should_not be_truthy
|
257
|
+
result["ConfNo"].nil?.should_not be_truthy
|
258
|
+
result["EncryptReceiptNo"].nil?.should_not be_truthy
|
259
|
+
result["PaymentTerm"].nil?.should_not be_truthy
|
260
|
+
result["TranDate"].nil?.should_not be_truthy
|
261
|
+
result["CheckString"].nil?.should_not be_truthy
|
243
262
|
end
|
244
263
|
|
245
264
|
it "got error if missing options", :vcr do
|
@@ -249,6 +268,37 @@ describe "GMO::Payment::ShopAPI" do
|
|
249
268
|
end
|
250
269
|
end
|
251
270
|
|
271
|
+
describe "#exec_tran_linepay" do
|
272
|
+
it "gets data about a transaction", :vcr do
|
273
|
+
order_id = generate_id
|
274
|
+
result = @service.entry_tran_linepay({
|
275
|
+
:order_id => order_id,
|
276
|
+
:job_cd => 'CAPTURE',
|
277
|
+
:amount => 100
|
278
|
+
})
|
279
|
+
access_id = result["AccessID"]
|
280
|
+
access_pass = result["AccessPass"]
|
281
|
+
result = @service.exec_tran_linepay({
|
282
|
+
:order_id => order_id,
|
283
|
+
:access_id => access_id,
|
284
|
+
:access_pass => access_pass,
|
285
|
+
:ret_url => 'https://example.com/path/to/return/success',
|
286
|
+
:error_rcv_url => 'https://example.com/path/to/return/failure',
|
287
|
+
:product_name => '購入する商品名'
|
288
|
+
})
|
289
|
+
result["Start"].nil?.should_not be_truthy
|
290
|
+
result["AccessID"].nil?.should_not be_truthy
|
291
|
+
result["Token"].nil?.should_not be_truthy
|
292
|
+
result["StartURL"].nil?.should_not be_truthy
|
293
|
+
end
|
294
|
+
|
295
|
+
it "got error if missing options", :vcr do
|
296
|
+
lambda {
|
297
|
+
result = @service.exec_tran_linepay()
|
298
|
+
}.should raise_error("Required access_id, access_pass, order_id, ret_url, error_rcv_url, product_name were not provided.")
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
252
302
|
describe "#alter_tran" do
|
253
303
|
it "gets data about order", :vcr do
|
254
304
|
order_id = generate_id
|
@@ -274,13 +324,13 @@ describe "GMO::Payment::ShopAPI" do
|
|
274
324
|
:job_cd => "RETURN",
|
275
325
|
:amount => 100
|
276
326
|
})
|
277
|
-
result["AccessID"].nil?.should_not
|
278
|
-
result["AccessPass"].nil?.should_not
|
279
|
-
result["Forward"].nil?.should_not
|
280
|
-
result["Approve"].nil?.should_not
|
281
|
-
result["AccessPass"].nil?.should_not
|
282
|
-
result["TranID"].nil?.should_not
|
283
|
-
result["TranDate"].nil?.should_not
|
327
|
+
result["AccessID"].nil?.should_not be_truthy
|
328
|
+
result["AccessPass"].nil?.should_not be_truthy
|
329
|
+
result["Forward"].nil?.should_not be_truthy
|
330
|
+
result["Approve"].nil?.should_not be_truthy
|
331
|
+
result["AccessPass"].nil?.should_not be_truthy
|
332
|
+
result["TranID"].nil?.should_not be_truthy
|
333
|
+
result["TranDate"].nil?.should_not be_truthy
|
284
334
|
end
|
285
335
|
|
286
336
|
it "change order auth to sale", :vcr do
|
@@ -307,13 +357,13 @@ describe "GMO::Payment::ShopAPI" do
|
|
307
357
|
:job_cd => "SALES",
|
308
358
|
:amount => 100
|
309
359
|
})
|
310
|
-
result["AccessID"].nil?.should_not
|
311
|
-
result["AccessPass"].nil?.should_not
|
312
|
-
result["Forward"].nil?.should_not
|
313
|
-
result["Approve"].nil?.should_not
|
314
|
-
result["AccessPass"].nil?.should_not
|
315
|
-
result["TranID"].nil?.should_not
|
316
|
-
result["TranDate"].nil?.should_not
|
360
|
+
result["AccessID"].nil?.should_not be_truthy
|
361
|
+
result["AccessPass"].nil?.should_not be_truthy
|
362
|
+
result["Forward"].nil?.should_not be_truthy
|
363
|
+
result["Approve"].nil?.should_not be_truthy
|
364
|
+
result["AccessPass"].nil?.should_not be_truthy
|
365
|
+
result["TranID"].nil?.should_not be_truthy
|
366
|
+
result["TranDate"].nil?.should_not be_truthy
|
317
367
|
end
|
318
368
|
|
319
369
|
it "got error if missing options", :vcr do
|
@@ -348,12 +398,12 @@ describe "GMO::Payment::ShopAPI" do
|
|
348
398
|
:job_cd => "AUTH",
|
349
399
|
:amount => 1000
|
350
400
|
})
|
351
|
-
result["AccessID"].nil?.should_not
|
352
|
-
result["AccessPass"].nil?.should_not
|
353
|
-
result["Forward"].nil?.should_not
|
354
|
-
result["Approve"].nil?.should_not
|
355
|
-
result["TranID"].nil?.should_not
|
356
|
-
result["TranDate"].nil?.should_not
|
401
|
+
result["AccessID"].nil?.should_not be_truthy
|
402
|
+
result["AccessPass"].nil?.should_not be_truthy
|
403
|
+
result["Forward"].nil?.should_not be_truthy
|
404
|
+
result["Approve"].nil?.should_not be_truthy
|
405
|
+
result["TranID"].nil?.should_not be_truthy
|
406
|
+
result["TranDate"].nil?.should_not be_truthy
|
357
407
|
end
|
358
408
|
|
359
409
|
it "got error if missing options", :vcr do
|
@@ -370,24 +420,24 @@ describe "GMO::Payment::ShopAPI" do
|
|
370
420
|
result = @service.search_trade({
|
371
421
|
:order_id => order_id
|
372
422
|
})
|
373
|
-
result["OrderID"].nil?.should_not
|
374
|
-
result["Status"].nil?.should_not
|
375
|
-
result["ProcessDate"].nil?.should_not
|
376
|
-
result["JobCd"].nil?.should_not
|
377
|
-
result["AccessID"].nil?.should_not
|
378
|
-
result["AccessPass"].nil?.should_not
|
379
|
-
result["ItemCode"].nil?.should_not
|
380
|
-
result["Amount"].nil?.should_not
|
381
|
-
result["Tax"].nil?.should_not
|
382
|
-
result["SiteID"].nil?.should_not
|
383
|
-
result["MemberID"].nil?.should_not
|
384
|
-
result["CardNo"].nil?.should_not
|
385
|
-
result["Expire"].nil?.should_not
|
386
|
-
result["Method"].nil?.should_not
|
387
|
-
result["PayTimes"].nil?.should_not
|
388
|
-
result["Forward"].nil?.should_not
|
389
|
-
result["TranID"].nil?.should_not
|
390
|
-
result["Approve"].nil?.should_not
|
423
|
+
result["OrderID"].nil?.should_not be_truthy
|
424
|
+
result["Status"].nil?.should_not be_truthy
|
425
|
+
result["ProcessDate"].nil?.should_not be_truthy
|
426
|
+
result["JobCd"].nil?.should_not be_truthy
|
427
|
+
result["AccessID"].nil?.should_not be_truthy
|
428
|
+
result["AccessPass"].nil?.should_not be_truthy
|
429
|
+
result["ItemCode"].nil?.should_not be_truthy
|
430
|
+
result["Amount"].nil?.should_not be_truthy
|
431
|
+
result["Tax"].nil?.should_not be_truthy
|
432
|
+
result["SiteID"].nil?.should_not be_truthy
|
433
|
+
result["MemberID"].nil?.should_not be_truthy
|
434
|
+
result["CardNo"].nil?.should_not be_truthy
|
435
|
+
result["Expire"].nil?.should_not be_truthy
|
436
|
+
result["Method"].nil?.should_not be_truthy
|
437
|
+
result["PayTimes"].nil?.should_not be_truthy
|
438
|
+
result["Forward"].nil?.should_not be_truthy
|
439
|
+
result["TranID"].nil?.should_not be_truthy
|
440
|
+
result["Approve"].nil?.should_not be_truthy
|
391
441
|
end
|
392
442
|
|
393
443
|
it "got error if missing options", :vcr do
|
@@ -399,30 +449,29 @@ describe "GMO::Payment::ShopAPI" do
|
|
399
449
|
|
400
450
|
describe "#search_trade_multi" do
|
401
451
|
it "gets data about order", :vcr do
|
402
|
-
client_field_1 = "client_field1"
|
403
452
|
result = @service.search_trade_multi({
|
404
453
|
:order_id => @order_id,
|
405
454
|
:pay_type => "0"
|
406
455
|
})
|
407
|
-
result["Status"].nil?.should_not
|
408
|
-
result["ProcessDate"].nil?.should_not
|
409
|
-
result["JobCd"].nil?.should_not
|
410
|
-
result["AccessID"].nil?.should_not
|
411
|
-
result["AccessPass"].nil?.should_not
|
412
|
-
result["ItemCode"].nil?.should_not
|
413
|
-
result["Amount"].nil?.should_not
|
414
|
-
result["Tax"].nil?.should_not
|
415
|
-
result["SiteID"].nil?.should_not
|
416
|
-
result["MemberID"].nil?.should_not
|
417
|
-
result["CardNo"].nil?.should_not
|
418
|
-
result["Expire"].nil?.should_not
|
419
|
-
result["Method"].nil?.should_not
|
420
|
-
result["PayTimes"].nil?.should_not
|
421
|
-
result["Forward"].nil?.should_not
|
422
|
-
result["TranID"].nil?.should_not
|
423
|
-
result["Approve"].nil?.should_not
|
424
|
-
result["PayType"].nil?.should_not
|
425
|
-
result["PaymentTerm"].nil?.should_not
|
456
|
+
result["Status"].nil?.should_not be_truthy
|
457
|
+
result["ProcessDate"].nil?.should_not be_truthy
|
458
|
+
result["JobCd"].nil?.should_not be_truthy
|
459
|
+
result["AccessID"].nil?.should_not be_truthy
|
460
|
+
result["AccessPass"].nil?.should_not be_truthy
|
461
|
+
result["ItemCode"].nil?.should_not be_truthy
|
462
|
+
result["Amount"].nil?.should_not be_truthy
|
463
|
+
result["Tax"].nil?.should_not be_truthy
|
464
|
+
result["SiteID"].nil?.should_not be_truthy
|
465
|
+
result["MemberID"].nil?.should_not be_truthy
|
466
|
+
result["CardNo"].nil?.should_not be_truthy
|
467
|
+
result["Expire"].nil?.should_not be_truthy
|
468
|
+
result["Method"].nil?.should_not be_truthy
|
469
|
+
result["PayTimes"].nil?.should_not be_truthy
|
470
|
+
result["Forward"].nil?.should_not be_truthy
|
471
|
+
result["TranID"].nil?.should_not be_truthy
|
472
|
+
result["Approve"].nil?.should_not be_truthy
|
473
|
+
result["PayType"].nil?.should_not be_truthy
|
474
|
+
result["PaymentTerm"].nil?.should_not be_truthy
|
426
475
|
end
|
427
476
|
|
428
477
|
it "got error if missing options", :vcr do
|
data/spec/gmo/site_api_spec.rb
CHANGED
@@ -39,7 +39,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
39
39
|
:member_id => @member_id,
|
40
40
|
:member_name => member_name
|
41
41
|
})
|
42
|
-
result["MemberID"].nil?.should_not
|
42
|
+
result["MemberID"].nil?.should_not be_truthy
|
43
43
|
end
|
44
44
|
|
45
45
|
it "got error if missing options", :vcr do
|
@@ -57,7 +57,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
57
57
|
:member_id => member_id,
|
58
58
|
:member_name => member_name
|
59
59
|
})
|
60
|
-
result["MemberID"].nil?.should_not
|
60
|
+
result["MemberID"].nil?.should_not be_truthy
|
61
61
|
end
|
62
62
|
|
63
63
|
it "got error if missing options", :vcr do
|
@@ -78,7 +78,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
78
78
|
result = @service.delete_member({
|
79
79
|
:member_id => member_id
|
80
80
|
})
|
81
|
-
result["MemberID"].nil?.should_not
|
81
|
+
result["MemberID"].nil?.should_not be_truthy
|
82
82
|
end
|
83
83
|
|
84
84
|
it "got error if missing options", :vcr do
|
@@ -96,16 +96,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
96
96
|
:member_id => member_id,
|
97
97
|
:member_name => member_name
|
98
98
|
})
|
99
|
-
result["MemberID"].nil?.should_not
|
99
|
+
result["MemberID"].nil?.should_not be_truthy
|
100
100
|
|
101
101
|
result = @service.search_member({
|
102
102
|
:member_id => member_id
|
103
103
|
})
|
104
|
-
result["MemberID"].nil?.should_not
|
105
|
-
result["MemberName"].nil?.should_not
|
106
|
-
(result["MemberName"].to_s == member_name).should
|
107
|
-
result["DeleteFlag"].nil?.should_not
|
108
|
-
(result["DeleteFlag"].to_i == 0).should
|
104
|
+
result["MemberID"].nil?.should_not be_truthy
|
105
|
+
result["MemberName"].nil?.should_not be_truthy
|
106
|
+
(result["MemberName"].to_s == member_name).should be_truthy
|
107
|
+
result["DeleteFlag"].nil?.should_not be_truthy
|
108
|
+
(result["DeleteFlag"].to_i == 0).should be_truthy
|
109
109
|
end
|
110
110
|
|
111
111
|
it "got error if missing options", :vcr do
|
@@ -125,7 +125,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
125
125
|
:card_no => card_no,
|
126
126
|
:expire => expire
|
127
127
|
})
|
128
|
-
result["CardNo"].nil?.should_not
|
128
|
+
result["CardNo"].nil?.should_not be_truthy
|
129
129
|
end
|
130
130
|
|
131
131
|
it "got error if missing options", :vcr do
|
@@ -133,6 +133,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
133
133
|
result = @service.save_card()
|
134
134
|
}.should raise_error("Required member_id, card_no, expire were not provided.")
|
135
135
|
end
|
136
|
+
|
137
|
+
it "doesn't require card info if token is present", :vcr do
|
138
|
+
member_id = SPEC_CONF["token_member_id"]
|
139
|
+
token = SPEC_CONF["token"]
|
140
|
+
result = @service.save_card({
|
141
|
+
:member_id => member_id,
|
142
|
+
:token => token
|
143
|
+
})
|
144
|
+
result["CardNo"].nil?.should_not be_truthy
|
145
|
+
end
|
136
146
|
end
|
137
147
|
|
138
148
|
describe "#delete_card" do
|
@@ -143,8 +153,8 @@ describe "GMO::Payment::SiteAPI" do
|
|
143
153
|
:member_id => member_id,
|
144
154
|
:card_seq => card_seq
|
145
155
|
})
|
146
|
-
result["CardSeq"].nil?.should_not
|
147
|
-
(result["CardSeq"].to_i == card_seq).should
|
156
|
+
result["CardSeq"].nil?.should_not be_truthy
|
157
|
+
(result["CardSeq"].to_i == card_seq).should be_truthy
|
148
158
|
end
|
149
159
|
|
150
160
|
it "got error if missing options", :vcr do
|
@@ -171,16 +181,16 @@ describe "GMO::Payment::SiteAPI" do
|
|
171
181
|
:card_seq => card_seq,
|
172
182
|
:seq_mode => seq_mode
|
173
183
|
})
|
174
|
-
result["CardSeq"].nil?.should_not
|
175
|
-
(result["CardSeq"].to_i == card_seq).should
|
176
|
-
result["DefaultFlag"].nil?.should_not
|
177
|
-
(result["DefaultFlag"].to_i == 0).should
|
178
|
-
result["CardName"].nil?.should_not
|
179
|
-
result["CardNo"].nil?.should_not
|
180
|
-
result["Expire"].nil?.should_not
|
181
|
-
(result["Expire"].to_s == expire).should
|
182
|
-
result["HolderName"].nil?.should_not
|
183
|
-
result["DeleteFlag"].nil?.should_not
|
184
|
+
result["CardSeq"].nil?.should_not be_truthy
|
185
|
+
(result["CardSeq"].to_i == card_seq).should be_truthy
|
186
|
+
result["DefaultFlag"].nil?.should_not be_truthy
|
187
|
+
(result["DefaultFlag"].to_i == 0).should be_truthy
|
188
|
+
result["CardName"].nil?.should_not be_truthy
|
189
|
+
result["CardNo"].nil?.should_not be_truthy
|
190
|
+
result["Expire"].nil?.should_not be_truthy
|
191
|
+
(result["Expire"].to_s == expire).should be_truthy
|
192
|
+
result["HolderName"].nil?.should_not be_truthy
|
193
|
+
result["DeleteFlag"].nil?.should_not be_truthy
|
184
194
|
end
|
185
195
|
|
186
196
|
it "got error if missing options", :vcr do
|
data/spec/support/config.yml
CHANGED
data/spec/support/vcr.rb
CHANGED
@@ -9,6 +9,8 @@ VCR.configure do |c|
|
|
9
9
|
c.filter_sensitive_data('<SITE_PASS>') { SPEC_CONF["site_pass"] }
|
10
10
|
c.filter_sensitive_data('<SITE_PASS>') { SPEC_CONF["site_pass"] }
|
11
11
|
c.filter_sensitive_data('<HOST>') { SPEC_CONF["host"] }
|
12
|
+
c.filter_sensitive_data('<TOKEN>') { SPEC_CONF["token"] }
|
13
|
+
c.filter_sensitive_data('<TOKEN_MEMBER_ID>') { SPEC_CONF["token_member_id"] }
|
12
14
|
c.filter_sensitive_data('<ACCESS_ID>') { ACCESS_ID }
|
13
15
|
c.filter_sensitive_data('<ACCESS_PASS>') { ACCESS_PASS }
|
14
16
|
end
|
@@ -19,4 +21,4 @@ RSpec.configure do |c|
|
|
19
21
|
name = example.metadata[:full_description].split(/\s+/, 2).join("/").gsub(/[^\w\/]+/, "_")
|
20
22
|
VCR.use_cassette(name) { example.call }
|
21
23
|
end
|
22
|
-
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuo Kaniwa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,10 +120,12 @@ files:
|
|
120
120
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_cvs_got_error_if_missing_options.yml
|
121
121
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_gets_data_about_a_transaction.yml
|
122
122
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_got_error_if_missing_options.yml
|
123
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_linepay_gets_data_about_a_transaction.yml
|
123
124
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_entry_tran_pay_easy_gets_data_about_a_transaction.yml
|
124
125
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_cvs_gets_data_about_a_transaction.yml
|
125
126
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_gets_data_about_a_transaction.yml
|
126
127
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_got_error_if_missing_options.yml
|
128
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_linepay_gets_data_about_a_transaction.yml
|
127
129
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_parameter_contains_Japanese_characters_should_correctly_handle_Japanese.yml
|
128
130
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_exec_tran_pay_easy_gets_data_about_a_transaction.yml
|
129
131
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_gets_data_about_order.yml
|
@@ -134,6 +136,7 @@ files:
|
|
134
136
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_got_error_if_missing_options.yml
|
135
137
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_card_gets_data_about_a_card.yml
|
136
138
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_delete_member_gets_data_about_a_member.yml
|
139
|
+
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_doesn_t_require_card_info_if_token_is_present.yml
|
137
140
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_card_gets_data_about_a_card.yml
|
138
141
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_save_member_gets_data_about_a_transaction.yml
|
139
142
|
- fixtures/vcr_cassettes/GMO_Payment_SiteAPI/_search_card_gets_data_about_a_card.yml
|
@@ -187,9 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
190
|
version: '0'
|
188
191
|
requirements: []
|
189
192
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
193
|
+
rubygems_version: 2.5.1
|
191
194
|
signing_key:
|
192
195
|
specification_version: 4
|
193
196
|
summary: 'GMO Payment API client: Ruby client library for the GMO Payment Platform.'
|
194
197
|
test_files: []
|
195
|
-
has_rdoc:
|