고객 이메일 주소 관련 문의
안녕하세요.
카드・간편결제를 선택할 수 있는 결제창을 호출하면 아래 부분에 이메일 주소를 넘기지 않아도 사용자가 직접 이메일 주소를 입력할 수 있는 UI가 나오지만, 바로 간편 결제로 연결되는 결체창을 호출하는 경우에는 사용자가 이메일을 직접 입력할 수 있는 UI가 나오지 않습니다. 간편 결제로 연결되는 경우에는 사용자가 이메일 주소를 직접 입력할 수 있는 방법이 있을까요?
카드・간편결제를 선택할 수 있는 결제창을 호출하면 아래 부분에 이메일 주소를 넘기지 않아도 사용자가 직접 이메일 주소를 입력할 수 있는 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: "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,
},
});// 바로 간편 결제로 연결되는 결체창 호출
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,
},
});

