고객 이메일 주소 관련 문의

.
는 UI, 는 UI. ?

// 카드・간편결제를 선택할 수 있는 결제창 호출
await payment.requestPayment({
  method: "CARD", // 카드 및 간편결제
  amount,
  orderId: generateRandomString(),
  orderName: "토스 티셔츠 외 2건",
  successUrl: window.location.origin + "/payment/success.html", // 결제 요청이 성공하면 리다이렉트되는 URL
  failUrl: window.location.origin + "/fail.html", // 결제 요청이 실패하면 리다이렉트되는 URL
  //customerEmail: "customer123@gmail.com",
  //customerName: "김토스",
  // 가상계좌 안내, 퀵계좌이체 휴대폰 번호 자동 완성에 사용되는 값입니다. 필요하다면 주석을 해제해 주세요.
  // customerMobilePhone: "01012341234",
  card: {
    useEscrow: false,
    flowMode: "DEFAULT",
    useCardPoint: false,
    useAppCardOnly: false,
  },
});


// 바로 간편 결제로 연결되는 결체창 호출
await payment.requestPayment({
  method: "CARD", // 카드 및 간편결제
  amount,
  orderId: generateRandomString(),
  orderName: "토스 티셔츠 외 2건",
  successUrl: window.location.origin + "/payment/success.html", // 결제 요청이 성공하면 리다이렉트되는 URL
  failUrl: window.location.origin + "/fail.html", // 결제 요청이 실패하면 리다이렉트되는 URL
  //customerEmail: "customer123@gmail.com",
  //customerName: "김토스",
  // 가상계좌 안내, 퀵계좌이체 휴대폰 번호 자동 완성에 사용되는 값입니다. 필요하다면 주석을 해제해 주세요.
  // customerMobilePhone: "01012341234",
    card: {
        useEscrow: false,
        flowMode: "DIRECT",
        easyPay: "카카오페이",
        useCardPoint: false,
        useAppCardOnly: false,
    },
});
image.png
image.png
Was this page helpful?