const price = 550;
const res = await fetch('https://api.exchangerate-api.com/v4/latest/USD');
const data = await res.json();
const currentRate = data.rates.KRW;
const finalPriceKRW = Math.floor(price * currentRage);
const paymentMethodWidget = paymentWidget.renderPaymentMethods(
"#payment-method",
{ value: finalPriceKRW },
{ variantKey: "qomics_en" }
);
const price = 550;
const res = await fetch('https://api.exchangerate-api.com/v4/latest/USD');
const data = await res.json();
const currentRate = data.rates.KRW;
const finalPriceKRW = Math.floor(price * currentRage);
const paymentMethodWidget = paymentWidget.renderPaymentMethods(
"#payment-method",
{ value: finalPriceKRW },
{ variantKey: "qomics_en" }
);