Skip to content

Commit 57ab6ec

Browse files
Pass cardTransactionType to the processor.
ref thephpleague/omnipay#466 Might yet be changed upstream
1 parent 9d0c2b2 commit 57ab6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function doPayment(&$params, $component = 'contribute') {
147147
// that is likely to be a pattern.
148148
$action = CRM_Utils_Array::value('payment_action', $params, empty($params['is_recur']) ? 'capture' : 'purchase');
149149
$params['transactionReference'] = ($params['token']);
150-
$response = $this->gateway->$action($this->getCreditCardOptions($params))
150+
$response = $this->gateway->$action($this->getCreditCardOptions(array_merge($params, array('cardTransactionType' => 'continuous'))))
151151
->send();
152152
}
153153
elseif (!empty($params['is_recur'])) {
@@ -445,6 +445,7 @@ private function getCreditCardOptions($params) {
445445
'card' => $this->getCreditCardObjectParams($params),
446446
'cardReference' => CRM_Utils_Array::value('token', $params),
447447
'transactionReference' => CRM_Utils_Array::value('token', $params),
448+
'cardTransactionType' => CRM_Utils_Array::value('cardTransactionType', $params),
448449
);
449450
if (!empty($params['action'])) {
450451
$creditCardOptions['action'] = 'Purchase';

0 commit comments

Comments
 (0)