__( 'The card used for the original payment has been reported lost or stolen.', 'woocommerce-payments' ), self::EXPIRED_OR_CANCELED_CARD => __( 'The card used for the original payment has expired or been canceled.', 'woocommerce-payments' ), self::CHARGE_FOR_PENDING_REFUND_DISPUTED => __( 'The charge for this refund is being disputed by the customer.', 'woocommerce-payments' ), self::INSUFFICIENT_FUNDS => __( 'Insufficient funds in your WooPayments balance.', 'woocommerce-payments' ), self::DECLINED => __( 'The refund was declined by the card issuer.', 'woocommerce-payments' ), self::MERCHANT_REQUEST => __( 'The refund was canceled at your request.', 'woocommerce-payments' ), self::UNKNOWN => __( 'An unknown error occurred while processing the refund.', 'woocommerce-payments' ), ]; return $messages[ $failure_reason ] ?? $messages[ self::UNKNOWN ]; } }