diff --git a/upload/catalog/controller/extension/payment/sagepay_direct.php b/upload/catalog/controller/extension/payment/sagepay_direct.php index ab7e0825..8c408754 100644 --- a/upload/catalog/controller/extension/payment/sagepay_direct.php +++ b/upload/catalog/controller/extension/payment/sagepay_direct.php @@ -372,6 +372,8 @@ public function callback(): void { $this->load->model('checkout/order'); if (isset($this->session->data['order_id']) && $this->config->get('sagepay_direct_status')) { + $url = ''; + if ($this->config->get('sagepay_direct_test') == 'live') { //$url = 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp'; $url = 'https://live.opayo.eu.elavon.com/gateway/service/direct3dcallback.vsp';