Status Codes

The numeric status codes returned for a payment and their meanings

Every payment carries a numeric statusCode. The same value appears in the Proceed and Check responses, and as remoteStatusCode in webhooks. Always use the numeric code for programmatic logic — the human-readable text may change.

All status codes#

CodeStatusMeaning
1ProcessingThe payment is registered and being processed, but not yet paid.
2SucceededThe amount was captured successfully. Terminal success state.
3RejectedThe payment was rejected or the card was declined. Terminal failure state.
4RefundedA refund was processed — full or partial. The same code is used for both; compare the refunded amounts to tell them apart.
6Authorization declinedThe authorization was declined by the provider.
9InitializedThe payment intent has been created and is awaiting a payment method. This is the initial state.
10Reversed / CanceledA pre-authorization was reversed and the reserved funds released.
11Insufficient amountThe payment failed because of insufficient funds.
12Requires authenticationUser action is required — redirect the buyer to the payUrl to enter card details or complete a 3D Secure / OTP challenge.
13Pre-authorizedFunds were reserved but not captured. Awaiting capture or release.
14Auto-refundedAn automatic refund was processed.

Codes you will see for card payments

For Visa / Mastercard card payments, the common codes are 12 (requires card entry or 3D Secure), 2 (succeeded), 3 (declined), and 4 / 14 (refunded). Pre-authorization codes (13, 10) apply to the reservation flow.

Grouping by outcome#

If you want to bucket payments into high-level states (for dashboards or reporting), these are the groupings Yassir uses internally:

GroupStatus codes
Success2
Processing1, 12
Failed3, 6, 11
Refunded4, 14
Canceled10
Initialized9