diff --git a/ms_affiliates/includes/ms_paypal_wps_class.php b/ms_affiliates/includes/ms_paypal_wps_class.php
index 02ebd91..a1811d9 100644
--- a/ms_affiliates/includes/ms_paypal_wps_class.php
+++ b/ms_affiliates/includes/ms_paypal_wps_class.php
@@ -15,7 +15,7 @@ class ms_paypal_wps_class {
    var $ipn = array();
    var $values = array();
 
-      function ms_paypal_wps_class($ipn_vars = NULL) {
+      function __construct($ipn_vars = NULL) {
       $this->ipnLink = ($ipn_vars['test_ipn']) ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
       $this->ipn_vars = $ipn_vars;
       $this->lastError = '';
diff --git a/ms_core/gateways/ms_ibis/Merchant.php b/ms_core/gateways/ms_ibis/Merchant.php
index fe858a1..0b6d06c 100644
--- a/ms_core/gateways/ms_ibis/Merchant.php
+++ b/ms_core/gateways/ms_ibis/Merchant.php
@@ -48,7 +48,7 @@ class Merchant
    * @param string $keystorepassword value of the keystorepassword
    * @param boolean $verbose TRUE to output verbose information. Writes output to STDERR, or the file specified using CURLOPT_STDERR.
    */
-  function Merchant($url, $keystore, $keystorepassword, $verbose = 0) {
+  function __construct($url, $keystore, $keystorepassword, $verbose = 0) {
     $this->url = $url;
     $this->keystore = $keystore;
     $this->keystorepassword = $keystorepassword;
diff --git a/ms_core/gateways/ms_paypal_wps/includes/ms_paypal_wps_class.php b/ms_core/gateways/ms_paypal_wps/includes/ms_paypal_wps_class.php
index 46bac74..0dfa635 100644
--- a/ms_core/gateways/ms_paypal_wps/includes/ms_paypal_wps_class.php
+++ b/ms_core/gateways/ms_paypal_wps/includes/ms_paypal_wps_class.php
@@ -11,7 +11,7 @@ class ms_paypal_wps_class {
   var $ipn = array();
   var $values = array();
 
-  function ms_paypal_wps_class($ipn_vars = NULL) {
+  function __construct($ipn_vars = NULL) {
     $this->ipnLink = (isset($ipn_vars['test_ipn']) AND $ipn_vars['test_ipn']) ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
     $this->ipn_vars = $ipn_vars;
     $this->lastError = '';
diff --git a/ms_core/gateways/ms_realex/ms_realex.class.php b/ms_core/gateways/ms_realex/ms_realex.class.php
index 699d319..6909b8a 100644
--- a/ms_core/gateways/ms_realex/ms_realex.class.php
+++ b/ms_core/gateways/ms_realex/ms_realex.class.php
@@ -16,7 +16,7 @@ class RealexRemote
   var $records;
   var $answers;
 
-  function RealexRemote($url, $xml) {
+  function __construct($url, $xml) {
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $url);
     curl_setopt($ch, CURLOPT_POST, 1);
