Skip to content
Snippets Groups Projects
Commit 06826dbc authored by Anas Mawlawi's avatar Anas Mawlawi
Browse files

Issue #3480359 by ahlam aljawahreh, anas_maw: Remove testMode parameter

parent 7fa0f083
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ class HyperPayCopyAndPay extends OffsitePaymentGatewayBase implements HyperPayIn
'#options' => [
'EXTERNAL' => 'EXTERNAL',
'INTERNAL' => 'INTERNAL',
'NONE' => 'NONE',
],
'#states' => [
'visible' => [
......@@ -552,7 +553,7 @@ class HyperPayCopyAndPay extends OffsitePaymentGatewayBase implements HyperPayIn
'entityId' => $this->configuration['entity_id'],
];
}
if ($this->getMode() == 'test' && $method == 'POST') {
if ($this->getMode() == 'test' && $method == 'POST'&& $this->configuration['test_mode_type'] != 'NONE') {
$params['testMode'] = $this->configuration['test_mode_type'];
}
$headers = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment