Skip to content

custom URL scheme 형태로 app_scheme 수정 #258

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CirnoV
Copy link
Contributor

@CirnoV CirnoV commented Mar 20, 2025

closes #257

@CirnoV CirnoV requested a review from kiwiyou March 20, 2025 09:05
@@ -64,7 +64,7 @@ function Payment({ userCode, tierCode, data, loading, callback }: Props) {
const queryParameters = iamportUrl.getQuery();
const scheme = iamportUrl.scheme;
let niceTransRedirectionUrl;
if (scheme === data.app_scheme?.toLowerCase()) {
if (data.app_scheme?.split('://')[0].toLowerCase() === scheme) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this.scheme = url.split('://', 1)[0];

IamportUrl 클래스에서 scheme을 처리하는 방식과 유사하게 app_scheme을 가공하는 로직입니다.

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.

custom URL scheme이 아닌 형태의 app_scheme이 입력되는 것을 상정하고 있음
1 participant