브랜드페이 JavaScript SDK 연동 관련 질문드립니다.

.

재 JavaScript SDK.

Client는 React, Server는 Spring Boot.

- Client URL: test.com
- API URL: api.test.com

const paymentWidget = PaymentWidget(clientKey, customerKey, {
      // 브랜드페이 설정 파라미터를 추가하세요.
      brandpay: {
        // Access Token 발급에 사용되는 리다이렉트 URL
        redirectUrl: window.location.origin + '/callback-auth',
      },
    })

면 redirectUrl 로 code와 customerKey,
은 redirectUrl을 API Server (api.test.com)로 Access Token ?

면 redirectUrl을 Client (test.com), code와 customerKey로 API Server (api.test.com)?

..

1. SDK -> API Server로 redirect -> Access Token
2. SDK -> Client로 redirect -> API Server -> Access Token

.
Was this page helpful?