Payment-widget got error DUPLICATED_ORDER_ID
https://docs.tosspayments.com/guides/v2/payment-widget/integration
I’m using the payment-widget. When the backend receives the confirmation request with the following data:
{
orderId: 'd440c5e8-26b4-4**',
amount: 500000,
paymentKey: 'web_c202511*'
}
I then call the API v1/payments/confirm for check the results and I receive the status: "WAITING_FOR_DEPOSIT". Then i waited a few seconds. After that, I called v1/payments/confirm again and got the error DUPLICATED_ORDER_ID.
How can I know when the order has been fully paid?
I’m using the payment-widget. When the backend receives the confirmation request with the following data:
{
orderId: 'd440c5e8-26b4-4**',
amount: 500000,
paymentKey: 'web_c202511*'
}
I then call the API v1/payments/confirm for check the results and I receive the status: "WAITING_FOR_DEPOSIT". Then i waited a few seconds. After that, I called v1/payments/confirm again and got the error DUPLICATED_ORDER_ID.
How can I know when the order has been fully paid?
