Skip to content

Commit

Permalink
Pass cardTransactionType to the processor.
Browse files Browse the repository at this point in the history
ref thephpleague/omnipay#466

Might yet be changed upstream
  • Loading branch information
eileenmcnaughton committed Oct 2, 2017
1 parent 9d0c2b2 commit 57ab6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Core/Payment/OmnipayMultiProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function doPayment(&$params, $component = 'contribute') {
// that is likely to be a pattern.
$action = CRM_Utils_Array::value('payment_action', $params, empty($params['is_recur']) ? 'capture' : 'purchase');
$params['transactionReference'] = ($params['token']);
$response = $this->gateway->$action($this->getCreditCardOptions($params))
$response = $this->gateway->$action($this->getCreditCardOptions(array_merge($params, array('cardTransactionType' => 'continuous'))))
->send();
}
elseif (!empty($params['is_recur'])) {
Expand Down Expand Up @@ -445,6 +445,7 @@ private function getCreditCardOptions($params) {
'card' => $this->getCreditCardObjectParams($params),
'cardReference' => CRM_Utils_Array::value('token', $params),
'transactionReference' => CRM_Utils_Array::value('token', $params),
'cardTransactionType' => CRM_Utils_Array::value('cardTransactionType', $params),
);
if (!empty($params['action'])) {
$creditCardOptions['action'] = 'Purchase';
Expand Down

0 comments on commit 57ab6ec

Please sign in to comment.