Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Making a payment request safe to retry

In short After a network error, an app cannot know whether the payment went through, so retrying blindly can charge twice. An idempotency key lets the server recognise a retry and return the first result instead of charging again. The client has to create the key once, save it before sending, and let only one sender use it. idempotent-queue does this in the browser, Node and React Native, and is…

In the event of a network error, an application cannot determine whether a payment was successfully processed. Attempting to retry the payment blindly could result in double charges. To prevent this, an idempotency key is utilized, allowing the server to recognize repeat requests and return the outcome of the initial request. The client is responsible for generating a unique key, storing it before sending the payment request, and ensuring that only one sender uses it.

The idempotent-queue library facilitates this process across various platforms, including web and mobile applications, with extensive testing conducted using random crashes and lost responses.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How Does a UPI AutoPay Fraud Work — and How Do You Stop a Fake Mandate?

Arjun signed up for a cricket highlights pack one evening — ₹99 for the first month, or so the ad said. He tapped through the payment screen, entered his UPI PIN, and forgot about it.

  • Fraudster sets up recurring debit without consent
  • Starts small, escalates to full monthly amount
  • Regularly check mandates to revoke suspicious ones

Sudo-rs rompe Ansible en Ubuntu 26.04

Jeff Geerling viene moviendo sus servidores de Ubuntu 22 y 24 a Ubuntu 26 durante este año, y el 25 de noviembre de 2026 documentó que esa migración rompe la automatización con Ansible sin ningún…

  • Sudo-rs migration causes Ansible issues on Ubuntu 26.04
  • Additional line before password prompt breaks Ansible process
  • Update Ansible Core 2.22+ or use traditional sudo binary as fix

More from Thursday 26 November →