From d1790fea35f00e39452016349505fe1015a2636c Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Sat, 15 Aug 2020 11:54:54 +0100
Subject: [PATCH] Fix missing class on cancelSubscription exception

---
 CRM/Core/Payment/Stripe.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CRM/Core/Payment/Stripe.php b/CRM/Core/Payment/Stripe.php
index 9d0e3b55..0276116c 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)
-- 
GitLab