Forums / Addon Payment Modules / Realex RealDirect Payment Module.

Realex RealDirect Payment Module.

Started by hem on 12 Dec 2007, 2:49 PM · Views: 70,389

Results 1 to 20 of 95
12 Dec 2007, 2:49 PM
#1
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Realex RealDirect Payment Module.

Now available for download:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_48&products_id=825

Please post any questions or comments here.

Note to anyone who has the module from Realex- This is a debugged and extended version of that and it works!

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

23 Jan 2008, 5:34 PM
#2
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi. I never heard of Realex until 20 mins ago from a client and found this so thats great! But I installed it as instructed and have an error on the checkout_confirmation page. The error is:-

Fatal error: Call to a member function on a non-object in /home/banner/public_html/includes/modules/payment/realex.php on line 113

I checked the line and I think it must be the $osC_Session part as this is not listed anywhere else in Zencart. Does this exist as another name in Zencart so we can just change it?

Thanks

Laurie

23 Jan 2008, 6:43 PM
#3
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

I have selected "Only GBP" in the Admin of this add on, and this got rid of the error.

23 Jan 2008, 11:55 PM
#4
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

The $osC_Session variable is a relic from Realex's osCommerce mod- I will remove it from the next version. There's also a couple of debug lines I need to take out too but it should not impact you too much.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

12 Feb 2008, 1:00 PM
#5
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi.

I have more issues with this process (we've only just got the client and realex to update the new URL of the site so havent been able to test it till now).

  1. First, I didn't realise before_process.php was the callback URL to give to Realex, i.e. http://www.mydomain.co.uk/before_process.php. Is this correct as it is not in the instructions.

  2. We had some errors during checkout which led us to believe we needed to create a text file called vars.txt in the root of our domain, and this needs to be writeable. We did this and the error has gone. There was nothing about this in the instructions. So is this correct?

  3. After making a payment we get a pop up on the realex site saying:-

Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue sending this information?

This is obviously not good, so where is this information being sent from/to because Realex is secure. Our site is not secure of course, because we are using a secure gateway there should be no need for us to also secure the website.

  1. If I click Continue we then get a pop up back on our site saying:-

The page at http://www.mydomainname.co.uk says:
3c6cfa02d4440a5b6db584c03cb5ff5b

Where the gobbldygook looks like the MD5Hash

  1. After this we are on the main_page=checkout_page and we get the error:-

Warning: Cannot modify header information - headers already sent by (output started at /home/banner/public_html/includes/modules/payment/realex.php:191) in /home/banner/public_html/includes/functions/functions_general.php on line 44

So are we doing something wrong somewhere?

Thanks

12 Feb 2008, 1:29 PM
#6
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

I've just uploaded an update to the mod. Here's the details:

Title : Realex Payment Module
Author : Andrew Moore
Version : 1.01
Description : This update gets rid of the osCommerce variable that was a
hangover from Realex's attempt to convert the osC mod to ZenCart.

Also removed the debugging tools.

Readme updated with instructions of how to inform Realex regarding the
callback URL.
Category : Payment Modules
Zen Cart Version : v1.3.8

This should resolve all your issues.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

12 Feb 2008, 1:32 PM
#7
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

infocom:

  1. After making a payment we get a pop up on the realex site saying:-

This is obviously not good, so where is this information being sent from/to because Realex is secure. Our site is not secure of course, because we are using a secure gateway there should be no need for us to also secure the website.

This is correct- It's the browser telling you that you are moving from a secure site (Realex) to an insecure site (your website).

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

13 Feb 2008, 2:40 PM
#8
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Yay! Apart from 3) the security pop up it seems to now be working like a charm! Thanks for this mod and the bug fixes.

About 3) though... other payment gateways I have used don't do this. So it must be this mod or Realex related. I think I will have to install a SSL cert to overcome it.

Thanks again

13 Feb 2008, 3:59 PM
#9
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

I think it's the way Realex coded things at their end. I seem to remember we had to get an SSL cert before it went away.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

24 Sep 2008, 5:30 PM
#10
peter_murphy avatar

peter_murphy

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Having serious problem with the realex payment module. On our web site (zen cart version 1.3.7) we have 2 currenies euro and GBP it only works with 1 currency. Can anyone help...Thanks...

25 Sep 2008, 10:13 PM
#11
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

peter Murphy:

Having serious problem with the realex payment module. On our web site (zen cart version 1.3.7) we have 2 currenies euro and GBP it only works with 1 currency. Can anyone help...Thanks...

Check with Realex that they are allowing you to use both currencies.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

9 Nov 2009, 10:14 PM
#12
stuartmcmahon avatar

stuartmcmahon

New Zenner

Join Date:
Nov 2009
Posts:
8
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi,
I have downloaded and installed this module for Realex.
I have updated my merchantID and shared secret in the modules/payment/realex but everytime I submit an order I get the following error:
Error 508
Invalid data in MERCHANT_ID field.

Can someone help me out.

thanks.

9 Nov 2009, 10:24 PM
#13
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

stuartmcmahon:

Hi,
I have downloaded and installed this module for Realex.
I have updated my merchantID and shared secret in the modules/payment/realex but everytime I submit an order I get the following error:
Error 508
Invalid data in MERCHANT_ID field.

Can someone help me out.

thanks.

What do you have your Merchant ID set to?

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 Nov 2009, 9:25 PM
#14
stuartmcmahon avatar

stuartmcmahon

New Zenner

Join Date:
Nov 2009
Posts:
8
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi,
I orignally set the merchantID value in the Modules->Payment->Realex but this didn't work. So I hard coded the value in the code itself and that didn't work. So I downloaded the sample PHP from Realex and only then could I successfully process a payment.
But I still can't successfully complete the order because I get an error message:

"Although this page is encrypted, the information you have entered is to be sent over an encrypted connection that could easily be read by a third party..."

and if the user selects cancel instead of continue the order is not inserted into Zencart database even though the payment was successful. And on top of that even if they do select continue they are returned to an blank page.

Any ideas how I solve these issues?

I am using ZenCart v1.3.8a

thanks.

10 Nov 2009, 10:19 PM
#15
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

stuartmcmahon:

Hi,
I orignally set the merchantID value in the Modules->Payment->Realex but this didn't work. So I hard coded the value in the code itself and that didn't work. So I downloaded the sample PHP from Realex and only then could I successfully process a payment.
But I still can't successfully complete the order because I get an error message:

"Although this page is encrypted, the information you have entered is to be sent over an encrypted connection that could easily be read by a third party..."

and if the user selects cancel instead of continue the order is not inserted into Zencart database even though the payment was successful. And on top of that even if they do select continue they are returned to an blank page.

Any ideas how I solve these issues?

I am using ZenCart v1.3.8a

thanks.

I found quite a few issues with the Realex code (which I flagged them on)- I'm still concerned about why your Merchant ID is not being accepted- Does it contain any characters other than A-Z and 0-9?

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

10 Nov 2009, 11:32 PM
#16
stuartmcmahon avatar

stuartmcmahon

New Zenner

Join Date:
Nov 2009
Posts:
8
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

my merchantid is "equestriangifts"
website is https://www.equestriangifts.ie
I managed to get it redirecting to the checkout_success page but the order is not added to the database. can this be done from the success page. If it can then I think I'm done bar the secure items error message (which is not good for a customer confidence point of view)

10 Nov 2009, 11:38 PM
#17
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: Realex RealDirect Payment Module.

stuartmcmahon:

my merchantid is "equestriangifts"
website is https://www.equestriangifts.ie
I managed to get it redirecting to the checkout_success page but the order is not added to the database. can this be done from the success page. If it can then I think I'm done bar the secure items error message (which is not good for a customer confidence point of view)

Are you still using the Realex code? In which case I think it's set for osCommerce (it was the code I used to make the ZenCart mod). You could possibly use something like WinMerge to check out the differences between my code and the Realex code. However the mod should work- I use it on 3 of my own sites with no problem. Have you tried contacting Realex after putting through a test transaction and finding out from them why it failed?

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

11 Nov 2009, 8:15 AM
#18
stuartmcmahon avatar

stuartmcmahon

New Zenner

Join Date:
Nov 2009
Posts:
8
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi,
I think I got it working, will test more this evening. I think I had managed to merge some of realex code with yours which was causing me no end of grief.
thanks.

12 Nov 2009, 11:28 AM
#19
stuartmcmahon avatar

stuartmcmahon

New Zenner

Join Date:
Nov 2009
Posts:
8
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi,
All is working fine now - minor technical hitch at the start!
I also updated your before_process.php to display a friendly error message if the card processing failed from Realex. You can use it on your sites if you like. Let me know what you think.
thanks.

<html> <body> <?php $result = $_POST['RESULT'];

if ($result == "00") {

include('includes/application_top.php');
//$orderid = $_POST['ORDER_ID'];

$process_button_string = 
                           zen_draw_hidden_field('MERCHANT_ID', $_POST['MODULE_PAYMENT_REALEX_ID']) .
                           zen_draw_hidden_field('ORDER_ID', $_POST['ORDER_ID']) .
                           zen_draw_hidden_field('TIMESTAMP', $_POST['TIMESTAMP']) .
                           zen_draw_hidden_field('AUTHCODE', $_POST['AUTHCODE']) .
                           zen_draw_hidden_field('MESSAGE', $_POST['MESSAGE']) .
                           zen_draw_hidden_field('RESULT', $_POST['RESULT']) .
                           zen_draw_hidden_field('PASREF', $_POST['PASREF']) .
                           zen_draw_hidden_field('MD5HASH', $_POST['MD5HASH']);

echo "<form action='" . zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL') . "' method='post' name='completeprocess'>";
echo $process_button_string;
echo "</form>";

?>

Your order payment was processed successfully.

<script> document.completeprocess.submit(); </script> <?php } else { ?> <p> <strong>We encountered a problem processing your order payment.</strong> <i> <?php echo $_POST['MESSAGE'] ?> </i><br /> To try again please <a href="http://www.equestriangifts.ie/index.php?main_page=shopping_cart"><strong>click here</strong></a><br /> If you would like to discuss your order contact us at <a href="mailto:[email protected]">[email protected]</a> or call us on +353 (0)51 644388 </p> <?php } ?> </body> </html>
19 Mar 2010, 2:35 PM
#20
colmfitz avatar

colmfitz

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: Realex RealDirect Payment Module.

Hi,

Does this module support both Redirect and Remote methods of integration?
I see osCommerce version of the plugin does and apparently came from Realex themselves.
But I'd prefer to use Zen Cart if I could.

Cheers.