Re: Nixaks Sagepay Form Module
The basket details code took me best part of 3 months to get working (although I am no coder) due to SagePay's strict formatting. I will try to realease the basket details version over this weekend or latest on Monday 9th Nov as I have the morning at home.
On your other question I descovered that Sagepay send back a coded message upon a failure, this message needs to be decoded (which is the easy part) but then it needs to be intergrated in to your database and zen cart session in order for it to display to the customer. This is some major coding for me and is what I was attempting to work out how to do before I became so busy with work and family. So hopefully with my 2 weeks off work coming up I can get some time (and headache tablets lol) and attempt to get this working.
Your interest in my module (and my wife's moaning lol) has given me the boost to dig out my old files (of which there are loads) and try to get this project finished, so I will find the time soon to get cracking on it.
Re: Nixaks Sagepay Form Module
Sounds great Nixak. I'll wait with baited breath! :D
Re: Nixaks Sagepay Form Module
Hi all, I thought I had better explain why I have not released the basket details version yet, this is because whilst making the basket details work I (in my infinate wisdom :eek:) re-wrote the entire module. I must of had a mad moment when I did this :bangin: but the new Version 2.0 will include switches in the admin to allow you to do everything that SagePay allows, including overriding the AVS/CV2 settings, different payment types, allowing gift aid etc etc.
I still have two things to add to the module which is:
1) Cards accepted and secured by SagePay sidebox.
2) To decode and intergrate the infomation returned by SagePay so as the customer and the admin know whether there has been any problems with the payment.
If there is anything you would like to see added to the module please post your suggestions and I will try to incorperate them.
Re: Nixaks Sagepay Form Module
Hows it going Nixak? Any progress? :)
Re: Nixaks Sagepay Form Module
Hi Guys,
Need a little help on this mod - i've installed it and tested it using 'test' mode and all worked great.
However, as soon as i moved it into 'live' mode and tested a transaction, it returned with:
'4006 : The TxType requested is not supported on this account.'
Any help appreciated!
Thanks,
Kev
www.sunplastics.co.uk
Re: Nixaks Sagepay Form Module
Hi Kev,
Have you done ALL the required testing before trying to switch to live?
e.g. done refunds etc.
Sage Pay need you to do this bit before the live is REALLY live.
Re: Nixaks Sagepay Form Module
Not to worry - it was Sagepay not getting their finger out quick enough! Sorted now!
Solution to problem when unable to decryt the encrypted response from Sage Pay
Hi everyone,
Nixak just wanted to tell you that you are doing a great service to a lot of people.
Just came across something and wanted to share with everyone.
The PHP base64_decode sometimes does not decrypt the encrypted message correctly (due to white spaces) thereby causing problems.
After going through Sage Pay Form sample code they provide on their website I found the following function which they use to decrpyt the encrypted response.
PHP Code:
function base64Decode($scrambled) {
$output = "";
$scrambled = str_replace(" ","+",$scrambled);
$output = base64_decode($scrambled);
return $output;
}
If you add the above function to your class in the includes/modules/payment/sagepay_form.php and make the following change then I think this can help people who may encounter problems while decrypting the encrypted string.
On line 222 where you have the line
PHP Code:
$Decoded = $this->SimpleXor(base64_decode($crypt),MODULE_PAYMENT_SAGEPAY_FORM_PASSWORD);
you can change it to
PHP Code:
$Decoded = $this->SimpleXor($this->base64Decode($crypt),MODULE_PAYMENT_SAGEPAY_FORM_PASSWORD);
Hope it helps.
Kind Regards,
Adeel
Re: Nixaks Sagepay Form Module
Hello all, i am having issues installing the Sage Payment Solutions module for the payment processing company at www.SagePayments.com. I am assuming this SagePay you all are referring to is a different company?
thanks,