How provider errors are returned
Errors that originate downstream are returned with aPROVIDER_* prefixed code in the standard error envelope, and the provider’s raw text in messages.
PROVIDER_* codes is documented in Error codes. Common ones include PROVIDER_INVALID_REQUEST, PROVIDER_REQUEST_TIMEOUT, PROVIDER_PAYMENT_NOT_FOUND, PROVIDER_INVALID_AMOUNT, PROVIDER_COUNTRY_NOT_SUPPORTED, PROVIDER_CURRENCY_NOT_ALLOWED, and PROVIDER_UNAVAILABLE_PAYMENT_METHOD.
For card payments that the issuer declined, retrieve the payment with Get Payment and inspect the transaction history. Each transaction includes the provider’s raw response, including the ISO 8583 decline code.
Soft vs hard declines
Whether you should retry a card decline depends on the type of decline. Soft declines may resolve on their own. Hard declines will not.Retrying hard declines wastes processing capacity and can trigger card network fraud rules. Always classify the decline type before deciding to retry.
Common ISO 8583 decline codes
These are standard codes returned by card issuers and surfaced by every major acquirer. Yuno passes them through verbatim in the transaction response.Card declines
Network and gateway issues
For non card methods (PIX, Boleto, OXXO, PSE, SEPA DD, ACH DD, and others), providers do not use ISO 8583 codes. The Yuno
code will still be a PROVIDER_* value and the provider’s raw text will be in messages. Inspect the message for the provider specific reason.
MCC restrictions
Some declines relate to the Merchant Category Code (MCC) on your account.Retry strategy
1
Classify the decline
Read the ISO 8583 code (cards) or the provider message (non card) and decide if it is soft or hard using the tables above.
2
For a soft decline, retry with backoff
Use exponential backoff with full jitter. Cap retries at 3 attempts. Do not retry faster than every 1 s.
3
For a hard decline, do not retry
Surface a clear message to the customer and offer an alternate payment method.
Escalating provider issues
If you encounter persistent provider errors that are not listed here, open a support ticket with:- The Yuno
payment_idand the responsex-trace-idheader. - The provider name and the raw response code or message.
- Timestamp and frequency.