Separate payment outcome from checkout activity
A customer closing a browser does not establish failure, and a checkout countdown ending does not establish whether money moved. Store the payment result separately from your order's reservation, delivery and customer-facing display state.
- Keep merchant and provider references with the original order.
- Record amount, currency and timestamps with their timezone.
- Map documented provider states to your internal workflow before launch.
- Identify final results and those requiring another status check.
Avoid treating every result other than success as failure. An unresolved instruction needs investigation before a customer is asked to pay again.
Apply verified updates safely
Use an authenticated notification or the approved server-side status-query process to establish the outcome. Match the reference, amount and currency before changing the order or releasing goods.
- Find the original payment record.
- Verify the source and match the payment details.
- Apply only a permitted state transition.
- Protect credit and fulfilment against duplicates.
- Send conflicting or late results for review.
An older unresolved notification should not overwrite a verified paid result. Handle genuine reversals through their documented lifecycle, with an audit trail rather than silently changing the original credit.
Resolve expiry and conflicting results
Keep expired instructions separate from confirmed failures. Reconcile possible late payments against the original reference and check whether a replacement order exists before deciding what to deliver.
The payment troubleshooting guide explains investigation evidence. Contact PAYJN for the approved state mapping and escalation process.
This help article describes PAYJN's published coverage and general integration practice. It is not the PAYJN API specification; endpoints, field names and current limits are provided in the approved integration documentation.
