diff --git a/upload/admin/language/en-gb/extension/payment/sagepay_direct.php b/upload/admin/language/en-gb/extension/payment/sagepay_direct.php index ba0a2091973..aa1a93b1d3d 100644 --- a/upload/admin/language/en-gb/extension/payment/sagepay_direct.php +++ b/upload/admin/language/en-gb/extension/payment/sagepay_direct.php @@ -6,13 +6,11 @@ $_['text_extension'] = 'Extensions'; $_['text_success'] = 'Success: You have modified SagePay account details!'; $_['text_edit'] = 'Edit SagePay Direct'; -$_['text_sagepay_direct'] = ''; -$_['text_sim'] = 'Simulator'; $_['text_test'] = 'Test'; $_['text_live'] = 'Live'; $_['text_defered'] = 'Defered'; $_['text_authenticate'] = 'Authenticate'; -$_['text_payment'] = 'Payment'; +$_['text_payment'] = 'Payment'; $_['text_release_ok'] = 'Release was successful'; $_['text_release_ok_order'] = 'Release was successful, order status updated to success - settled'; $_['text_rebate_ok'] = 'Rebate was successful'; diff --git a/upload/admin/language/en-gb/extension/payment/sagepay_server.php b/upload/admin/language/en-gb/extension/payment/sagepay_server.php index 8af13b55f3e..54aa9ee8e26 100644 --- a/upload/admin/language/en-gb/extension/payment/sagepay_server.php +++ b/upload/admin/language/en-gb/extension/payment/sagepay_server.php @@ -6,13 +6,11 @@ $_['text_extension'] = 'Extensions'; $_['text_success'] = 'Success: You have modified SagePay account details!'; $_['text_edit'] = 'Edit SagePay Server'; -$_['text_sagepay_server'] = ''; -$_['text_sim'] = 'Simulator'; $_['text_test'] = 'Test'; $_['text_live'] = 'Live'; $_['text_defered'] = 'Defered'; $_['text_authenticate'] = 'Authenticate'; -$_['text_payment'] = 'Payment'; +$_['text_payment'] = 'Payment'; $_['text_release_ok'] = 'Release was successful'; $_['text_release_ok_order'] = 'Release was successful, order status updated to success - settled'; $_['text_rebate_ok'] = 'Rebate was successful'; diff --git a/upload/admin/model/extension/payment/sagepay_direct.php b/upload/admin/model/extension/payment/sagepay_direct.php index 7a5258b1e1e..5de49740442 100644 --- a/upload/admin/model/extension/payment/sagepay_direct.php +++ b/upload/admin/model/extension/payment/sagepay_direct.php @@ -77,14 +77,15 @@ public function void($order_id) { $void_data = array(); if ($this->config->get('payment_sagepay_direct_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/void.vsp'; - $void_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/void.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/void.vsp'; +// $void_data['VPSProtocol'] = '3.00'; + $void_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_direct_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/void.vsp'; - $void_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_direct_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorVoidTx'; - $void_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/void.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/void.vsp'; +// $void_data['VPSProtocol'] = '3.00'; + $void_data['VPSProtocol'] = '4.00'; } $void_data['TxType'] = 'VOID'; @@ -114,14 +115,15 @@ public function release($order_id, $amount) { $release_data = array(); if ($this->config->get('payment_sagepay_direct_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/release.vsp'; - $release_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/release.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/release.vsp'; +// $release_data['VPSProtocol'] = '3.00'; + $release_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_direct_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/release.vsp'; - $release_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_direct_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorReleaseTx'; - $release_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/release.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/release.vsp'; +// $release_data['VPSProtocol'] = '3.00'; + $release_data['VPSProtocol'] = '4.00'; } $release_data['TxType'] = 'RELEASE'; @@ -152,14 +154,15 @@ public function rebate($order_id, $amount) { $refund_data = array(); if ($this->config->get('payment_sagepay_direct_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/refund.vsp'; - $refund_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/refund.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/refund.vsp'; +// $refund_data['VPSProtocol'] = '3.00'; + $refund_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_direct_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/refund.vsp'; - $refund_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_direct_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorRefundTx'; - $refund_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/refund.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/refund.vsp'; +// $refund_data['VPSProtocol'] = '3.00'; + $refund_data['VPSProtocol'] = '4.00'; } $refund_data['TxType'] = 'REFUND'; diff --git a/upload/admin/model/extension/payment/sagepay_server.php b/upload/admin/model/extension/payment/sagepay_server.php index f77c879eab4..3f29c3a3ead 100644 --- a/upload/admin/model/extension/payment/sagepay_server.php +++ b/upload/admin/model/extension/payment/sagepay_server.php @@ -78,14 +78,15 @@ public function void($order_id) { $void_data = array(); if ($this->config->get('payment_sagepay_server_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/void.vsp'; - $void_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/void.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/void.vsp'; +// $void_data['VPSProtocol'] = '3.00'; + $void_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_server_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/void.vsp'; - $void_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_server_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorVoidTx'; - $void_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/void.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/void.vsp'; +// $void_data['VPSProtocol'] = '3.00'; + $void_data['VPSProtocol'] = '4.00'; } $void_data['TxType'] = 'VOID'; @@ -115,14 +116,15 @@ public function release($order_id, $amount) { $release_data = array(); if ($this->config->get('payment_sagepay_server_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/release.vsp'; - $release_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/release.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/release.vsp'; +// $release_data['VPSProtocol'] = '3.00'; + $release_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_server_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/release.vsp'; - $release_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_server_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorReleaseTx'; - $release_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/release.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/release.vsp'; +// $release_data['VPSProtocol'] = '3.00'; + $release_data['VPSProtocol'] = '4.00'; } $release_data['TxType'] = 'RELEASE'; @@ -157,14 +159,15 @@ public function rebate($order_id, $amount) { $refund_data = array(); if ($this->config->get('payment_sagepay_server_test') == 'live') { - $url = 'https://live.sagepay.com/gateway/service/refund.vsp'; - $refund_data['VPSProtocol'] = '3.00'; +// $url = 'https://live.sagepay.com/gateway/service/refund.vsp'; + $url = 'https://live.opayo.eu.elavon.com/gateway/service/refund.vsp'; +// $refund_data['VPSProtocol'] = '3.00'; + $refund_data['VPSProtocol'] = '4.00'; } elseif ($this->config->get('payment_sagepay_server_test') == 'test') { - $url = 'https://test.sagepay.com/gateway/service/refund.vsp'; - $refund_data['VPSProtocol'] = '3.00'; - } elseif ($this->config->get('payment_sagepay_server_test') == 'sim') { - $url = 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorRefundTx'; - $refund_data['VPSProtocol'] = '2.23'; +// $url = 'https://test.sagepay.com/gateway/service/refund.vsp'; + $url = 'https://sandbox.opayo.eu.elavon.com/gateway/service/refund.vsp'; +/// $refund_data['VPSProtocol'] = '3.00'; + $refund_data['VPSProtocol'] = '4.00'; } $refund_data['TxType'] = 'REFUND'; diff --git a/upload/admin/view/template/extension/payment/sagepay_direct.twig b/upload/admin/view/template/extension/payment/sagepay_direct.twig index 7fe4b963a6f..a86af413b7a 100644 --- a/upload/admin/view/template/extension/payment/sagepay_direct.twig +++ b/upload/admin/view/template/extension/payment/sagepay_direct.twig @@ -38,11 +38,6 @@