Skip to content

Commit 227a108

Browse files
Fix pre-approval leakage
1 parent f1ba65d commit 227a108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,9 @@ protected function supportsPreApproval() {
866866
omnipaymultiprocessor_civicrm_managed($entities);
867867
foreach ($entities as $entity) {
868868
if ($entity['entity'] === 'payment_processor_type') {
869-
if (!empty($entity['params']['supports_preapproval'])) {
869+
if (
870+
$entity['params']['name'] === $this->_paymentProcessor['payment_processor_type']
871+
&& !empty($entity['params']['supports_preapproval'])) {
870872
return TRUE;
871873
}
872874
}

0 commit comments

Comments
 (0)