Zen Cart Logo
Forums / Addon Payment Modules / Nixaks Sagepay Form Module

Nixaks Sagepay Form Module

Views: 60,942

Results 141 to 160 of 214
16 Mar 2011, 12:48 PM
#141
colinr avatar

colinr

New Zenner

Join Date:
Jul 2006
Posts:
35
Plugin Contributions:
1

Nixaks Sagepay Form Module

Nixak:

Hi Colin, the module still works fine. SagePay have added a new and more secure type of encrytion which is what I'm trying to incorporate into the module.

Thanks for the quick reply.

Is this as easy to set up as the included PayPal IPN module? Do SagePay send an IPN callback to Zen-Cart?

I was recently bitten by integration with Barclays. The module was fine - but the gateway is dreadful!

16 Mar 2011, 2:59 PM
#142
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

colinr:

Is this as easy to set up as the included PayPal IPN module? Do SagePay send an IPN callback to Zen-Cart

Sagepay can work in 3 different ways Form, Direct & Server. The module I wrote only works with Sagepay Form.
As for intergration I hope that people find it fairly easy (I know I did) but nothing is quite as simple as Paypal IPN lol. Sagepay's website can be found here, I have found them to have very good levals of customer service and they always seem to want to try and help when they can.

16 Mar 2011, 4:57 PM
#143
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

annnika I've solved the problem :clap:

MAKE SURE you backup your website & database first.
Go to includes/modules/payment/sagepay_form.php and edit that file with a good editor.

