Define a small allowlist of payment log fields

Record the event type, outcome category, timestamp, attempt and order references, environment, and sanitized provider code. Avoid serializing full request bodies or raw provider responses. Log only the fields needed to investigate the outcome and explain where the attempt stopped.

Check every place that captures payment-adjacent information

Review application logs, client analytics, error reports, browser replay, and support exports. Avoid collecting raw card numbers, verification codes, account secrets, or identity documents in those systems. If a provider reference can grant access on its own, treat it as sensitive and keep it out of ordinary logs.

Make logs useful to the people who actually troubleshoot

Give support a reference they can share with engineering. Give finance a provider reference from approved reports. Test whether a team member can follow an interrupted order from checkout to the gateway without asking the shopper to repeat card information.

Review a failed checkout log before release

  • Use a synthetic decline and verify the event can be traced.
  • Search the diagnostic output for only the expected allowlisted fields.
  • Check that screenshots, request dumps, and support notes preserve the same data boundaries.

Sources and further reading

Ready to share your business details?

Start an application or contact Lunar Payments about your setup.

Start application Contact us