Skip to content

Commit

Permalink
Allow 'Cancel Subscription' for PayPal Express
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed May 11, 2018
1 parent ba3a0fb commit 1c8513c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/PayPalImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function isSuppressSubmitButtons() {
* @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');

Expand Down

0 comments on commit 1c8513c

Please sign in to comment.