석영
석영
웹훅 관련 질문드립니다.
No description
10 replies
웹훅 관련 질문드립니다.
No description
10 replies
웹훅 관련 질문드립니다.
Xvm_3qYqQG9pgNP81AzM1 입니다!
10 replies
결제위젯 웹훅 연동 문의드립니다.
아,, 제가 테스트 환경에서만 적용을 해둔 상태였네요, 라이브에도 반영해뒀어요! 🙂 감사합니다
12 replies
결제위젯 웹훅 연동 문의드립니다.
h4NHtcVzyifGkrHeOP6vD
h4NHtcVzyifGkrHeOP6vD
입니다!
12 replies
결제위젯 웹훅 연동 문의드립니다.
No description
12 replies
안녕하세요 결제위젯 연동 문의드립니다.
살펴보니 결제금액에 nan이 들어가서 생긴 문제였네요,, 🙂 친절하게 도와주셔서 감사합니다
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
넵 도움주셔서 감사합니다!! 🙂
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
네 버튼을 눌러도 아무일도 안일어나서,, 일주일 전만해도 결제관련 모달창이 떴었거든요
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
네 그렇습니다 콘솔은 제외하고 확인하실 수 있습니다
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
No description
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
https://aretepersonalities.me/ 우선 접속가능한 도메인 공유드릴게요,,!
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
No description
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
집에있는 와이파이 사용중이긴한데요,,!
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
크롬은 딱히 없구 방화벽은 한번 찾아보겠습니다!
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
<script>
import { loadPaymentWidget, ANONYMOUS } from "@tosspayments/payment-widget-sdk";

// 오픈된 무료 키
const CLIENT_KEY = "test_ck_YZ1aOwX7K8mONRZKg19VyQxzvNPG";


export default {
name: "paymentVue",
setup() {
useMeta({
description: "결제",
});

const userAnswers = useUserStore();

return {
userAnswers,
};
},
data() {
return {
isLoading: true,
amount: useQuantityStore().quantity.price * useQuantityStore().quantity,
paymentResource: {
orderId: this.userAnswers.orderId,
orderName: "아레테 정식 검사코드",
successUrl: `${window.location.origin}/paid/check`,
failUrl: `${window.location.origin}/paid/fail`,
customerEmail: this.userAnswers.email,
customerName: this.userAnswers.userName,
},
paymentWidget: null,
};
},

async mounted() {
this.paymentWidget = await loadPaymentWidget(CLIENT_KEY, ANONYMOUS);
await this.InitPaymentWidget();
},

methods: {
async InitPaymentWidget() {
await this.paymentWidget.renderPaymentMethods(
"#payment-method",
this.amount
);
await this.paymentWidget.renderAgreement("#agreement");
this.settimeout(1500);
},

async reqeustWidgetPayment() {

if (!!this.userAnswers.orderId) {
console.log("버튼 클릭");
this.paymentWidget
.requestPayment(this.paymentResource)
.then((data) => console.log(data))
.catch(function (error) {
if (error.code === "USER_CANCEL") {
// 결제 고객이 결제창을 닫았을 때 에러 처리
console.log(error);
}
if (error.code === "INVALID_CARD_COMPANY") {
// 유효하지 않은 카드 코드에 대한 에러 처리g
console.log(error);
}
});
} else {
alert(
"주문 아이디가 정상적으로 생성되지 않았어요. 다시 주문서를 작성해주세요."
);
this.$router.push("/paid/entry/payment");
}
},
},
};
</script>
<script>
import { loadPaymentWidget, ANONYMOUS } from "@tosspayments/payment-widget-sdk";

// 오픈된 무료 키
const CLIENT_KEY = "test_ck_YZ1aOwX7K8mONRZKg19VyQxzvNPG";


export default {
name: "paymentVue",
setup() {
useMeta({
description: "결제",
});

const userAnswers = useUserStore();

return {
userAnswers,
};
},
data() {
return {
isLoading: true,
amount: useQuantityStore().quantity.price * useQuantityStore().quantity,
paymentResource: {
orderId: this.userAnswers.orderId,
orderName: "아레테 정식 검사코드",
successUrl: `${window.location.origin}/paid/check`,
failUrl: `${window.location.origin}/paid/fail`,
customerEmail: this.userAnswers.email,
customerName: this.userAnswers.userName,
},
paymentWidget: null,
};
},

async mounted() {
this.paymentWidget = await loadPaymentWidget(CLIENT_KEY, ANONYMOUS);
await this.InitPaymentWidget();
},

methods: {
async InitPaymentWidget() {
await this.paymentWidget.renderPaymentMethods(
"#payment-method",
this.amount
);
await this.paymentWidget.renderAgreement("#agreement");
this.settimeout(1500);
},

async reqeustWidgetPayment() {

if (!!this.userAnswers.orderId) {
console.log("버튼 클릭");
this.paymentWidget
.requestPayment(this.paymentResource)
.then((data) => console.log(data))
.catch(function (error) {
if (error.code === "USER_CANCEL") {
// 결제 고객이 결제창을 닫았을 때 에러 처리
console.log(error);
}
if (error.code === "INVALID_CARD_COMPANY") {
// 유효하지 않은 카드 코드에 대한 에러 처리g
console.log(error);
}
});
} else {
alert(
"주문 아이디가 정상적으로 생성되지 않았어요. 다시 주문서를 작성해주세요."
);
this.$router.push("/paid/entry/payment");
}
},
},
};
</script>
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
아래는 해당 페이지 전체 코드입니다
<template>
<div>
<Order class="mt-12 mb-12" />
<div id="payment-method"></div>
<div id="agreement"></div>
</div>

<ButtonVue class="ma-12" id="request" @click="reqeustWidgetPayment">
결제하기
</ButtonVue>

</template>]
<template>
<div>
<Order class="mt-12 mb-12" />
<div id="payment-method"></div>
<div id="agreement"></div>
</div>

<ButtonVue class="ma-12" id="request" @click="reqeustWidgetPayment">
결제하기
</ButtonVue>

</template>]
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
영상 전달드려요!
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
네! 잠시만요 영상캡쳐해서 올려드릴게요!
41 replies
안녕하세요 결제위젯 연동 문의드립니다.
if 문안에 console.log를 작성해봤는데 버튼 클릭시 콘솔은 출력되고 있습니다
41 replies