Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
현상
IssueBillingKeyUIController.updateRequest를 호출해도 빌링키 발급 UI의 요청이 바뀌지 않습니다. 오류도 전달되지 않아서 처음 요청 내용으로 빌링키 발급이 진행됩니다.원인
createSdkUIDelegate의updateRequest(src/SdkDelegate.tsx:363-368)는 UI 종류와 관계없이PortOne.updateLoadPaymentUIRequest를 호출합니다.updateLoadPaymentUIRequest는uiType이PaymentUIType이 아니면BadRequest를 던집니다. 빌링키 발급 UI 타입(PAYPAL_RT)은 여기에 해당하지 않고, 빌링키 발급 UI용으로는updateLoadIssueBillingKeyUIRequest가 따로 있습니다.injectJavaScript로 WebView 안에서 실행되므로 예외가 앱으로 전달되지 않습니다.redirectUrl: 'portone://blank'도 빠집니다. 브라우저 SDK는 갱신 요청으로 저장된 요청 전체를 교체합니다.변경
createSdkUIDelegate가 갱신 함수 이름을 인자로 받습니다.PaymentUI는updateLoadPaymentUIRequest,IssueBillingKeyUI는updateLoadIssueBillingKeyUIRequest를 씁니다.updateRequest가 보내는 요청에도redirectUrl: 'portone://blank'를 넣습니다.onError로 전달하는 것은 동작이 바뀌는 일이라 이번 변경에서는 다루지 않습니다.확인
tsc(strict),oxlint,oxfmt --check통과