Forums / Addon Payment Modules / Direct Bank Deposit

Direct Bank Deposit

Views: 78,007

Results 81 to 100 of 164
1 Feb 2018, 2:41 AM
#81
anthonyennis avatar

anthonyennis

New Zenner

Join Date:
Aug 2017
Location:
Toronto, Ontario, Canada
Posts:
33
Plugin Contributions:
0

Direct Bank Deposit

I downloaded this plugin, but Canada is not listed. Is there an update for Canadian users?

Anthony Ennis
www.novainkjet.com

4 Feb 2018, 12:18 AM
#82
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Direct Bank Deposit

I have clients in Canada that use email money transfer successfully. We cloned the zen check/money order payment module in each cart regardless of version and made the edits needed.

17 Jul 2018, 11:53 AM
#83
kwesi avatar

kwesi

New Zenner

Join Date:
May 2018
Location:
Ghana
Posts:
1
Plugin Contributions:
0

Re: Direct Bank Deposit

Hello, Please I need Ghana version of this module. Am using zencart 1.5.5f and our banking details for local deposit and international deposit are just below.
Account Name:
Routing Number:
Bank Name:
Account Number:
SWIFT Code:

===========================
TO INSTALL

Copy the includes folder for your country to the root of your Zen Cart store (This section confuses me so kindly direct me as to where to find this root of the store since when I click on my public html and my zencart store, there is an include folder already).

24 Jun 2019, 2:12 AM
#84
nuganics avatar

nuganics

New Zenner

Join Date:
Dec 2008
Posts:
65
Plugin Contributions:
0

Re: Direct Bank Deposit

I have Zen cart 1.5.6b with PHP 7.3 and getting the below warning

[23-Jun-2019 13:53:33 Australia/Melbourne] Request URI: /xxxx/orders.php?cID=20525&page=1&oID=20993&action=edit, IP address: 49.197.64.63
#1 dirbankaus->update_status() called at [/home/x/public_htmlxxx/includes/modules/payment/dirbankaus.php:41]
#2 dirbankaus->dirbankaus() called at [/home/xxxx/public_html/gdadmin/orders.php:420]
--> PHP Warning: Illegal string offset 'id' in /home/xxxxx/public_html/includes/modules/payment/dirbankaus.php on line 50.

line 50 dirbankaus.php is below:
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKAUS_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");

From my reading I don't think this error can be fixed in line 50. It might need to be fixed in line 41 below?:
if (is_object($order)) $this->update_status();

14 Jul 2019, 5:06 PM
#85
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

I'll try and add Japanese bank transfer (local, not international) support to the module and report back.
What I want/need:

  1. Bank name
  2. Bank code (optional)
  3. Account type (current, savings, etc.)
  4. Branch name
  5. Branch code (optional)
  6. Account holder name

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

15 Jul 2019, 2:00 AM
#86
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

I'm going to start hacking at the code, the Indian bank account support appears most close to what I need for Japan (and South Africa for that matter). I'm also interested in supporting multiple bank accounts, not sure from the description whether only one account is currently supported. Will see..

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

15 Jul 2019, 2:28 PM
#87
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

I've hacked up a version for Japan, see attachment. Would work for any other country that has similar settings, or can remove/comment out as needed.
I've made it support up to two extra (total three) accounts, optionally settable in the module settings. Makes the description and text message creation a bit harder, have to stitch it together in the module code rather than just reading in descriptions from the language files.
Hope it is useful, of course any improvements/suggestions by the maintainer or other members would be much appreciated as well.

The fields I defined:

  1. Bank name
  2. Bank code (optional)
  3. Branch name
  4. Branch code (optional)
  5. Account type (current, savings, etc.)
  6. Account Number
  7. Account holder name

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

15 Jul 2019, 3:05 PM
#88
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

Updated: added Japanese language file, removed temporary files left in accidentally, arranged columns with spaces.
Note: could not figure out how to delete old upload, really just want to replace the previous one.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

22 Jul 2019, 2:08 PM
#89
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

I do have a question, could be answered generally, but specifically in regard to this module, where the parameters for accounts are directly entered into the configuration DB: how would it be possible to make the module multilingual?

The configure table does not have a language parameter as far as I can tell. So with the current setup, I imagine one could do it like this, as a workable hack:

  1. Add named configuration parameters for extra languages (bank name, branch name, account type, account holder name).
  2. Change the code to check the language and choose the right parameter to display.

A more thorough way, which would involve re-writing the module, might be to use specific tables for the module, one or more as required could have language parameters.

Any advice most appreciated. I am happy to work on a long-term solution, but a short-term solution (let's say, for users who only need 2 languages) would be fine for now also.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

29 Jul 2019, 2:42 PM
#90
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Direct Bank Deposit

Hi all,
I've gone ahead and added Japanese versions of bank name, branch name, account type, and account holder name, to the configuration.
And 3 accounts in total.
Attachment #18571

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

19 Mar 2020, 10:13 PM
#91
vinyl_signs avatar

vinyl_signs

Zen Follower

Join Date:
Jun 2007
Location:
Shropshire UK
Posts:
125
Plugin Contributions:
0

Re: Direct Bank Deposit

Hi - I wonder if there is any way to have the Direct Bank transfer for Australia behave the same as for New Zealand ?
I do not require or want cheques and money orders - or the email notification - just the "Please use the following details to transfer your total order value"
Many Thanks for any guidance on this issue...

10 Sep 2020, 9:00 AM
#92
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Direct Bank Deposit

For anyone trying to install this when running later versions of PHP it seems you need to make the following change.

\includes\modules\payment\dirbank.php

 class dirbank {
    var $code, $title, $description, $enabled;

// class constructor
    function dirbank() {
      global $order;

Needs to be changed to

  class dirbank {
    var $code, $title, $description, $enabled;

// class constructor
    function __construct() {
      global $order;
2 Dec 2020, 5:02 AM
#93
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Direct Bank Deposit

Brent:

For anyone trying to install this when running later versions of PHP it seems you need to make the following change.

class dirbank {
var $code, $title, $description, $enabled;

// class constructor
function dirbank() {
global $order;

> 
> Needs to be changed to
> 
> ```php
  class dirbank {
    var $code, $title, $description, $enabled;

// class constructor
    function __construct() {
      global $order;

Hmmm... my version I downloaded already has this in it for 1.5.7, it appears to have installed okay except that it's not showing up for my customers in the cart.... anyone got any suggestions as to what I may have missed....?

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

4 Dec 2020, 2:17 AM
#94
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
429
Plugin Contributions:
0

Re: Direct Bank Deposit

Have you installed it under Admin Payment Modules so it is showing a green button?

I'm using v1.5.3 Aus version with zc157a in test.

If you receive an error re indexes customer_id and customer_last_name not defined I placed

// Undefined index: customer_id, customer_last_name bof
@$id=$_SESSION['customer_id'];
@$ln=$_SESSION['customer_last_name'];
// eof

at the beginning of the code in includes/languages/english/modules/payment/dirbankaus.php

environment Test: Zen Cart 157a; Apache 2.4.46; PHP 7.4.9; MySQL 5.7.31; Windows 10

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

11 Dec 2020, 12:38 AM
#95
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Direct Bank Deposit

Yes, I have the green light showing on the admin page. It doesn't show on the payment options page at all for the customer.... I'm on 1.5.7

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

11 Dec 2020, 12:52 AM
#96
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: Direct Bank Deposit

Hmmm... it's a zone thing... it will only accept one of my zones, not the New Zealand Zone...

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

11 Dec 2020, 7:05 AM
#97
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
429
Plugin Contributions:
0

Re: Direct Bank Deposit

Dirbank is tied to the Tax Rates defined under Admin | Locations /Taxes | Tax Rates.

The zones referenced are under Admin | Locations/Taxes | Zone Definitions - Taxes, Payment and Shipping
I have created two zones:
first zone is: zone Name = "Australia", Description = "Australia - GST";
under Details: Country=Australia, Zone= All zones
under Tax Rate: Priority=1, Tax Class Title=GST, Zone=Australia [note this references the Zone under zone definitions], tax Rate=10, Description = GST

second zone is: zone-name= "Outside Aus", Description =World-excluding Australia"
under Details: Country= every country except Australia, Zone= All zones
under Tax Rate: Priority=0, Tax Class Title=No Tax, Zone=Outside Aust [note this references the Zone under zone definitions], tax Rate=0, Description = GST Free

So if you have two countries with the same tax rate you can combine them into one Zone.

There must be a green dot against the entries in Zone Definitions - Taxes, Payment and Shipping

Under Admin | Configuration | My Store I have
Basis of Product Tax = Shipping. and
Basis of Shipping Tax = Shipping

so Zen Cart will add tax based on shipping address. Aus customers see Dirbank, Customers outside Aus don't see Dirbank.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

7 Jan 2021, 9:54 PM
#98
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,870
Plugin Contributions:
19

Re: Direct Bank Deposit

1.5.7b PHP 7.3.25 MySQL 5.7.32
OPC
Edit Orders
PayPal Express
Zone Shipping
No other Payment or Shipping Mods Installed

Using dirbanknz.php

Warning log[05-Jan-2021 13:36:10 US/Central] Request URI: /******/index.php?cmd=orders&page=1&oID=1596&action=update_order&language=NZ, IP address: 122.##.###.### #1 dirbanknz->update_status() called at [/includes/modules/payment/dirbanknz.php:41] #2 dirbanknz->__construct() called at [/******/orders.php:266] #3 require(/******/orders.php) called at [/******/index.php:11] --> PHP Warning: Illegal string offset 'id' in /includes/modules/payment/dirbanknz.php on line 50.Latest code from download of file```
// class methods function update_status() {
global $order, $db;

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKNZ_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKNZ_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    while (!$check->EOF) {
      if ($check->fields['zone_id'] < 1) {
        $check_flag = true;
        break;
      } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
        $check_flag = true;
        break;
      }
      $check->MoveNext();
    }


    if ($check_flag == false) {
      $this->enabled = false;
    }
  }
Assuming the item in red is the problem but not sure of the solution.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

8 Jan 2021, 12:22 AM
#99
drbyte avatar

drbyte

Sensei

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

Re: Direct Bank Deposit

dbltoe:

1.5.7b PHP 7.3.25 MySQL 5.7.32
OPC
Edit Orders
PayPal Express
Zone Shipping
No other Payment or Shipping Mods Installed

Using dirbanknz.php

Warning log[05-Jan-2021 13:36:10 US/Central] Request URI: /******/index.php?cmd=orders&page=1&oID=1596&action=update_order&language=NZ, IP address: 122.##.###.### #1 dirbanknz->update_status() called at [/includes/modules/payment/dirbanknz.php:41] #2 dirbanknz->__construct() called at [/******/orders.php:266] #3 require(/******/orders.php) called at [/******/index.php:11] --> PHP Warning: Illegal string offset 'id' in /includes/modules/payment/dirbanknz.php on line 50.Latest code from download of file```
// class methods function update_status() {
global $order, $db;

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_DIRBANKNZ_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_DIRBANKNZ_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    while (!$check->EOF) {
      if ($check->fields['zone_id'] < 1) {
        $check_flag = true;
        break;
      } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
        $check_flag = true;
        break;
      }
      $check->MoveNext();
    }


    if ($check_flag == false) {
      $this->enabled = false;
    }
  }
> Assuming the item in red is the problem but not sure of the solution.
2 tips:
1. If this store is using this module for "all addresses", eg no zone restrictions, you could just put "return;" as the first line of the update_status() function and skip that part altogether.
2. The parameters passed to the zone lookup query in many older shipping/payment modules' update_status() functions are quite possibly incorrect. Compare with the update_status() function in current built-in shipping/payment modules to see what may be incorrect. It's also easy to test whether the change you make has any undesired side-effects: just test whether the module works both with and without zone restrictions applied for a given address.

.
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.

24 Apr 2021, 4:31 AM
#100
4tinak avatar

4tinak

New Zenner

Join Date:
Sep 2020
Location:
Arizona
Posts:
29
Plugin Contributions:
0

Re: Direct Bank Deposit

Please help I need the following corrected - see image
Attachment 19531

Reference - can this be changed to only show the order #?
How do you change MODULE_PAYMENT_DIRBANKAUS_ADDRESS - looks like something is missing.
Can Swift Code be removed?

Thanks for the help!