diff --git a/src/RefundsManager.php b/src/RefundsManager.php index 32b2358..ccb5b48 100644 --- a/src/RefundsManager.php +++ b/src/RefundsManager.php @@ -122,7 +122,7 @@ private function process_refund( EDD_Payment $edd_payment, Payment $payment ) { $gateway = $payment->get_gateway(); if ( null === $gateway ) { - throw new Exception( __( 'Unable to process refund because gateway does not exist.', 'pronamic_ideal' ) ); + throw new \Exception( \esc_html__( 'Unable to process refund because gateway does not exist.', 'pronamic_ideal' ) ); } // Transaction ID.