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

// [Deprecated v1.0.3]: m_redirect_url 관련 문의 드립니다. #168

Open
allemptysheep opened this issue Apr 21, 2022 · 3 comments
Open

Comments

@allemptysheep
Copy link

allemptysheep commented Apr 21, 2022

// [Deprecated v1.0.3]: m_redirect_url

버전 정보

"iamport-react-native": "^2.0.0",
"react-native-webview": "^11.18.1",

문서를 참조한 아래 설정 완료.

  1. App Scheme 등록
  2. 외부 앱 리스트 등록
  3. App Transport Security 설정

[문제점]

해당 파라미터는 더 이상 사용 되지 않는다고 되어 있는데 해당 파라미터 값에 app_scheme 와 같은 값을 넣어주지 않으면
결제 취소 시 아래의 화면이 나타나며 원래 어플리케이션으로 리다이렉션 되지 않으며 콜백을 받을 수 없습니다.
m_redirect_url 값을 넣어주면 작동 되긴 하는데 이대로 계속 사용해도 괜찮을까요?

image

@anymate98
Copy link
Contributor

anymate98 commented Apr 21, 2022

결론적으로 말하자면 내부적으로 m_redirect_url은 여전히 필요할 수 있는 값이기 때문에 파라미터를 유지하게 되었습니다.
그런데 app_scheme과는 서로 다른 파라미터인데 왜 같은 값이 아니면 오류가 발생하는지는 원인 파악이 필요할 듯 한데
사용하신 pg와 결제수단 등의 정보를 확인하고 싶습니다.

@allemptysheep
Copy link
Author

사용 PG

image

m_redirect_url 입력, 미입력에 따른 테스트

해당 파라미터가 없을 때 callback 값을 받지 못하였음.

m_redirect_url 값 미 입력 시

  1. 결제 전 취소 시 callback 값을 받을 수 없음.( 이후 '2.'의 결제 후 완료 버튼 클릭과 같은 하얀 화면 )

image

  1. 토스 결제 후 callback 값을 받을 수 없음. 완료 버튼 클릭 시 아래와 같은 하얀 화면이 뜸.

image

image

m_redirect_url 값 입력 시

  1. 결제 전 취소 시 callback 값을 받을 수 있음.

image

image

  1. 토스 결제 후 callback 값을 받을 수 있음.

image

image

@anymate98
Copy link
Contributor

anymate98 commented Apr 21, 2022

문제상황 확인했습니다. 라이브러리 특성상 m_redirect_url의 값 자체가 올바른지는 크게 상관이 없고 실제로 app_scheme과 같은 값을 넣으신 것처럼 비어있지만 않으면 정상적으로 동작은 합니다. 따라서 지금처럼 사용하셔도 크게 상관없습니다.

다만 모바일에서 iframe 방식으로 작동하지 않는 pg사들이 많아 이번 업데이트로 인해 오히려 m_redirect_url이 없을 경우 상기의 문제가 나타나게 되었습니다.

빠른 시일 내에 문제를 보완하는 업데이트를 배포하겠습니다.

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

No branches or pull requests

2 participants