Magento 2 Sage Pay Direct Payments

Magento 2 Sage Pay Integration seamlessly integrates Europe's leading Payment Service Provider to capture secure and flexible payments on site.


Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Sage Pay Direct Payment in Frontend
  4. Sage Pay Direct Payment in the Backend
  5. Creating Orders from Backend


  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy -f
    • php bin/magento cache:flush
  • That’s it.


  1. Configuration
    For configuring the extension, log in to Magento 2, move to Sales > Payments Methods > Sage Pay Direct - Meetanshi where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable the payment method.
  • Title: Set the title for the payment method to be displayed in the frontend.
  • Show Sage Pay Logo: Set YES to show sage pay logo on the checkout page.
  • Sandbox mode: Set “YES” to enable the sandbox mode for testing purpose.
  • Vendor Name: Add vendor name received while registration with Sage Pay Gateway.
  • Integration Key: Enter integration key received while registration with Sage Pay.
  • Integration Password: Add live API password received while registration with Sage Pay Gateway. Login to Sage Pay admin panel and go to Administrator and you will find Vendor name and Encryption Password.
  • Payment Action: Select action for the payment capture.
  • New Order Status: Set status for the new order placed through this payment method.
  • Vendor Reference Prefix String: Set vendor reference prefix string to recognize transactions.
  • Allow Gift Aid: Gift Aid is an income tax relief designed to benefit charities and Community Amateur Sports Clubs (CASCs). If you’re a UK taxpayer, Gift Aid increases the value of your charity donations by 25%. You can set YES to enable gift aid. Make sure your Sage Pay account is enabled for the gift aid.



  • Credit Card Types: Select credit card types to allow payments from.
  • Payment from Applicable Countries: Select countries to accept payment using this method.
  • Instructions: Add text to show additional information for the payment method on the checkout page.
  • Minimum Order Amount: Set a minimum order amount to use this payment method.
  • Maximum Order Amount: Set a maximum order amount to use this payment method.
  • Sort Order: Enter Sort Order for the payment method display.


  1. Sage Pay Direct Payment in Frontend
    Once the extension is configured properly, Sage Pay Direct payment method can be seen enabled in the frontend. Whenever customers add the product to cart, they can select Sage Pay Direct payment method, enter the credit card details and click Place Order to finish the payments successfully.


  • Sage Pay Direct Payment method in My Account Section
    Once the order is placed, all the order and payment related details can be seen in the customer’s My Account section under My Orders tab.



  1. Sage Pay Direct Payment in the Backend
    Once the order is placed from frontend using Sage Pay Direct payment method, the details of the transaction can be seen in order view backend.



  1. Creating Orders from Backend
    The extension facilitates to create backend orders using the Sage Pay Direct Payment method. From the backend, simply create order, add products, select Sage Pay Direct payment method, add card details and place the order.