This plugin provides SagePay integrations for Craft Commerce.
It provides both SagePay Direct and SagePay Server gateways.
This plugin requires Craft Commerce 2.0.0-alpha.5 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require craftcms/commerce-sagepay
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for SagePay.
To add a SagePay payment gateway, go to Commerce → Settings → Gateways, create a new gateway, and set the gateway type to either “SagePay Direct” or “SagePay Server”.
You must disable CSRF protection for the incoming requests, assuming it is enabled for the site (default for Craft since 3.0).
A clean example for how to go about this can be found here.