Here is are the most common errors:

Invalid 4020: Information received from an Invalid IP address.
The Sage Pay system will only accept registration POSTs from servers whose IP Addresses have been registered with them. If they receive a POST from any other server, you will see this error message. You need to add the server IP.

Malformed 3034: The Vendor or VendorName value is required.
The Vendor field should contain the vendor name supplied by Sage Pay. It will only ever contain a maximum of 16 characters consisting of numbers and letters with no spaces or unusual characters.

Invalid 3140: TheDeliveryCountry value is invalid
On WooCommerce, make sure you have set up shipping methods; the shipping data is missing because there is no shipping option in WooCommerce.

You should also be aware that:

  • The MySagePay system tells you what errors have occurred, i.e., looking like “Invalid 3140,” which you can look up in the integration guide.
  • You’re best testing all of this in the “test” gateway first, but you must recreate all settings on the live and repeat testing.

Was this helpful?

Sage Pay Direct

Don't already have the plugin? Get access now.

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request


Ask our bot about our products.

Welcome to our AG Bot, powered by OpenAI and trained on our documents and product pages. By continuing to use this service, please keep in mind:

Your continued use indicates acceptance of these terms. We hope you find our AI Chatbot useful!

Hello! I am AG Bot, how can I help you?