Skip to content
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

GMO後払い version 1 を使うようにする #108

Merged
merged 5 commits into from
Mar 19, 2020

Conversation

yono
Copy link
Contributor

@yono yono commented Mar 19, 2020

やったこと

  • 他決済に揃えるため、GMO後払いでも version 1 を使うようにしました
  • レスポンスの文字コード変換が適切に行われているかのテストを追加しました

参考:イプシロン決済システム仕様書 Ver.1.0.41 p44, 45

Yusaku Ono added 5 commits March 18, 2020 15:15
version 1 の場合、以下の変更を加えないと360エラーが発生した
- 氏名をマルチバイト文字に変更
- 実在する住所を指定
エラー発生時に error_detail などのキーが含まれなくなっていたため
end

decoded_string
CGI.unescape(string).encode(Encoding::UTF_8, Encoding::CP932)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ちゃんと戻っている 👀
cadf7d2#diff-2d95049f89d68d5ec1ac63e2ea43621f

Copy link
Contributor

@ku00 ku00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌮

@@ -1,6 +1,11 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class EpsilonGmoAfterGateway < EpsilonBaseGateway

RESPONSE_KEYS = DEFAULT_RESPONSE_KEYS + [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

エラー発生時に error_detail などのキーが含まれなくなっていたため

👍

Copy link
Contributor

@odaillyjp odaillyjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@itakurara itakurara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よさげです 🕊

@@ -30,7 +35,7 @@ def purchase(amount, detail = {})
params[:memo2] = detail[:memo2] if detail.has_key?(:memo2)
params[:user_tel] = detail[:user_tel] if detail.has_key?(:user_tel)

commit('receive_order3.cgi', params, [:redirect])
commit('receive_order3.cgi', params, RESPONSE_KEYS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇

Copy link
Contributor

@ryuchan00 ryuchan00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良さそうな雰囲気を感じます

@yono
Copy link
Contributor Author

yono commented Mar 19, 2020

レビューありがとうございます。
こちらマージします!

バージョンアップ用のPRを #107 を参考にして別途出しますー

@yono yono merged commit 10171b1 into master Mar 19, 2020
@yono yono deleted the use-version-1-epsilon-gmo-after branch March 19, 2020 06:44
@yono yono mentioned this pull request Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants