Forums / Addon Payment Modules / Bank Transfer

Bank Transfer

Views: 6,418

Results 1 to 17 of 17
6 Jul 2016, 10:33 AM
#1
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Bank Transfer

Ive been looking through the plugins section but would like some independent advice.

Is there a UK plugin I can use to give customers the option of paying by BACS (Bank Transfer) and are any of you using one you could recommend

Many thanks in advance :D

6 Jul 2016, 1:30 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

I think this is the one most commonly used for that: Direct Bank Deposit

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jul 2016, 2:22 PM
#3
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Bank Transfer

DrByte:

I think this is the one most commonly used for that: Direct Bank Deposit

Cheers mate just downloaded it, will give it a look. TY

6 Jul 2016, 2:26 PM
#4
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: Bank Transfer

I use that one

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

27 Jan 2017, 2:23 AM
#5
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Bank Transfer

I need this module, but my worry is that it overwrites /includes/classes/order.php. Since this module has not been updated since 2014, I'm worries that it's overwriting an old version of order.php, which might affect functionality on my site. I'm running the latest zencart version 1.1.5d.

Is overwriting order.php advisable?

Thanks a lot!

27 Jan 2017, 3:03 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

Do you need just the direct-bank-deposit portion for AU ? For that I think there's a way to skip needing the customized order.php class.

Or do you also need the modified store-pickup parts? That'll require merging some changes.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Jan 2017, 3:37 AM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Bank Transfer

ttfan:

I need this module, but my worry is that it overwrites /includes/classes/order.php. Since this module has not been updated since 2014, I'm worries that it's overwriting an old version of order.php, which might affect functionality on my site. I'm running the latest zencart version 1.1.5d.

Is overwriting order.php advisable?

Thanks a lot!

Simply merge the relevant files using something like Beyond Compare or WinMerge.

FYG, I have this running on 2 ZC 1.5.5d sites - no issues at all.

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Jan 2017, 4:10 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

frank18:

Simply merge the relevant files using something like Beyond Compare or WinMerge.

FYG, I have this running on 2 ZC 1.5.5d sites - no issues at all.

Cheers / Frank
Meh, if the changes for store-pickup aren't needed, then the altered orders.php file isn't needed at all for the direct-bank-deposit module, if a small edit is done to the module:

just add this function into the module:

    function after_order_create($order_id) {
      $this->email_footer = sprintf(MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER, $order_id);
    }

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jan 2017, 1:47 AM
#9
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Bank Transfer

Thank you! Just adding that function to the file seemed to work, except that in the Email generated it shows the following 2 lines, instead of the required information:
Send Cheques/Money Orders To: MODULE_PAYMENT_DIRBANKAUS_ADDRESS
Cheques/Money Orders Payable To: MODULE_PAYMENT_DIRBANKAUS_PAYABLE

30 Jan 2017, 5:47 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

ttfan:

Thank you! Just adding that function to the file seemed to work, except that in the Email generated it shows the following 2 lines, instead of the required information:
Send Cheques/Money Orders To: MODULE_PAYMENT_DIRBANKAUS_ADDRESS
Cheques/Money Orders Payable To: MODULE_PAYMENT_DIRBANKAUS_PAYABLE
When you go to Admin->Modules->Payment, and click on DirBankAus, and Edit, is there an Address and Payable field available in that list of configuration settings?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jan 2017, 10:13 AM
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Bank Transfer

DrByte:

When you go to Admin->Modules->Payment, and click on DirBankAus, and Edit, is there an Address and Payable field available in that list of configuration settings?

No, not exactly in this sense.

What is available (and that is all that's needed) are these fields:

Payment Zone (selector, should be set to Australia only)
Sort order of display
BSB Number
Bank Account No.
Bank Account Name
Swift Code (not necessary within AUS)
Bank Name
Order Status (selector - mostly 'Pending' or whatever has been configured elsewhere)

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Jan 2017, 2:32 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

frank18:

No, not exactly in this sense.

What is available (and that is all that's needed) are these fields:

Payment Zone (selector, should be set to Australia only)
Sort order of display
BSB Number
Bank Account No.
Bank Account Name
Swift Code (not necessary within AUS)
Bank Name
Order Status (selector - mostly 'Pending' or whatever has been configured elsewhere)
No, because the language file is looking for the two configuration constants for the footer text.

I suppose you could just delete the two lines from the language file which look for those constants, or replace them with the actual address/payable info directly in the language file instead of calling the constants:```
define('MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER', "Please use the following details to transfer your total order value:\n\n" .
"\nAccount No.: " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
"\nBSB Number: " . MODULE_PAYMENT_DIRBANKAUS_BSB .
"\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM .
"\nBank Name: " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
"\nSwift Code: " . MODULE_PAYMENT_DIRBANKAUS_SWIFT .
"\nReference: " . $ln ."-" . $id . "-%s" .
"\n\nSend Cheques/Money Orders To: " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS .
"\nCheques/Money Orders Payable To: " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
"\n\nThanks for your order which will ship immediately once we receive payment in the above account.\n");



Update:
Posting this for reference only: ```
     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('[B]Address[/B]', 'MODULE_PAYMENT_DIRBANKAUS_ADDRESS', '44 Australia St. Sydney 2000','Address to send cheques/money orders.','6','1',now());");
     $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('[B]Payable[/B]', 'MODULE_PAYMENT_DIRBANKAUS_PAYABLE', 'Joes Shop','Cheques/Money Orders Payable to:','6','1',now());");

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Feb 2017, 5:00 AM
#13
hevvieevvie avatar

hevvieevvie

New Zenner

Join Date:
Sep 2008
Location:
Perth, Australia
Posts:
28
Plugin Contributions:
0

Re: Bank Transfer

Hi guys,

I'm using this one s well however I would like to change the reference: which is sent in the email to the order number instead. I see there are a couple of SESSION variables being pulled over in dirbankaus.php for the last name and id of the customer. Is there a way to send the current order number over as well?

From what I can see there is no session for the $order_id variable?

thanks.

10 Feb 2017, 6:20 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

The change I posted in #8 specifically passes the order number, after the order number is assigned.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Feb 2017, 7:32 AM
#15
hevvieevvie avatar

hevvieevvie

New Zenner

Join Date:
Sep 2008
Location:
Perth, Australia
Posts:
28
Plugin Contributions:
0

Re: Bank Transfer

Thanks DrByte.

I'm a bit confused though? Do I just add it anywhere to /includes/languages/english/modules/payment/dirbankaus.php? or /includes/modules/payment/dirbankaus.php?

10 Feb 2017, 9:44 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Bank Transfer

In the language file, from the last posted zip, I see:

$id=$_SESSION['customer_id'];$ln=$_SESSION['customer_last_name'];


  define('EMAIL_TEXT_NO_DELIVERY',
  '<p>No Delivery, see below:');
  define('MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER', 
  "Please use the following details to transfer your total order value:\n\n" .
  "\nAccount No.:  " . MODULE_PAYMENT_DIRBANKAUS_ACCNUM .
  "\nBSB Number:   " . MODULE_PAYMENT_DIRBANKAUS_BSB . 
  "\nAccount Name: " . MODULE_PAYMENT_DIRBANKAUS_ACCNAM . 
  "\nBank Name:    " . MODULE_PAYMENT_DIRBANKAUS_BANKNAM .
  "\nSwift Code:   " . MODULE_PAYMENT_DIRBANKAUS_SWIFT . 
  "\nReference:    "  . $ln ."-" . $id . "-[B]%s[/B]" .
  "\n\nSend Cheques/Money Orders To:    " . MODULE_PAYMENT_DIRBANKAUS_ADDRESS . 
  "\nCheques/Money Orders Payable To:   " . MODULE_PAYMENT_DIRBANKAUS_PAYABLE .
  "\n\nThanks for your order which will ship immediately once we receive payment in the above account.\n");

And the payment module from the same zip, including its various edits to other files, ultimately ends up replacing the %s with the $order_id value.

If you want the module simplified so it doesn't have to touch other checkout files, I suggested adding the following code into it, which still passes the order_id into the %s position using sprintf():```
function after_order_create($order_id) {
$this->email_footer = sprintf(MODULE_PAYMENT_DIRBANKAUS_TEXT_EMAIL_FOOTER, $order_id);
}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Feb 2017, 12:54 AM
#17
hevvieevvie avatar

hevvieevvie

New Zenner

Join Date:
Sep 2008
Location:
Perth, Australia
Posts:
28
Plugin Contributions:
0

Re: Bank Transfer

Brilliant! It's coming through now :D Thanks once again DrByte :clap: