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

paypal_v2가 PG사 code로 작동하지 않음 #248

Open
juuc opened this issue Jun 30, 2024 · 1 comment
Open

paypal_v2가 PG사 code로 작동하지 않음 #248

juuc opened this issue Jun 30, 2024 · 1 comment

Comments

@juuc
Copy link

juuc commented Jun 30, 2024

Javascript SDK에서 페이팔의 경우 IMP.request_pay가 아닌 IMP.load_ui를 불러와야 하는 것처럼 react native에서도 예외처리를 해주고 싶은데 가능할까요? 현재는 아래 코드처럼 했을 때 'PG사가 올바르지 않습니다' 문구가 나오고 있습니다. 아래는 data 예시입니다.

data = {
  "amount": "0.85", 
  "buyer_email": "***",
   "buyer_name": "***", 
  "buyer_tel": "010-1234-5678", 
  "currency": "USD", 
  "language": "ko", 
  "m_redirect_url": "***",
   "merchant_uid": "***", 
  "name": "***", 
  "notice_url": "***", 
  "pay_method": "paypal", 
  "pg": "paypal_v2"
}

<IMP.Payment
  userCode={userCode as string}
  loading={<Loading />}
  data={{
    ...data,
    app_scheme:
      '***',
  }}
  callback={callback}
/>
@anymate98
Copy link
Contributor

안녕하세요. 현재 iamport-react-native는 paypal_v2와 IMP.load_ui를 지원하지 않아 paypal_v2를 사용하시려면 iamport-react-native를 사용하지 않고 직접 개발해주셔야 합니다.

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