Adds a simple bank deposit payment method, so that customers may choose to deposit funds into a bank account you nominate.
The store administrator(s) can define the bank account details. If this payment method is selected in the checkout then the account details will be shown to the user in the checkout and order review pages.
It also creates a token called [bank-deposit-account] that will be replaced with the account details (useful for invoices). I use this code in the customer invoice:
<?php if ($order->payment_method == 'bankdeposit') { ?>
<tr>
<td nowrap="nowrap" valign="top">
<b><?php echo t('Account details:'); ?></b>
</td>
<td width="98%">
[bank-deposit-account]
</td>
</tr>
<?php } ?>Update: Somehow the code for the token was missing from version 1.1, it's been reinstated in version 1.2, sorry for any inconvenience caused!
Changelog:
5.x-1.3
- Removes extraneous code and table (Thanks TR)
5.x-1.2
- Reinstated token functionality (Thanks xeeb)
5.x-1.1
- ?
5.x-1.0
- Initial release
| Attachment | Size |
|---|---|
| uc_bankdeposit-5.x-1.3.tar.gz | 1.28 KB |


Re: Bank deposit payment method
Does the [bank-deposit-account] token work?
I have been trying to import the account details into invoices using many different methods, but none seem to work.
How do I implement this token?
Gah
Sorry for the inconvenience xeeb, somehow the code for the token was removed from the version I uploaded (and I couldn't find a copy of it anywhere). I've reimplemented it, tested it, and uploaded it here (now version 1.2).
Re: Gah
What's the purpose of the DB table you create and populate? I don't see that it does anything for you.
How silly
I think this must have been a hold over from when the module attempted to implement some other functionality. Was a while since I touched it (to reinstate token) and didn't pay much attention to anything else except token stuff... Thanks for picking this up.
Token inside
Cool module, but I do not manage to add token in my text with my coordinates banking. I will like to be able to indicate this:
"
Name: blabla
Account: 000-00000-00
Communication: IDUSER+DATEORDER
"
So that I can easily see from which customer the payment comes.
Thank,
Bye Tom.
Hi, first of all thanks for
Hi,
first of all thanks for this module, it is exactly what i was looking for.
in order to add full details off my account i have used html code in the bank deposit settings. something like this
Bank NAme:
Bank Account: XXXXXXXXXXXXXXXXXXXX
Name: XXXX YYYYY
What i would like to know, is if it possible to have these details translated.
i tried using php t() in the settings but it is ignored. Any idea how to do this?
thank you