diff --git a/CRM/Core/Payment/Stripe.php b/CRM/Core/Payment/Stripe.php index 9d0e3b55395717618586e61645e8c759425b585c..0276116ccdbcf4933da1f0a96fc0cce33a2af133 100644 --- a/CRM/Core/Payment/Stripe.php +++ b/CRM/Core/Payment/Stripe.php @@ -1084,7 +1084,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { public function cancelSubscription(&$message = '', $params = []) { $propertyBag = \Civi\Payment\PropertyBag::cast($params); if (!$propertyBag->has('recurProcessorID')) { - throw new PaymentProcessorException("cancelSubscription requires the recurProcessorID"); + throw new \Civi\Payment\Exception\PaymentProcessorException("cancelSubscription requires the recurProcessorID"); } // contributionRecurID is set when doCancelRecurring is called directly (from 5.25)