결제실패

PaymentMethodWidget..?

const paymentWidgetControl = usePaymentWidget();

const [paymentMethodWidgetControl, setPaymentMethodWidgetControl] =
useState<PaymentMethodWidgetControl | null>(null);

<PaymentMethodWidget
selector="payment-methods"
onLoadEnd={() => {
paymentWidgetControl
.renderPaymentMethods(
'payment-methods',
{value: price},
{
variantKey: 'DEFAULT',
},
)
.then((control: PaymentMethodWidgetControl) => {
setPaymentMethodWidgetControl(control);
});
}}
/>
Was this page helpful?