const brandpay = tossPayments.brandpay({
customerKey: '--customer key--',
redirectUrl: window.location.origin + '/brandpay-redirect',
});
brandpay.requestPayment({
amount: {
currency: 'KRW',
value: 50000,
},
orderId: "8zHfRHh0HEmRYthCCS_Ql",
orderName: '토스 티셔츠 외 2건',
successUrl: window.location.origin + '/payment/study/success',
failUrl: window.location.origin + '/test',
customerEmail: 'customer123@gmail.com',
customerName: '김토스',
});
const brandpay = tossPayments.brandpay({
customerKey: '--customer key--',
redirectUrl: window.location.origin + '/brandpay-redirect',
});
brandpay.requestPayment({
amount: {
currency: 'KRW',
value: 50000,
},
orderId: "8zHfRHh0HEmRYthCCS_Ql",
orderName: '토스 티셔츠 외 2건',
successUrl: window.location.origin + '/payment/study/success',
failUrl: window.location.origin + '/test',
customerEmail: 'customer123@gmail.com',
customerName: '김토스',
});