var options = {
method: "POST",
url: "https://api.tosspayments.com/v1/payments/confirm",
headers: {
Authorization:
"Basic dGVzdF9za19xTGxESmFZbmdybzQyb0pvUjZsOGV6R2RScFh4Og==",
"Content-Type": "application/json",
},
data: {
paymentKey: getUrlObj.paymentKey,
amount: getUrlObj.amount,
orderId: getUrlObj.orderId,
},
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
var options = {
method: "POST",
url: "https://api.tosspayments.com/v1/payments/confirm",
headers: {
Authorization:
"Basic dGVzdF9za19xTGxESmFZbmdybzQyb0pvUjZsOGV6R2RScFh4Og==",
"Content-Type": "application/json",
},
data: {
paymentKey: getUrlObj.paymentKey,
amount: getUrlObj.amount,
orderId: getUrlObj.orderId,
},
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});