gmo 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/CHANGELOG.md +5 -0
- data/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_search_mail_deposit_gets_data_about_a_mail_deposit.yml +1 -1
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_secure_tran_gets_data_about_a_transaction.yml +36 -0
- data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/secure_tran_request_params.yml +2 -0
- data/lib/gmo.rb +4 -2
- data/lib/gmo/const.rb +2 -1
- data/lib/gmo/shop_api.rb +8 -0
- data/lib/gmo/version.rb +1 -1
- data/spec/gmo/remittance_api_spec.rb +1 -1
- data/spec/gmo/shop_api_spec.rb +20 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 887bfcdae8390b25695da4ef4277e17a3e7277e8e878305587696efdef422f8c
|
4
|
+
data.tar.gz: 404db2e387cce32a9c373a56ffd645bd81ff4762369fd65fe8a5981f22279ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a40341d2e94063bab2b1471b845f30963303dad494272baf8617c7b01fbbcceeee9cff2308d6e96ac7970de1a2264e92eaeffc595c426d37be75d7270cccceb
|
7
|
+
data.tar.gz: 8b1785be6e12079f3a9997794705cdd4700a3da0d826cd73c5781e47c958be011466627537ff7c0b992449aee2bc1500817937ca3671287e996d6370b6a8130f
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.5.3
|
4
|
+
* Support 認証後決済実行 [#45](https://github.com/t-k/gmo-payment-ruby/pull/45) (Thanks [@darren987469](https://github.com/darren987469))
|
5
|
+
* Support SearchType of INPUT_PARAMS [#47](https://github.com/t-k/gmo-payment-ruby/pull/47) (Thanks [@nkuroda](https://github.com/nkuroda))
|
6
|
+
* Drop ruby 2.0.0 [#48](https://github.com/t-k/gmo-payment-ruby/pull/48)
|
7
|
+
|
3
8
|
## 0.5.2
|
4
9
|
* Support d払い/ドコモ払い(docomo payment), 楽天ペイ(Rakuten payment) [#42](https://github.com/t-k/gmo-payment-ruby/pull/42) (Thanks [@valda](https://github.com/valda))
|
5
10
|
* Add more G-series error codes [#41](https://github.com/t-k/gmo-payment-ruby/pull/41) (Thanks [@ermaac](https://github.com/ermaac))
|
@@ -32,7 +32,7 @@ http_interactions:
|
|
32
32
|
- SAMEORIGIN
|
33
33
|
body:
|
34
34
|
encoding: UTF-8
|
35
|
-
string: Deposit_ID=dep00001&Mail_Address=anyutzy@demo.com&Shop_Mail_Address=anyutzy@demo.com&Account_Name=An Yutzy&Amount=1000&Expire=20170503&Status=0
|
35
|
+
string: Deposit_ID=dep00001&Mail_Address=anyutzy+test@demo.com&Shop_Mail_Address=anyutzy@demo.com&Account_Name=An Yutzy&Amount=1000&Expire=20170503&Status=0
|
36
36
|
http_version:
|
37
37
|
recorded_at: Mon, 01 May 2017 05:58:30 GMT
|
38
38
|
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_secure_tran_gets_data_about_a_transaction.yml
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<HOST>/payment/SecureTran.idPass
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: PaRes=eJydVluTokoSfvdXdPR5NGa4ycUJ2o0CSgRBuQu%2BIXfkooKA%2FvqFdk5Px4mN2I0lAq36yPwyKzMr%0D%0Aq9h%2FDWXx<SITE_PASS>kW3Jqurj3fsJ%2Fr%2BFlVBHWZV8vFuW%2BsfzPtb0%2FpV6Bd<SIT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SITE_PASS><SITE_PASS>KL%2BFpE8W0PrX3f%2FbuF%2FLq68hXr%2F9zCnxeQT%2FvzdOt6ft9%2Bt%2FDNsF7%0D%0A&MD=a6ae35ca097e266b<SITE_PASS><SITE_PASS>e<SITE_PASS>8024f000034d&ShopID=<SHOP_ID>&ShopPass=<SHOP_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=<SITE_PASS>.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
|
+
- Mon, 0<SITE_PASS> Mar 202<SITE_PASS> 0<SITE_PASS>:24:44 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/plain;charset=windows-3<SITE_PASS>j
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: OrderID=Darren-test-202<SITE_PASS>030<SITE_PASS><SITE_PASS>022<SITE_PASS>8&Forward=2a99662&Method=<SITE_PASS>&PayTimes=&Approve=
|
34
|
+
004536&TranID=2<SITE_PASS>030<SITE_PASS><SITE_PASS>003<SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS><SITE_PASS>8<SITE_PASS>075<SITE_PASS>&TranDate=202<SITE_PASS>030<SITE_PASS><SITE_PASS>02444&CheckString=54686df6bad0b4ca3366024c7806ff66
|
35
|
+
recorded_at: Mon, 01 Mar 2021 01:24:44 GMT
|
36
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,2 @@
|
|
1
|
+
pa_res: "eJydVluTokoSfvdXdPR5NG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5tGT\r\nI3+XUgh7nR+301jNwJM96SgB77TQE7jjOOawsZf98UBaNtonBu7cj648Fq9zHsujCCrjchzLxnON\r\nQuU+t10oJPphxnHWrXuuF0EAy2t/huZmgbVwr5x6JuFzEE+FuTFVKArgkHBWaacH0Hj10t2U+74l\r\nNTRRTg3UDVMAuxmXnK/pOROXPTrVy3j87HmgQ6BTEmnjulx1A06JSkEcLRCfMXQY8u3JzJxOQwv6\r\nqt+Fhcf0YjGMDYeYzam9SxNNN3+0begv5NvScweD7u+tIVA01KRue5Q7Zz9HsXVrWTamVl2+VirB\r\nIrdw3mfJSV+ml5QUa4uckZmXdShan1L3KnJcsFeQWsQW7bWBBXFzcMrSgh3FyFxm7qUYxMFuuBzJ\r\nUCYdLY/nGdgtr3dPoNBuIRszyTQKfrho5w1cBs9ec7eL/D4X5FyqzPBZSeG6jGLtuD/OH+qNS+gH\r\noT/JhwuogfIC0hLLBluezVOkXTxlliYRYdaxkB46rteNHR8c833gxuUBY7bKxUs7mT4ftXP+4De4\r\nHBOwQ11KL+FpE8W0PrX3f/buF/Lq68hXr/9zCnxeQT/vzdOt6ft9+t/DNsF7\r\n"
|
2
|
+
md: "a6ae35ca097e266b11e18024f000034d"
|
data/lib/gmo.rb
CHANGED
@@ -37,8 +37,10 @@ module GMO
|
|
37
37
|
}
|
38
38
|
raise GMO::Payment::ServerError.new(result.body, error_detail)
|
39
39
|
end
|
40
|
-
#
|
41
|
-
|
40
|
+
# Transform the body to Hash
|
41
|
+
# "ACS=1&ACSUrl=url" => { "ACS" => "1", ACSUrl => "url" }
|
42
|
+
key_values = result.body.to_s.split('&').map { |str| str.split('=', 2) }.flatten
|
43
|
+
response = Hash[*key_values]
|
42
44
|
# converting to UTF-8
|
43
45
|
body = response = Hash[response.map { |k,v| [k, NKF.nkf('-w',v)] }]
|
44
46
|
# Check for errors if provided a error_checking_block
|
data/lib/gmo/const.rb
CHANGED
@@ -140,7 +140,8 @@ module GMO
|
|
140
140
|
:delivery_place_phone => "DeliveryPlacePhone",
|
141
141
|
:lang_cd => "LangCd",
|
142
142
|
:user_info => "UserInfo",
|
143
|
-
:package_name => "PackageName"
|
143
|
+
:package_name => "PackageName",
|
144
|
+
:search_type => "SearchType"
|
144
145
|
}.freeze
|
145
146
|
|
146
147
|
API_ERROR_MESSAGES_EN = {
|
data/lib/gmo/shop_api.rb
CHANGED
@@ -231,6 +231,14 @@ module GMO
|
|
231
231
|
post_request name, options
|
232
232
|
end
|
233
233
|
|
234
|
+
# 2.2.2.4 認証後決済実行
|
235
|
+
def secure_tran(options = {})
|
236
|
+
name = "SecureTran.idPass"
|
237
|
+
required = [:pa_res, :md]
|
238
|
+
assert_required_options(required, options)
|
239
|
+
post_request name, options
|
240
|
+
end
|
241
|
+
|
234
242
|
# 【コンビニ払い】
|
235
243
|
# 2.1.2.2. 決済実行
|
236
244
|
# お客様が入力した情報で後続の決済センターと通信を行い決済を実施し、結果を返します。
|
data/lib/gmo/version.rb
CHANGED
@@ -469,7 +469,7 @@ describe "GMO::Payment::RemittanceAPI" do
|
|
469
469
|
it "gets data about a mail deposit", :vcr do
|
470
470
|
result = do_api_call
|
471
471
|
result["Deposit_ID"].nil?.should_not be_truthy
|
472
|
-
result["Mail_Address"].
|
472
|
+
result["Mail_Address"].should eq('anyutzy+test@demo.com')
|
473
473
|
result["Shop_Mail_Address"].nil?.should_not be_truthy
|
474
474
|
result["Account_Name"].nil?.should_not be_truthy
|
475
475
|
result["Amount"].nil?.should_not be_truthy
|
data/spec/gmo/shop_api_spec.rb
CHANGED
@@ -276,6 +276,26 @@ describe "GMO::Payment::ShopAPI" do
|
|
276
276
|
end
|
277
277
|
end
|
278
278
|
|
279
|
+
describe "#secure_tran" do
|
280
|
+
it "gets data about a transaction", :vcr do
|
281
|
+
params = File.read("fixtures/vcr_cassettes/GMO_Payment_ShopAPI/secure_tran_request_params.yml")
|
282
|
+
params = YAML.load(params)
|
283
|
+
|
284
|
+
result = @service.secure_tran({
|
285
|
+
:pa_res => params["pa_res"],
|
286
|
+
:md => params["md"]
|
287
|
+
})
|
288
|
+
result["OrderID"].nil?.should_not be_truthy
|
289
|
+
result["Forward"].nil?.should_not be_truthy
|
290
|
+
result["Method"].nil?.should_not be_truthy
|
291
|
+
result["PayTimes"].nil?.should_not be_truthy
|
292
|
+
result["Approve"].nil?.should_not be_truthy
|
293
|
+
result["TranID"].nil?.should_not be_truthy
|
294
|
+
result["TranDate"].nil?.should_not be_truthy
|
295
|
+
result["CheckString"].nil?.should_not be_truthy
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
279
299
|
describe "#exec_tran_cvs" do
|
280
300
|
it "gets data about a transaction", :vcr do
|
281
301
|
order_id = generate_id
|
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.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuo Kaniwa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -155,7 +155,9 @@ files:
|
|
155
155
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_got_error_if_missing_options.yml
|
156
156
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_gets_data_about_order.yml
|
157
157
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_search_trade_multi_got_error_if_missing_options.yml
|
158
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_secure_tran_gets_data_about_a_transaction.yml
|
158
159
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/_void_tran_brandtoken_gets_data_about_order.yml
|
160
|
+
- fixtures/vcr_cassettes/GMO_Payment_ShopAPI/secure_tran_request_params.yml
|
159
161
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_exec_tran_brandtoken_got_data.yml
|
160
162
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_brandtoken_got_data.yml
|
161
163
|
- fixtures/vcr_cassettes/GMO_Payment_ShopAndSiteAPI/_trade_card_got_data.yml
|