Skip to content
Last updated

SDK Errors

Overview

When integrating the Ryft SDK, it's important to handle potential errors that may arise during the payment process. Proper error handling ensures a smooth user experience and helps in diagnosing issues effectively.

Common SDK Errors

The following table lists common error codes that you may encounter when processing payments using the Ryft SDK, along with their descriptions:

lastErrorDescription
insufficient_fundsThe cardholder has insufficient funds to complete the transaction
declined_do_not_honourThe cardholder's bank declined the payment
invalid_card_numberThe card number provided was invalid
cvv2_failureThe CVV2 code provided was incorrect
cvc_requiredThe CVV2 code is required but was not provided
restricted_cardAn account restriction has been placed on the cardholder's account by the card issuer
blacklisted_cardThe card has been blacklisted due to previous fraudulent activity
blacklisted_binThe card's BIN (Bank Identification Number) has been blacklisted
blacklisted_countryThe card's country has been blacklisted
blacklisted_ipThe IP of the cardholder has been blacklisted
risk_declinedThe payment was declined due to one or more risk/fraud-related rules being triggered
security_violationThe payment was declined due to a security violation
expired_cardThe card has expired
gateway_rejectThe card's postcode or country is not supported by the merchant
suspected_fraudThe payment was declined due to suspected fraud
contact_issuerThe cardholder's bank has requested that you contact them for more information
not_permittedThe payment was declined because it is not permitted for this cardholder or merchant
invalid_accountThe cardholder's bank declined the payment due to an issue with your account or card number
closed_accountThe cardholder's account has been closed
account_not_activatedThe cardholder's account is not yet activated
pickup_cardThe cardholder's bank declined the payment and requested that you pick up the card
stolen_cardThe card has been reported as stolen
limit_exceededThe cardholder would exceed the maximum amount allowed by the bank for a single transaction
withdrawal_limit_exceededThe cardholder would exceed the maximum amount allowed by the bank for withdrawals
issuer_declineThe cardholder's bank declined the payment for an unspecified reason
system_errorThe issuing bank's system is currently unavailable or experiencing issues
issuer_errorThe issuing bank's experienced an error while processing the payment
blocked_by_cardholderThe cardholder has blocked the transaction
3ds_authentication_failureThe cardholder failed 3DS authentication
3ds_cardholder_not_participatingThe cardholder uses a card that does not participate in 3DS authentication, but the transaction requires it
payment_method_not_availableThe selected payment method is not available for this transaction
payment_method_option_amex_not_availableAmerican Express payments are not enabled for this merchant
credit_card_not_permittedCredit Card payments are not enabled for this merchant
unknown_errorAn unknown error occurred, please contact us

Please note we may add new error codes in the future as non-breaking changes, so please ensure your integration can handle unexpected error codes gracefully.