브랜드페이

브랜드페이란?

브랜드페이는 고객이 카드를 한 번만 등록하면 다음부터는 비밀번호 입력만으로 간편하게 결제할 수 있는 기능입니다. brandpay 객체를 통해 구현합니다.

결제 요청

브랜드페이 결제를 요청할 때는 requestPayment 메서드를 사용합니다. 결제 위젯과 유사하지만, 브랜드페이에 특화된 UI가 제공됩니다.

const brandpay = tossPayments.brandpay();

brandpay.requestPayment({
    orderId: "BRAND_ORDER_ID_123",
    orderName: "시그니처 원두 200g",
    successUrl: window.location.origin + "/success",
    failUrl: window.location.origin + "/fail"
});