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

feat: 네이버페이 useCfmYmdt 값을 설정에서 변경 가능하도록 수정 #28

Merged
merged 3 commits into from
May 11, 2022

Conversation

nonameP765
Copy link
Contributor

네이버페이 결제형 결제시

현가맹점에 제공되지 않는 기능입니다.

라는 문구와 함께 실패하는 문의가 들어와 해당 기능과 관련있는 파라매터를 설정으로 뺐습니다.
naverUseCfm 초기값은 기존에 하드코딩으로 있던 20991231로 설정하였습니다. (업데이트 시 기존 가맹점 영향 최소화를 위해)

@nonameP765 nonameP765 added the enhancement New feature or request label May 9, 2022
@nonameP765 nonameP765 self-assigned this May 9, 2022
@@ -250,7 +257,10 @@ public function iamport_payment_info( $order_id ) {
}

$response["naverProducts"] = $naverProducts;
$response["naverUseCfm"] = "20991231";
$naverUseCfm = $this->settings["useCfmYmdt"];
if ($naverUseCfm && $naverUseCfm != "") {
Copy link
Contributor

Choose a reason for hiding this comment

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

else 케이스의 경우 20991231이라도 값을 넣어야하지 않을까용?

Copy link
Contributor Author

@nonameP765 nonameP765 May 9, 2022

Choose a reason for hiding this comment

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

else의 경우엔 일부로 설정을 안했다고 생각해서 넣어주지 않으려고 했습니다
근데 이전에 설정 안한사람들이랑 구분을 해야겠네요 그러면...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

아니면 설정을 안하려면 'none' 값을 넣어주세요 같은건 어떤가요??

Copy link
Contributor

Choose a reason for hiding this comment

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

뭐 설정 안함 이런 체크박스 있고 그거 선택하면 입력된거 없어지고 입력 못하게(input disabled) 막으면 제일 좋은데 말 하는것만으로도 너무 귀찮을 것 같네요...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

오 흠 그런설정 기존에 있던게 있나요? 참고하면 간단할거같은데...

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 Author

Choose a reason for hiding this comment

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

생각해보니 체크박스 설정도 참 불편한게
기존에 null 체크같은걸 해야해서

기존 사용자는 null -> 20991231
체크한 사람은 true -> 입력한 값
체크 푼 사람은 false -> 안넣음

엄청 귀찮긴 하겠네요..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

체크박스 좀 찾아보겠습니다

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 Author

Choose a reason for hiding this comment

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

27909c2
이런 느낌도 코드도 간단하고 젤 괜찮을 것 같아 확인 부탁드림다
image

@nonameP765 nonameP765 requested a review from SoleeChoi May 9, 2022 08:36
Copy link
Contributor

@kdino kdino left a comment

Choose a reason for hiding this comment

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

LGTM👍

@nonameP765 nonameP765 merged commit 24bbd5e into main May 11, 2022
@disjukr disjukr deleted the feat/naverpay_ext_useCfmYmdt branch March 6, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants