Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with Bank transfer for australia


Guest

Recommended Posts

we are getting customers who are currently asking why dont we accept direct depoist form as payment and we have traied some modules and they do not work and if any is willing to help us at all please let us know

 

What we need to display please

 

BSB NO

ACC Number

Account Name

Payment Amount

 

if you have any ideas at all please let us know as soon as possible

Link to comment
Share on other sites

we have tried to install ausbank module and its not working at all and we do not know what to do from here

 

PM me with your problems and I'll assist where possible. It's a very easy module to install so I can't see it being too difficult.

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

I have also tried to install the ausbank v1.3 module but I get the following error within admin

 

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/.sites/4/site184/web/catalog/includes/modules/payment/ausbank.php on line 118

 

I'm a newbie, so could someone tell me what this means, and how to fix it? :oops:

Link to comment
Share on other sites

I haven't come across this error, and I've been fairly busy lately... if I get a chance over the weekend, I'll compare my files to the originals andsee if I've made any changes to them.

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Hi:

 

I too am trying to install Ausbank v1.3 module and am also getting the error:

 

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/reactorv/public_html/shop/includes/modules/payment/ausbank.php on line 118

 

My shop directory is:

 

/shop

/shop/admin

 

the catalog files etc run directly under shop, not shop/catalog! This was the way they were installed for me and everything else runs fine.

 

Any help on why this may be occuring. I am running osCommerce 2.2-MS1.

 

Thanks

Ernie

Link to comment
Share on other sites

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}''
Usually, this kind of error means that you are missing a } somewhere. You probably should check to make sure that all the lines that you added with a { also have a corresponding }. You also might want to check any lines that you may have commented out for } that you might need.

 

Hth,

Matt

Link to comment
Share on other sites

Sorry about the delay in getting back to you all on this one, been extremely busy lately.

 

Find this code: (Lines 51 - 54)

        if ($check_flag == false) {

         $this->enabled = false;

       }

     }

Replace with this:

        if ($check_flag == false) {

         $this->enabled = false;

       }

     }

    }

 

Also, I've corrected some problems with the install function, and also corrected the BSB example to appear in the Australian format (000-000).

 

Find this code: (Lines 98 - 107)

    function install() {

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cash On Delivery Module', 'MODULE_PAYMENT_AUS_BANK_STATUS', 'True', 'Do you want to accept Cash On Delevery payments?', '6', '1', 'tep_cfg_select_option(array('True', 'False'), ', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUS_BANK_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_AUS_BANK_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('BSB Number', 'MODULE_PAYMENT_AUS_BANK_BSB', '00-00-00', 'BSB Number in the format 000-000', '6', '1', now());");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account No.', 'MODULE_PAYMENT_AUS_BANK_ACCNUM', '12345678', 'Bank Account No.', '6', '1', now());");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account Name', 'MODULE_PAYMENT_AUS_BANK_ACCNAM', 'Joe Bloggs', 'Bank account name', '6', '1', now());");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Name', 'MODULE_PAYMENT_AUS_BANK_BANKNAM', 'The Bank', 'Bank Name', '6', '1', now());");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

  }

Replace with this:

    function install() {

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cash On Delivery Module', 'MODULE_PAYMENT_AUS_BANK_STATUS', 'True', 'Do you want to accept Cash On Delevery payments?', '6', '1', 'tep_cfg_select_option(array('True', 'False'), ', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUS_BANK_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_AUS_BANK_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('BSB Number', 'MODULE_PAYMENT_AUS_BANK_BSB', '000-000', 'BSB Number in the format 000-000', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account No.', 'MODULE_PAYMENT_AUS_BANK_ACCNUM', '12345678', 'Bank Account No.', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account Name', 'MODULE_PAYMENT_AUS_BANK_ACCNAM', 'Joe Bloggs', 'Bank account name', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Name', 'MODULE_PAYMENT_AUS_BANK_BANKNAM', 'The Bank', 'Bank Name', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

   }

 

Once I confirm that this works for everyone, I'll upload the corrected files to the contribution.

 

Let me know if you have any problems.

 

HTH,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

I just upgraded to the latest code and it doesent work now

 

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /dvdvideo/public_html/oscom/catalog/catalog/includes/modules/payment/ausbank.php on line 118

 

Ok what is the fix please?

Link to comment
Share on other sites

Paul,

Which code are you talking about?

The original 1.3 package or after the modifications I posted earlier?

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Did you remove the previous install first, before you installed the modified version?

 

Just that the error doesn't seem to have changed according to your last post.

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

I've just looked at my files, and the differences between it and the original.

I'm using the current snapshot and all is working fine for me.

 

Based on that, I'd remove all the previous code and database changes before applying the new version.

 

Tony

 

This is my 'includesmodulespaymentausbank.php' file.

<?php

/*

 $Id: ausbank.php,v 1.3 2003/06/13



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



 class ausbank {

   var $code, $title, $description, $enabled;



// class constructor

   function ausbank() {



     global $order;

     $this->code = 'ausbank';

     $this->title = MODULE_PAYMENT_AUS_BANK_TEXT_TITLE;

     $this->description = MODULE_PAYMENT_AUS_BANK_TEXT_DESCRIPTION;

     $this->email_footer = MODULE_PAYMENT_AUS_BANK_TEXT_EMAIL_FOOTER;

     $this->sort_order = MODULE_PAYMENT_AUS_BANK_SORT_ORDER;

     $this->enabled = ((MODULE_PAYMENT_AUS_BANK_STATUS == 'True') ? true : false);



     if ((int)MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID > 0) {

       $this->order_status = MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID;

     }



     if (is_object($order)) $this->update_status();

   }



// class methods

   function update_status() {

     global $order;



     if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_AUS_BANK_ZONE > 0) ) {

       $check_flag = false;

       $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_AUS_BANK_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

       while ($check = tep_db_fetch_array($check_query)) {

         if ($check['zone_id'] < 1) {

           $check_flag = true;

           break;

         } elseif ($check['zone_id'] == $order->delivery['zone_id']) {

           $check_flag = true;

           break;

         }

       }



       if ($check_flag == false) {

         $this->enabled = false;

       }

     }

 }



   function javascript_validation() {

     return false;

   }



   function selection() {

     return array('id' => $this->code,

                  'module' => $this->title);

   }



   function pre_confirmation_check() {

     return false;

   }



   function confirmation() {

     return array('title' => MODULE_PAYMENT_AUS_BANK_TEXT_DESCRIPTION);

   }



   function process_button() {

     return false;

   }



   function before_process() {

     return false;

   }



   function after_process() {

     return false;

   }



   function get_error() {

     return false;

   }



   function check() {

     if (!isset($this->_check)) {

       $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_AUS_BANK_STATUS'");

       $this->_check = tep_db_num_rows($check_query);

     }

     return $this->_check;

   }



   function install() {

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cash On Delivery Module', 'MODULE_PAYMENT_AUS_BANK_STATUS', 'True', 'Do you want to accept Cash On Delevery payments?', '6', '1', 'tep_cfg_select_option(array('True', 'False'), ', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_AUS_BANK_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_AUS_BANK_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('BSB Number', 'MODULE_PAYMENT_AUS_BANK_BSB', '000-000', 'BSB Number in the format 000-000', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account No.', 'MODULE_PAYMENT_AUS_BANK_ACCNUM', '12345678', 'Bank Account No.', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Account Name', 'MODULE_PAYMENT_AUS_BANK_ACCNAM', 'Joe Bloggs', 'Bank account name', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Bank Name', 'MODULE_PAYMENT_AUS_BANK_BANKNAM', 'The Bank', 'Bank Name', '6', '1', now())");

     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

   }



   function remove() {

     tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

   }



   function keys() {

     return array('MODULE_PAYMENT_AUS_BANK_STATUS', 'MODULE_PAYMENT_AUS_BANK_ZONE', 'MODULE_PAYMENT_AUS_BANK_SORT_ORDER', 'MODULE_PAYMENT_AUS_BANK_BSB', 'MODULE_PAYMENT_AUS_BANK_ACCNUM', 'MODULE_PAYMENT_AUS_BANK_ACCNAM', 'MODULE_PAYMENT_AUS_BANK_BANKNAM', 'MODULE_PAYMENT_AUS_BANK_ORDER_STATUS_ID');

   }

 }

?>

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

ok I did the update to your file and it works in admin but not in the check out.

 

i.e. I can set the config settings ok in admin , but inthe cart it doesent show as a paynet option.

Link to comment
Share on other sites

I have tried everything you suggest and its not showing as an option in the checkout process. Why is that?

 

Database has everything installed fresh , admin shows the setuo of account , but when you go through the cart its not there as an option of payment.

 

I am lost

Link to comment
Share on other sites

Do you have the 'Unallowed Payments' contribution installed?

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

hmm well i have just used uninstall on the admin panel and reinstalled it and now it there ... happy sambo am I

 

Thanks for all your help , although there seems to be something happening unusual with it if i needed to uninstall and install again to get it to work..

 

Thanks again for your assistance... more than happy that you were available to help out

 

Paul

Link to comment
Share on other sites

Ahh... when I said to uninstall it a few posts ago, I meant by the admin section, not just delete the old files.

 

Can some other people please return their results, so I know if the file is stable enough to add to the contribution.

If you have the original v1.3 installed first, uninstall it before replacing the files. If that doesn't work, ie. errors, than replace the files and then uninstall it.

If you've never had AusBank installed it, can you please me know that also, and if it worked first time.

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...