Skip to content
Snippets Groups Projects
Commit f6cdbd16 authored by Primoz Hmeljak's avatar Primoz Hmeljak
Browse files

by Primsi: cleanup.

parent c78f28e4
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,6 @@ class Datatrans extends OffsitePaymentGatewayBase {
'#options' => [
'NOA' => t('Authorization only'),
'CAA' => t('Authorization with immediate settlement'),
// 'conditional' => t('Authorization with conditional settlement'),
'ignore' => t('According to the setting in the Web Admin Tool'),
],
'#default_value' => $this->configuration['req_type'],
......
......@@ -49,7 +49,7 @@ class DatatransForm extends PaymentOffsiteForm {
$data['sign'] = $gateway_config['sign'];
break;
case 1:
case 2:
// Generates the sign.
$data['sign'] = DatatransHelper::generateSign($gateway_config['hmac_key'], $gateway_config['merchant_id'], $amount, $currency_code, $order->id());
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment