Sage Pay

Gateway Setup
More info @ www.sagepay.com

For details on how to set up Sage Pay, click here.

SAGE PAY WILL NOT WORK FOR PHP7.1 or HIGHER
Vendor Username/ID
Your Sage Pay vendor username/ID.
Encryption Password / Encryption Type
Your Sage Pay encryption password and encryption type. AES is default for Sage Pay. Only use XOR if instructed to do so by Sage Pay. Note that the AES method requires Mcrypt which must be installed on your server. If this isn`t available an error will appear. Also, this encryption will not work if your PHP installation is 7.1 or higher as MCrypt is deprecated.
Information About this Payment Method
This is presented to visitors if they click for more info on the gateway on the checkout page. Optional.

Use BB Code for formatting, HTML is not allowed.
Order Status Preferences
Specify which order statuses to set for callback operations. Leave as default if you aren`t sure. "Pending" statuses restrict download access for none gateway methods and should be used until payment is cleared.

Setting preferred order statuses can be useful for filtering with other admin operations.
Alternative Redirect Url (Optional)
Alternative redirect url is the page a visitor will be directed to after a successful transaction.

You should NOT use this option if you sell downloadable items as visitors will not be able to download their products immediately after purchase.

Enter full url starting http://

If you need to do further operations on your redirect page based on the sale, the following query string params may be used and passed to your new page:

{id} = Sale ID in Database
{code} = Sale Buy Code in Database.

Example:

http://www.example.com/new-redirect.php?id={id}&code={code}
IMPORTANT! When using these variables on your custom PHP page, make sure you check and sanitize the variables accordingly. The {id} value will always be an INTEGER and the {code} variable ALPHANUMERIC.
Live Payment URL
Live payment url. At the time of these docs it is:

https://live.sagepay.com/gateway/service/vspform-register.vsp

This should not be changed unless altered by the gateway.
Test/Sandbox Payment URL
Sandbox or test payment url. In many cases, this is the same as the live payment url. At the time of these docs it is:

https://test.sagepay.com/gateway/service/vspform-register.vsp

This should not be changed unless altered by the gateway
Test/Simulator Payment URL
Test/simulator payment url. At the time of these docs it is:

https://test.sagepay.com/Simulator/VSPFormGateway.asp

This should not be changed unless altered by the gateway
Payment Method Availability
Choose when this payment method is available. Useful if you only want certain methods shown for certain checkout types. If none are selected, defaults to all.
Enable Sage Pay
Enable / disable this gateway as a payment option.