Skip to content

Crypto payment database recovery: avoid duplicate delivery

Restore merchant payment records without delivering paid orders twice. Reconcile the recovery gap, protect fulfillment history and test isolated recovery.

RestoreNo repeats

Restoring a merchant database does not undo a crypto payment or a delivery that happened after the backup. Before restarting payment workers, reconcile what the restored application remembers with what actually happened outside it. Otherwise, an old unpaid order can become a second payment request, and a lost delivery marker can become a second license or shipment.

This guide covers merchant-side backup and recovery design for orders paid in USDC or USDT where those payment methods are available. It is not a description of Yolfi's internal backups, a recovery guarantee or a wallet-key recovery procedure. For a live payment-service disruption rather than lost merchant records, use the payment outage runbook.

Define what a payment backup must preserve

A wallet receipt alone cannot reconstruct the product, customer and delivery decision your application recorded. Keep the commercial order, payment attempts and fulfillment history recoverable together, with access restricted to the people who need them.

For Yolfi API Checkout, the checkout lifecycle documentation recommends retaining merchantOrderId, checkoutSessionId and invoiceId when available. It also distinguishes a COMPLETED session from a confirmed payment: the session has an Invoice, but payment can still be pending. Preserve those distinctions during recovery.

Record group Preserve Recovery risk if missing
Commercial order Customer binding, agreed price, currency, items and terms A payment cannot be matched to the purchase
Payment attempts Order relationship, provider references, asset, network and verified state A receipt is matched to the wrong attempt
Processing history Accepted event references, durable work and processing decisions Old events are treated as new work
Fulfillment Delivery operation reference, result and external confirmation A delivered order is delivered again
Exceptions Refund, cancellation and manual-review decisions Recovery repeats an action already resolved

Keep required configuration recoverable too, but separate application-data backups from secret management. Do not put wallet recovery phrases, private keys or merchant API credentials into order exports or a recovery worksheet. Verify that authorized operators can recover required secrets through your established protected process.

Choose recovery objectives before choosing a schedule

Decide how much recent application history the business can afford to reconstruct and how long payment processing may remain paused. Those targets should determine backup frequency, storage separation and the recovery method—not an assumption that a nightly file is enough.

The PostgreSQL backup documentation distinguishes SQL dumps, file-system backups and continuous archiving. Use the supported procedure for your database and version. A copied folder, a successful upload or an export button is not, by itself, evidence that the complete application can be restored.

Include databases, required object storage and delivery records in the recovery plan. Document dependencies and the consistent recovery point each method can provide. Retain a protected copy outside the failure boundary you are planning for, and test access to it without relying on the failed host.

Limit retained personal data and restrict backup access. The payment privacy guide covers the wider data trail; recovery is not a reason to keep every customer payload forever.

Restore in isolation with side effects disabled

A recovery drill should not send real customer emails, create payable requests, issue licenses, ship goods or move funds. Restore into an isolated environment with outbound access blocked by default. Disable payment creation, event consumers, scheduled jobs and delivery workers before starting the restored application.

Do not trust an old database flag to keep these actions disabled: the flag itself may have been restored to an earlier value. Apply isolation outside the restored data as well, through the environment's network and worker controls. Use controlled fixtures for external services rather than production credentials.

Check that the restored records are readable, related correctly and usable by the application. Confirm that an order can be traced through its payment attempts to the delivery decision. Record the selected backup, its recovery point, the restoration steps and the observed time to reach a usable isolated system. A drill is not complete merely because the database process starts.

Reconcile the gap before replaying work

The dangerous interval begins at the restored recovery point and ends when all relevant external effects have been accounted for. Payments and deliveries may have continued while your application was unavailable. Do not close the interval just because the database is running again.

For each affected order, compare the restored record with verified payment evidence and the actual delivery system. Use the provider's documented retrieval or export options and your retained records. Confirm their scope and availability; do not assume Yolfi offers unlimited event replay or complete historical reconstruction.

Evidence after restore Safe next action
Payment confirmed and delivery independently verified Restore the delivery record; do not deliver again
Payment confirmed and delivery confirmed not to have happened Queue one controlled delivery
Payment confirmed but delivery outcome unknown Hold for investigation, not automatic retry
Payment unresolved Check the original attempt; do not request another payment by default
Refund or cancellation occurred after the backup Restore that decision before resuming related work

A missing marker is not proof that an action never happened. For digital delivery, check the license or entitlement system. For physical goods, check the warehouse or shipping record. The payment reconciliation guide explains the matching process; here the extra requirement is to rebuild evidence lost at the recovery boundary.

Rebuild idempotency before restarting consumers

A backup may contain an order but not its later event-processing or delivery record. Replaying a genuine notification against that older state can repeat a business action. Restoring only the event table also fails if the corresponding order or fulfillment ledger comes from a different point.

Yolfi's webhook documentation identifies payment.confirmed as the primary fulfillment trigger and requires signature verification and duplicate-safe processing. Recovery must preserve those controls, not bypass verification or turn every historical event into a new purchase.

Restore the payment-to-order bindings and delivery protections before permitting consumers to act. When delivery uses another system, verify its documented operation-lookup and idempotency behavior. An external system may remember a shipment or license that your restored database forgot. Do not assume that reusing a key is safe forever or supported by every service.

Use the webhook idempotency guide for normal duplicate handling. After a restore, add explicit recovery decisions for uncertain external effects. Release work in controlled groups and retain an owner for every unresolved order.

Rehearse the failure that a healthy backup can hide

Use synthetic orders and simulated external results. Include a backup taken before payment confirmation, a delivery completed after that backup, and a crash after delivery but before the application saved its result.

Drill case Required observation
Restore predates a confirmed payment Reconciliation recovers the payment-to-order relationship
Delivery happened after the recovery point The order is not delivered twice
A notification is processed again No second business effect occurs
Delivery history is unavailable The order remains in review rather than being retried blindly
An old scheduled job becomes eligible Isolation prevents a real request or customer message
A required protected secret is unavailable Recovery stays blocked and records the dependency

Record what was actually restored, which evidence was missing and what remained unresolved. Fix the recovery procedure, then repeat the affected case. Keep a concise runbook that another authorized operator can follow without access to someone's memory.

FAQ

Does the blockchain replace a merchant payment backup?

No. A transfer record does not recreate your customer authorization, cart, accepted terms or fulfillment history. Preserve the mapping between the commercial order, its payment and the action it authorized.

Can we replay all payment webhooks after a restore?

Only through supported mechanisms and after rebuilding the relevant protections. Check availability, verify events and reconcile external effects first. A replay must not repeat a delivery whose local record was lost.

Is a completed backup job enough to reopen sales?

No. Demonstrate a usable restore, reconcile the affected interval and verify that payment and delivery workers can resume without repeating actions. Keep unresolved orders out of automatic processing.

Does direct wallet settlement remove the need for recovery?

No. Yolfi payment links describe funds going directly to the merchant wallet. That settlement model does not restore the merchant's customer, order or delivery records after data loss.

Conclusion: recover decisions, not just rows

A useful payment backup lets you reconstruct why an order was paid, delivered, refunded or held. Restore in isolation, reconcile the gap against external evidence and rebuild duplicate protections before enabling workers. Reopen only when the recovered application can distinguish unfinished work from work it has merely forgotten.

Start accepting crypto payments today

Connect a wallet, create your first link and get paid in minutes.

Business owner working at a laptop
Payment received+120.00 USDT