From ccc7f59c0e73902497856e95903cab85e6a8d66b Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Fri, 11 May 2018 10:23:58 +0100 Subject: [PATCH] Allow 'Cancel Subscription' for PayPal Express --- CRM/Core/Payment/PayPalImpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 3fa0066892..7ffa6f8a1a 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -721,7 +721,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { * @throws \Civi\Payment\Exception\PaymentProcessorException */ public function cancelSubscription(&$message = '', $params = array()) { - if ($this->isPayPalType($this::PAYPAL_PRO)) { + if ($this->isPayPalType($this::PAYPAL_PRO) || $this->isPayPalType($this::PAYPAL_EXPRESS)) { $args = array(); $this->initialize($args, 'ManageRecurringPaymentsProfileStatus'); -- 2.25.1