Skip to content

Commit

Permalink
Access the method not the property directly to check if a payment pro…
Browse files Browse the repository at this point in the history
…cessor supports recurring
  • Loading branch information
mattwire committed Jun 13, 2020
1 parent f50a464 commit d1cfe88
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 d1cfe88

Please sign in to comment.