Skip to content

Commit

Permalink
Merge pull request #17602 from mattwire/supportsrecurring
Browse files Browse the repository at this point in the history
REF Access the method not the property directly to check if a payment processor supports recurring
  • Loading branch information
eileenmcnaughton authored Jul 1, 2020
2 parents fe71a72 + d1cfe88 commit 9c651cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/AbstractEditPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function assignProcessors() {
if (!empty($processor['description'])) {
$this->_processors[$id] .= ' : ' . $processor['description'];
}
if ($processor['is_recur']) {
if ($this->_paymentProcessors[$id]['object']->supportsRecurring()) {
$this->_recurPaymentProcessors[$id] = $this->_processors[$id];
}
}
Expand Down

0 comments on commit 9c651cb

Please sign in to comment.