-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
リンクタイプ決済の「配送区分」と注文情報の詳細の設定要否を引数で指定できるようにする #116
Conversation
…formation' に true を指定することを追記した
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
実装良さそうです〜
細かいのですが、読んでいて気になった英語的な部分についてコメントしたので
そちらだけご確認お願いします。
@@ -307,6 +307,9 @@ end | |||
EpsilosLinkPaymentGateway is available in all link payments. | |||
For example, GMO Payment After Delivery. | |||
|
|||
If you don't need send paramaters of delivery information details(e.g. consignee_postal, consignee_name, orderer_postal, and orderer_name), you set `delivery_info_required` to `false`. | |||
When you don't set `delivery_info_required`, you must set purchase_detail to delivery information details. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
デフォルトはtrueだよ(default value is true.) 的なことをどこかに明記したい気がしました。
あと、英語的な部分でなんとなく気になった点…
don't need send
=> don't need to send ?
you must set purchase_detail to delivery information details
=>
you must set delivery information details to purchase_detail
(「配送情報詳細を purchase_detail にセットしてね」と言わんとしているのだとしたらこちらな気がしました)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文を意味が通るように修正しました。
Default value of `delivery_info_required` is `true`, therefore you must set delivery information details to purchase_detail When you don't set `delivery_info_required`.
「delivery_info_required
のデフォルト値は true
なので、 delivery_info_required
をセットしない場合は、必ず配達情報の詳細をpurchase_detail
に設定してください」の意味になるよう書いてみました。
@@ -15,6 +15,15 @@ def test_epsilon_link_type_purchase_successfull | |||
end | |||
end | |||
|
|||
def test_epsilon_link_type_not_sending_delivery_information_purchase_successfull | |||
VCR.use_cassette(:epsilon_link_type_not_sending_delivery_information_purchase_successfull) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successfull
=> successful
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successful
が正しいです。
テストの中でミススペルしている箇所を直しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応ありがとうございます。
仕様書の
99固定 GMO後払い決済利用時注文情報の詳細を指定する場合設定。
という一文だけだと、
指定したくない場合に何をセットしたらいいのかとくに書かれていない点と、
「GMO後払い」についてしか言及されていない点がちょっと気になりましたが、
動作が問題ないようならいいと思いますー
@itakurara
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
調査ありがとうございました!
問題なさそうですねー 👌
レビューありがとうございました。 |
実現したいこと
これまで、イプシロンリンクタイプ決済のオーダー情報送信を行う
purchase
メソッドでは 、delivery_code: 99
を無条件で指定していた。そのため注文情報の詳細(注文主・配送先の氏名住所等)をパラメータにセットすることが必須となっていた。この修正で、新たに追加した引数
delivery_info_required
の値でdelivery_code
を設定するかを判断するようにした。(false
の場合は注文情報の詳細の送信が不要)なお、
delivery_info_required
を指定しない場合(既存通りamount
とdetail
のみ引数で渡す場合)は、delivery_info_required
をtrue
とみなし、これまで通り注文情報の詳細を必須とする。やったこと
purchase
メソッドに引数でdelivery_info_required
を渡せるようにしたdelivery_info_required
の値でdelivery_code
と注文情報の詳細をセットするかを判断できるようにしたdelivery_info_required
がfalse
の場合のテストを追加参考:
イプシロン決済システム仕様書 Ver.1.0.42 p46