find```
// Basket detail code
if (MODULE_PAYMENT_SAGEPAY_FORM_SHOPCART == 'true') {
$shipping = $order->info['shipping_cost'];
$shipping = number_format($shipping, 2, '.', '');
$products = $_SESSION['cart']->get_products();
$no_lines = sizeof($products) + 1;

	$shippingStr .= ":Shipping:---:---:---:---:".$shipping;
	$basketStr = "Basket=".$no_lines;
	$moreStr .= ":More products...See Order.:---:---:---:---:---";
    $moreLen = strlen( $moreStr );

replace with```
// Basket detail code
      if (MODULE_PAYMENT_SAGEPAY_FORM_SHOPCART == 'true') {
		$shipping = $order->info['shipping_cost'];
		$shipping = number_format($shipping, 2, '.', '');
		$shippingtax = $order->info['shipping_tax'];
		$shippingtax = number_format($shippingtax, 2, '.', '');
		$totalshipping = $shipping + $shippingtax;
		$totalshipping = number_format($totalshipping, 2, '.', '');
 		$products = $_SESSION['cart']->get_products();
		$no_lines = sizeof($products) + 1;
		
		$shippingStr .= ":Shipping:---:".$shipping.":".$shippingtax.":".$totalshipping.":".$totalshipping;
		$basketStr = "Basket=".$no_lines;
		$moreStr .= ":More products...See Order.:---:---:---:---:---";
        $moreLen = strlen( $moreStr );

This will change the shipping field thats sent to sagepay so instead of seeing this
Shipping --- --- --- --- 15.19
you should get this
Shipping --- 15.19 3.04 18.23 18.23

Just in case your not sure what you see is:
15.19 = shipping cost
3.04 = shipping tax
18.23 = total shipping
18.23 = line total (I've left this in as it looks better)

Hope this helps
Nixak

p.s. this will be included in the next update.

16 Mar 2011, 7:36 PM
#144
annnika avatar

annnika

New Zenner

Join Date:
Mar 2010
Location:
Royston, UK
Posts:
14
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

you are a star!! :clap: :clap: :clap:

20 Mar 2011, 8:46 PM
#145
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Due to the problems with SagePay I decided to write a python script (I haven't time to learn another language namely PHP) to read the Sage's Status Monitor RSS feed, this will send an email on a regular basis (if wished) or if the status changes on the feed. It will only run on a linux server and is run on request via cron. I am using Ceon's module myself which has a sidebox of cards available which I have edited to include a 'Payment Gateway Status' which can advise customers about any problems with SagePay. This could be included with a editable sidebox for Nixaks Mod. Currently this is still in development but testing is going very well. If this would be any interest please let me know.
Rgds
Andrew

23 Mar 2011, 11:04 AM
#146
mrkay avatar

mrkay

New Zenner

Join Date:
Feb 2009
Posts:
37
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Nixak, I've uploaded those two PHP files to the relevant folders on my Zen Cart and nothing has changed in the payment section of my admin. Any ideas?

23 Mar 2011, 2:59 PM
#147
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

mrkay:

Nixak, I've uploaded those two PHP files to the relevant folders on my Zen Cart and nothing has changed in the payment section of my admin. Any ideas?

I'm not sure what to say .....

Once the files are uploaded got to admin/modules/payment and it should be there in the list as Debit/Credit Card - Sagepay Form.

Only thing I can think of is I know that firefox can be a sh*t at times and I have to clean out my cache to see any changes.

24 Mar 2011, 1:40 AM
#148
weisdaclick avatar

weisdaclick

New Zenner

Join Date:
Mar 2011
Posts:
42
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Nixaks,

I have to thank you so much for this. I had no idea how to do this and I followed your instructions and it seems to work perfectly.

Thank you so so much :hug: :clap::bigups:

24 Mar 2011, 9:39 AM
#149
mrkay avatar

mrkay

New Zenner

Join Date:
Feb 2009
Posts:
37
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Nixak:

I'm not sure what to say .....

Once the files are uploaded got to admin/modules/payment and it should be there in the list as Debit/Credit Card - Sagepay Form.

Only thing I can think of is I know that firefox can be a sh*t at times and I have to clean out my cache to see any changes.

Hi Nixak, I tried that unfortunately to no avail. I've still got the old Protx module installed - could that make a difference?

24 Mar 2011, 10:55 AM
#150
mrkay avatar

mrkay

New Zenner

Join Date:
Feb 2009
Posts:
37
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Sorted the problem out Nixak. Although the files were showing on the web server I noticed their size was 0kb. The problem was I'd reached my disc quota on the server.

26 Mar 2011, 12:34 PM
#151
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

EXCITING NEWS

Version 2.0 is almost finished & should be with you all shortly.

The changes are way too long to list but I think that all of your previous requests have been included :D

26 Mar 2011, 1:46 PM
#152
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

Ok people I've uploaded version 2.0 to Zen Cart -- PLEASE update your websites asap.

These are some but not all of whats changed:

AES encoding added - alot stronger and harder to crack.
Error messages now display to the customer when they are returned to your website from SagePay.
Transaction details from SagePay are now recorded in the orders

Enjoy & a massive thank you to all of you who've helped & made suggestions to improve the module.

27 Mar 2011, 6:25 PM
#153
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

Hi all,

The updated version 2.0 is now available for download :D

I hope hope you all enjoy the hard work I've put in lol ..... PLEASE read the readme & changlog files first, they are in the docs folder. Also please update your module asap as there have been some important security changes.

Regards
Nixak

13 Apr 2011, 11:13 AM
#154
daparky avatar

daparky

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Hi Nixak,

I'm having trouble using the module on Zencart 1.3.9h. The shop is: https://www.loveaquatics.com/ and i can get as far as step 3 of the checkout and it hangs, it's like the rest of the page isn't loading.

The last piece of the source code is:-

<form name="checkout_confirmation" action="https://test.sagepay.com/gateway/service/vspform-register.vsp" method="post" id="checkout_confirmation" onsubmit="submitonce();">

That's it, nothing more, i can't continue. I have SSL enabled etc. Do you know what the problem could be?

The login to Sage Pay for me is: https://live.sagepay.com/mysagepay/loginpage.msp

Thank you.

13 Apr 2011, 11:24 AM
#155
nixak avatar

nixak

Zen Follower

Join Date:
Nov 2007
Location:
Essex, UK
Posts:
137
Plugin Contributions:
1

Re: Nixaks Sagepay Form Module

In your admin change the module to simulator mode and then make a test purchase, you will be taken to a page where it will list everthing thats been sent & it will point out if anything is wrong. Let me know what you find.

Regards
Nixak

13 Apr 2011, 11:38 AM
#156
daparky avatar

daparky

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Hi Nixak,

Many thanks for your reply.

That's the thing, i cannot make a test payment at all as it's stuck on step 3 and shown here: https://www.loveaquatics.com/errors/step3.jpg

You cannot scroll past where it is ending because it's like an error, not fully loading the page.

Many thanks.

14 Apr 2011, 8:14 AM
#157
daparky avatar

daparky

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

Nixak:

In your admin change the module to simulator mode and then make a test purchase, you will be taken to a page where it will list everthing thats been sent & it will point out if anything is wrong. Let me know what you find.

Regards
Nixak

Hi Nixak, found the culprit...

[14-Apr-2011 07:31:58] PHP Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/loveaquatics.com/httpsdocs/includes/modules/payment/sagepay_form.php on line 649

Is there an alternative to mcrypt?

15 Apr 2011, 6:37 PM
#158
bluguy avatar

bluguy

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

I am having this exact same problem too.

My source code cuts off at <form name="checkout_confirmation" action="https://test.sagepay.com/simulator/vspformgateway.asp" method="post" id="checkout_confirmation" onsubmit="submitonce();">

I have been working on this for hours as I thought I was doing something wrong in my code

:(

19 Apr 2011, 4:42 PM
#159
bluguy avatar

bluguy

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Re: Nixaks Sagepay Form Module

I guess there is no fix to this. I am resorting to building something bespoke.

thank you anyway.

19 Apr 2011, 4:48 PM
#160
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Nixaks Sagepay Form Module

daparky:

Is there an alternative to mcrypt?That suggests that your web host left out the mcrypt library, which acts a front end to a number of encryption algorithms, when they built the PHP being used on your server.

I'd ask them why. And whether they'd consider enabling it.