Sage Pay Form
Posted: Sun Sep 05, 2021 4:02 pm
Now having a problem with this module - I'm using
(if that identifies it)
When I set the module to Test and use the Test Encryption Password everything works as it should
Setting the module to Live, however, using the Live Encryption Password it shows the customer the Test link and then errors because the Encryption Password is wrong
Lines 37 - 57
Code: Select all
$this->signature = 'sage_pay|sage_pay_form|2.0|2.3';
$this->api_version = '3.00';
When I set the module to Test and use the Test Encryption Password everything works as it should
Setting the module to Live, however, using the Live Encryption Password it shows the customer the Test link and then errors because the Encryption Password is wrong
Lines 37 - 57
Code: Select all
if ( defined('MODULE_PAYMENT_SAGE_PAY_FORM_STATUS') ) {
if ( MODULE_PAYMENT_SAGE_PAY_FORM_TRANSACTION_SERVER == 'Test' ) {
$this->title .= ' [Test]';
$this->public_title .= ' (' . $this->code . '; Test)';
}
}
if ( $this->enabled === true ) {
if ( !tep_not_null(MODULE_PAYMENT_SAGE_PAY_FORM_VENDOR_LOGIN_NAME) || !tep_not_null(MODULE_PAYMENT_SAGE_PAY_FORM_ENCRYPTION_PASSWORD) ) {
$this->description = '<div class="alert alert-warning">' . MODULE_PAYMENT_SAGE_PAY_FORM_ERROR_ADMIN_CONFIGURATION . '</div>' . $this->description;
$this->enabled = false;
}
}
if ( defined('MODULE_PAYMENT_SAGE_PAY_FORM_TRANSACTION_SERVER') && MODULE_PAYMENT_SAGE_PAY_FORM_TRANSACTION_SERVER == 'Live' ) {
$this->form_action_url = 'https://live.sagepay.com/gateway/service/vspform-register.vsp';
} else {
$this->form_action_url = 'https://test.sagepay.com/gateway/service/vspform-register.vsp';
}
}