Start a project
← Build Notes
guide October 16, 2026 · 1 min read

Confirm every Paystack payment before you mark an order paid

A customer reaching your “thank you” page doesn’t prove they paid. Here’s how to check with Paystack itself before an order moves.

On many WooCommerce sites, an order is marked paid because the customer came back from the payment page. That return can be faked, interrupted or repeated. The only proof of payment is Paystack’s own record.

What to check for every payment

  • Ask Paystack’s API for the transaction using its reference, from your server, never the browser.
  • Confirm the amount and currency match the order exactly.
  • Confirm the reference belongs to this order and hasn’t been used before.
  • Only then mark the order paid.

Don’t rely on one signal

Use Paystack’s webhook as well, and check its signature so nobody can post fake “success” messages to your site. Customers close tabs and lose signal, so a background check for orders still waiting will catch payments that went through but never came back. Refunds should go through the same API from the order screen, so your records and Paystack’s always agree.