Yet another blog (hopefully a useful one though)
Magento SagePay Form
Today we finally got our integration of Sage Pay Form for Magento. Sage Pay is the UK and Ireland’s most popular payment gateway and Magento is rapidly gaining popularity. We will be submitting our integration to Magento as a community app but it will be available from us until then.
UPDATE
The extension is now live in Magento Connect at http://www.magentocommerce.com/extension/3060/sagepay-formerly-protx-form as a free community extension.
To install enter the key in Magento Connect (from the page above) and the extension should install completely.
You will need a Sagepay account. You can get one HERE.
Then you need to enter the details in Magento > Admin > System > Configuration > Payment Methods > SagePay Form.
Next you must run a transaction in test mode using a SagePay test card found HERE and successfully refund this.
The , all you have to do is ask SagePay to let you “Go Live” and change the server target from “Test” to “Live”.
This is currently tested in v1.3.2.4 so we would be interested to hear whether it runs ok in other versions. There is no reason why it should not.
Happy Trading!
UPDATE 1/12/2010
I have found out that a few people have failed to get this extension from Magento Connect. I have resubmitted it so it should come back soon but for now it can be found here. Just unzip and upload and it should work.
Also, it is stable in 1.3.x and 1.4.1.1 but not in 1.4.0.0.

March 24, 2010 - 10:56 am
Hi,
Does just what I want under 1.3 – tested this under 1.4.0.1 – seems to crash the Checkout page. I was wondering if you are planning to support this version, and if so, when can we get our hands on the extension?
Alternatively, is there anything I can do to the extension to get it play nicely with 1.4?
Keep up the good work.
March 27, 2010 - 7:59 pm
We are looking at this. Hopefully in the near future we will be able to release a v1.4.0.1 safe version.
April 23, 2010 - 12:46 pm
Thanks Guys, this is fantastic.
Definitely need it to work with version 1.4.0.1 though please
Do you know if there’s anything we can do to make the Checkout work?
All help very much appreciated, thanks!
April 29, 2010 - 9:57 am
I found a bug this morning when someone is from the US. When someone is purchasing from the states the BillingState and DeliveryState fields are mandatory but are not taken into account with this plugin.
To fix I amended /app/code/community/MSInternet/Sagepayform/Model/Standard.php as follows:
Line 198:
// add america billing state
if ($billing->getCountry()==”US”) {
$queryPairs['BillingState'] = $billing->getRegionCode();
}
Line 216:
// add america delivery state
if ($shipping->getCountry()==”US”) {
$queryPairs['DeliveryState'] = $shipping->getRegionCode();
}
Line 231:
// add america delivery state
if ($shipping->getCountry()==”US”) {
$queryPairs['DeliveryState'] = ”;
}
Hope that helps.. and thanks for an awesome plug-in. I wrote a post on my blog about this plugin as it saved my bacon when looking for SagePay Form integration
April 29, 2010 - 10:07 am
Thanks a lot BIOSTALL, I’ll get Martin to put it in the next update
May 11, 2010 - 3:37 pm
BIOSTALL – Did your changes to the Standard.php file affect your onepage checkout?
I end up with a blank page after your changes.
I am having the same issue with US customers.
Desperately in need of advice!
Chris
May 11, 2010 - 4:04 pm
Any news on 1.4 integration?
May 22, 2010 - 12:05 am
I’m running Magento 1.4.0.1 and really need to use SagePay form integration. Is there any word on when a suitable update may be released?
Keep up the good work,
Dave.
June 4, 2010 - 11:35 am
Whats the difference (if any) between this free community extension and EBizmarts Sage Pay Server Pro extension for Magento, which costs £150?
June 14, 2010 - 11:41 am
is this now compatible with 1.4.01?
June 21, 2010 - 1:14 pm
That’s great news Lee! Was it v1.4.0.1?
Did you do anything special or was it just install by Magento Connect and voila, it worked?