...
Your store should be running on Magento 2 version 2.1.x.; 2.2.x
...
Configuration
...
Firstly, you have to configure the SagePay Payment Extension at Magento back end by clicking on Stores > Configuration > Sales > Payment Methods > SagePay Payment Gateway.
...