inquiring about the brand pay error.
Dear Brandpay,
We have a product want to implement brandpay sdk on that, but during the time we implement we see an error (image attached)
At the first time, we can register brandpay method and pay success.
But from the second time, an error "This payment method aready registered" appears when we used the account we registered before. Can you guys help me give a solution for that?
this is the code we implemented:
brandpay
.requestAgreement("회원가입") // 자동 결제 선택 약관 동의 호출 회원가입, 카드, 계좌, 빌링
.then(function () {
console.log("requestAgreement ok");
brandpay.openSettings().catch(function (error) {
if (error.code === "USER_CANCEL") {
// 사용자가 창을 닫아 취소한 경우에 대한 처리
}
});
brandpay
.addPaymentMethod("계좌") // card: 카드 account: 계좌
.then(function (methods) {
console.log("addPaymentMethod", methods);
// 성공 처리
brandpay
.requestPayment({
amount: "200", // 결제 금액
orderId: orderId, // 주문에 대한 고유한 ID 값
orderName: "토스 티셔츠 외 2건", // 결제에 대한 주문명
})
......
We have a product want to implement brandpay sdk on that, but during the time we implement we see an error (image attached)
At the first time, we can register brandpay method and pay success.
But from the second time, an error "This payment method aready registered" appears when we used the account we registered before. Can you guys help me give a solution for that?
this is the code we implemented:
brandpay
.requestAgreement("회원가입") // 자동 결제 선택 약관 동의 호출 회원가입, 카드, 계좌, 빌링
.then(function () {
console.log("requestAgreement ok");
brandpay.openSettings().catch(function (error) {
if (error.code === "USER_CANCEL") {
// 사용자가 창을 닫아 취소한 경우에 대한 처리
}
});
brandpay
.addPaymentMethod("계좌") // card: 카드 account: 계좌
.then(function (methods) {
console.log("addPaymentMethod", methods);
// 성공 처리
brandpay
.requestPayment({
amount: "200", // 결제 금액
orderId: orderId, // 주문에 대한 고유한 ID 값
orderName: "토스 티셔츠 외 2건", // 결제에 대한 주문명
})
......

