Повторное использование order_id превратило мягкие отклонения в жесткие ошибки

DEV · 19.11.2026 · 00:00

Проблема возникла, когда поддержка получала жалобы на отклонение карт при повторной попытке оплаты. Повторная попытка обрабатывалась как ошибка дублирующей ссылки.

Читать в источнике

Оригинал

A reused order_id turned soft declines into hard failures

Found this when support kept forwarding the same complaint: "my card was declined, I tried again, now it says duplicate order." Our checkout created one order, then sent the order id to the gateway as the merchant reference. Customer pays, issuer returns a soft decline (05 or 51). Customer fixes the card and hits Pay again. Same order, same reference, second attempt. The gateway treated the reference as unique per transaction. The retry came back as a duplicate-reference error before it ever r