VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: teemu_m on November 14, 2006, 18:37:44 pm

Title: New payment method add-on: Direct Deposit
Post by: teemu_m on November 14, 2006, 18:37:44 pm
Hello,

I've been looking for a direct deposit payment method add-on for my Joomla!/VirtueMart -project.

My most important requirements for a direct deposit add-on are:

Since none of the suggested solutions I has able to find answered all my requirements, I ended up to develop my own add-on. I hope you find it usefull too.

This is the first public release of the add-on. It is still in early alpha state. It hasn't been tested on a live shop. You should not install it to a production site before trying it in a testing environment. No warranty. You have been warned ;)

I will highly appreciate your comments and feedback.

You can download the add-on (dirdepo-0.1.1.zip) here: http://www.tyovaline.fi/oss/joomla/virtuemart/dirdepo/ (http://www.tyovaline.fi/oss/joomla/virtuemart/dirdepo/)

Below is the README -file of the add-on. The ZIP-package includes more documentation.

Code: [Select]
Direct Deposit Payment Method add-on for VirtueMart (http://www.virtuemart.com/)

General notes - see this README
Installation and user manual - see /doc/user/index.html
Class documentation for developers - see /doc/class/index.html
Changelog - see CHANGELOG
License (GNU GPL) - see LICENSE

Direct deposit as a payment method:
1. Customer selects products to his online shopping basket.
2. During the checkout process he is given a selection of different payment
   methods.
3. If he selects direct deposit, the online shop software (VirtueMart in this
   case) shows him a 'confirmation/thank you' message at the final step of
   checkout process. A confirmation message and order details are also send
   to customer's email address.
   DirDepo, as a payment method add-on, adds a table of information necessary
   for the direct deposit to the end of 'confirmation/thank you' message at the
   final step of checkout process. An other separate email, containing the
   direct deposit information, is also sent to the customer's email address.
   Direct deposit information contains info about the online vendor, the
   customer, the order and the invoicer.
   The vendor and the invoicer don't have to be the one and same party of the
   business transaction. For example 'the vendor', an online shop, might be
   just a marketing name for company, which is the actual invoicer, who
   should receive the direct deposit. On the other hand, the vendor and the
   invoicer can be the very same company or person.
   Most important pieces of direct deposit information are the name of invoicer,
   invoicers's bank and bank account number, bank reference number (or some other
   unique identifier of the deposit) and the total sum of the order.
4. VirtueMart records the order as a 'pending order' into the database. DirDepo
   adds the bank reference number into the order's payment history.
5. Sometime during the following days the customer makes a direct deposit
   to the invoicer's bank account for the sum of the order.
6. The invoicer notes that a deposit has been received and informs the vendor
   about it. The deposit can be linked to a particular order by the bank reference
   number.
7. The vendor updates the order status from 'pending' to 'confirmed'. VirtueMart
   is capable to send a status update notification to the customer if the vendor
   choses so.
8. Vendor finishes the order process (collects items of the order, packs them and
   sends the packet to the customer).

Some notes about the pitfalls of direct deposit as a payment method:
- The customer needs to trust the online vendor, because he is not protected by
  a third party like a credit card company.
  The vendor needs a good reputation, or the customer has to be protected for
  example by a law. Or - the customer has to just take his changes of being
  fooled by a rogue online vendor.
- The customer might never make the deposit.
  The vendor needs to keep book about the pending deposits and their age.
  Maybe the order has to be canceled after certain amount of time? Maybe the
  vendor has to contact the customer before the order can be concidered as
  'canceled'?
  Does the vendor procure or manufacture the order items before the deposit is
  received? Is vendor capable to sell them to some other customer, if this
  particular deposit is never received?
  Does the vendor even send the order to the customer before the deposit is
  received? What if the vendor is fooled by a rogue customer?
  Propably most vendors choose to keep the order pending and don't process the
  order any further before the deposit is received.
- The customer might use wrong bank reference number or no reference at all.
  The invoicer notes he has received a deposit, but can't link it to any
  particular order, because bank reference is wrong or missing. Maybe even
  the sum of deposit is wrong, and maybe the deposit doesn't contain any
  information about its originator? In that case the vendor doesn't have any
  way to know who's order should be completed. Will this upset the customer,
  even if it is actually his fault?
  The importance of bank reference is strongly underlined at DirDepo messages.
  At least finnish bank reference numbers have a checksum that greatly reduce
  the risk of incorrect reference numbers, since the bank validates the
  number before the customer is able to make his deposit. Do all countries have
  a similar bank reference standard? I guess not. How about international bank
  transactions? AFAIK, no. In those cases you may be able to use a message text
  in the deposit as a reference information field, but as an informal message
  it is not validated by a bank.
- Keeping eye on the received transactions does require some labor, especially
  if the reference numbers are wrong or missing very often.
  At least some finnish banks offer their online customers a possibility to
  download an ASCII-file containing a list of lately received deposits and
  their related information like the reference number. Maybe DirDepo or some
  other piece of software will some day include functionality to import such
  a list to VirtueMart and update related orders accordingly?
- I've red how some people are terrified of publishing their online shop's bank
  account number on the internet. If it is insecure to reveal your shop's bank
  account number to a customer during checkout or in the information email,
  then direct deposit isn't for you.
  In Finland it is a normal everyday routine to publish the bank account number
  of a invoicing company to a customer who is being invoiced, and I don't see
  any real risks in it.

Benefits of direct deposit (at least in Finland):
- Cheap. Doesn't require any contracts with third parties, like credit card
  companies, banks or post office, and thus no monthly payments, service fees
  or provisions. A normal bank account is all that is needed.
- Technically simple. No complicated electronic payment gateway transactions.
- Customers are familiar with the basic concept (paying invoices thru a bank).
  Most customers have online banking account, and are thus likely to make
  the deposit quickly after the order.
- Deposits are transfered fairly fast between banks. If customer and invoicer
  use the same bank group, the transaction takes place within a day.
  Transactions between different bank groups takes two to three days.
- Customers don't have to give credit card numbers or any other sensitive
  information to the vendor.

Known limitations of DirDepo:
- At the moment DirDepo is still in alpla state, meaning that it hasn't been
  widely tested in live online shops.
- Only one invoicer per VirtueMart:
  VirtueMart can have several vendors operating under one online shop. At
  the moment it is impossible to configure different invoicer settings for
  different vendors. All vendors need to share the same invoicer settings.
- VirtueMart can have several different instances of any particular payment
  method. It is possible to use DirDepo for several different direct deposit
  payment method instances, but they all need to share the same invoicer
  settings. If this is a problem for your online shop, you need to duplicate
  DirDepo by renaming one file and the subclass in it.
AFAIK, these two limitations above would require changes to the core code of
VirtueMart, or the vendorId and method code would have to duplicated on
configuration form and so on.
- DirDepo doesn't validate its input. This isn't a big problem or a security
  risk, because none of its input is directly from the customer. All
  DirDepo's input comes thru VirtueMart, which validates the user input. But
  the shop administrator needs to think carefully of what he inserts into the
  configuration settings.
This limitation shouldn't be difficult to fix, but it does require some labor.
At the moment the limitations above are not a top priority on my todo list,
because I don't need them personally on my own VirtueMart installation.
- My native language is finnish and my english isn't very good. So the
  DirDepo code and documentation is full of terrible english and bad
  terminology ;) I do how ever feel that it is more beneficial to the
  Joomla/VirtueMart OSS community if I publish DirDepo in english instead of
  finnish. I also feel that it is more beneficial to myself as a learning
  experience and as a peer review and code contributions.
For example corrected english output template file are very welcome.

Benefits of DirDepo:
- Fairly easy to install.
- Doesn't require any modifications to Joomla/VirtueMart core code.
- Support for multiple output languages.
- Output template files easily modified to suit each invoicers needs.
- Ease to extend to fit different banking processes.
- Free of charge. Open source.

DirDepo has been developed using Joomla! 1.0.11 and VirtueMart 1.0.7.
My development server runs PHP 5.1.2 and MySQL 5.0.22.
My production test server runs PHP 4.3.9 and MySQL 4.1.20.

At the moment DirDepo add-on includes a subclass which implements direct
deposit process suitable to finnish banking standards. This implementation is
in english and finnish.
Since DirDepo add-on is programmed in Object Oriented fashion, it should be
fairly simple to write other subclasses, which implement slightly different
banking processes for other banking standards. Other languages should be easy
to implement as well.
Please consider to contribute your subclasses, modifications and translations
to the public in the spirit of free and open source software.

As DirDepo is free (free as in speech, see http://www.fsf.org/) and
open source (see http://www.opensource.org/) software, it is free
(free as in beer) of charge.
If you feel that DirDepo is a great add-on to your VirtueMart online shop, and
that you have benefited financially of it, and if you feel you would like to
make a monetary donation, please donate a suitable amount to VirtueMart
(see http://www.virtuemart.com/).
Title: Re: New payment method add-on: Direct Deposit
Post by: Absinth on November 27, 2006, 14:04:49 pm
This is exactly what I've been looking for.
Thank you for your hard work, I'll test it out and let you know.
Title: Re: New payment method add-on: Direct Deposit
Post by: fiscal on December 16, 2006, 01:28:57 am
I cannot seem to get it to work - the config details do not show for some reason. In the zip file the ps_dirdepo_fi.cfg.php is zero bytes. Is this correct?

Thanks

Tony
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 16, 2006, 08:57:43 am
I cannot seem to get it to work - the config details do not show for some reason. In the zip file the ps_dirdepo_fi.cfg.php is zero bytes. Is this correct?

Your webserver has to have write permissions to the config-file, otherwise it can't save your settings into it.

ps_dirdepo_fi.cfg.php is suppose to be empty before you save your settings for the first time.
Title: Re: New payment method add-on: Direct Deposit
Post by: fiscal on December 16, 2006, 09:54:00 am
Hi,

Thanks,

I found that in the first instance I did not get any of the fields showing, but when I saved it and went back, there they were waiting for input.

Many Thanks

Tony
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 16, 2006, 11:19:29 am
I found that in the first instance I did not get any of the fields showing, but when I saved it and went back, there they were waiting for input.

Yes, that is right. You need to configure the "General"-tab first, then save it, then open it again, configure the "Configuration"-tab (including the "Payment Extra Info"-field) and save again.
Title: Re: New payment method add-on: Direct Deposit
Post by: fiscal on December 18, 2006, 03:20:01 am
Hi,

I have just one more question.

The bank reference number appears like 100 00592 which I thought was the vendoID followed by the OrderID followed by the UserID, but I all I want is the OrderID - but I the MakeBankRef functions does not seem to do this - Where is the reference created and how can I chnage it to be juts the orderID

Thanks

Tony
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 18, 2006, 06:40:36 am
The bank reference number appears like 100 00592 which I thought was the vendoID followed by the OrderID followed by the UserID, but I all I want is the OrderID - but I the MakeBankRef functions does not seem to do this - Where is the reference created and how can I chnage it to be juts the orderID

It is all it the code:

.../administrator/components/com_virtuemart/classes/payment/ps_dirdepo_fi.php
Code: [Select]
<?php
//[...]
/**
     * Makes and sets the bank refrence number, valid in Finland
     *
     * Numeric format is 'VOO OOOOC' where:
     * - V = Vendor Id, length can change, no padding.
     * - O = Order ID, max length 6 character, left padding with zeros. Max value 999999.
     * - C = checksum according to Finnish Banker's Assosiation standard. Length one character.
     * The reference number is split into chunks of five characters.
     * @uses countBankRefCheckSum()
     * @access protected
     */
    
function makeBankRef()
    {
         
$refNum $this->ddInfo['vendor_id'].
                   
str_pad($this->ddInfo['order_id'], 6'0'STR_PAD_LEFT);
         
$this->ddInfo['bank_ref'] =
            
strrev(chunk_split(strrev($refNum.$this->countBankRefCheckSum($refNum)), 5' '));
    }
//[...]
?>

Title: Re: New payment method add-on: Direct Deposit
Post by: fiscal on December 18, 2006, 07:40:32 am
Thanks,

I was working in the wrong file - I was looking at the one in the dirdepo folder<sigh>

All now amended and fixed.

Regards

Tony
Title: Re: New payment method add-on: Direct Deposit
Post by: EyeScream on December 28, 2006, 21:29:45 pm
Thanks for a great add-on, teemu_m!
I´m working on a swedish Joomla installation with VirtueMart 1.0.7 and I´m using your add-on which works really well!

The following issue is unfortunately something I cant solve, though:

The customer gets 2 mail when the order is confirmed.
The first one contains the order confirmation with the order specifications (number of products, product SKU´s, total price, etc.).
The second one contains the billing information (address, bank account number, etc).

I´m trying to customize the invoice-mail (2:nd mail) to get the look and feel of a real invoice and I´m almost done except from one part: I´d really like to include the order specifications (like the one in the first mail) in this mail too? Is that possible?

I know that this part is handled from: com_virtuemart/html/templates/order_emails/email_<language>.html but maybe there is a way to pass on that info to dir_depo?

Again, thanks for a great add-on!

/..EyeScream
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 28, 2006, 21:47:49 pm
I´m trying to customize the invoice-mail (2:nd mail) to get the look and feel of a real invoice and I´m almost done except from one part: I´d really like to include the order specifications (like the one in the first mail) in this mail too?

Take a look at ps_dirdepo::setInfo()
(in .../administrator/components/com_virtuemart/classes/payment/dirdepo/ps_dirdepo.php)
Code: [Select]
<?php
//[...]
        /** Retrieve Order Info **/
        
$sql "SELECT order_total, order_status, cdate
                FROM #__{vm}_orders
                WHERE order_id='"
.$this->ddInfo['order_id']."'";
        
$this->Db->query($sql);
        
$this->Db->next_record();
        
$this->ddInfo['order_total'] = $this->Db->f('order_total');
        
$this->ddInfo['order_status'] = $this->Db->f('order_status');
        
$this->ddInfo['order_date'] = strftime_DATE_FORMAT_LC$this->Db->f('cdate'));
//[...]
?>


You probably need to include more DB-fields to the SQL-query above (and then edit ps_dirdepo::formMessageBody() and the template file accordingly).
Title: Re: New payment method add-on: Direct Deposit
Post by: EyeScream on December 29, 2006, 00:33:11 am
Thanks, teemu_m!
I tried to make this work but this is actually the first time I´m hacking PHP code! :-)
My experience with ASP programming helped though but I realize that the bar is set
a little to high for me this time.

Here´s what I thought would do the trick:
Code: [Select]
<?php
/** Retrieve Order Info **/
        
$sql "SELECT order_total, order_subtotal, order_tax, order_shipping, order_status, cdate
                FROM #__{vm}_orders
                WHERE order_id='"
.$this->ddInfo['order_id']."'";
        
$this->Db->query($sql);
        
$this->Db->next_record();
        
$this->ddInfo['order_total'] = $this->Db->f('order_total');
$this->ddInfo['order_subtotal'] = $this->Db->f('order_subtotal');
$this->ddInfo['order_tax'] = $this->Db->f('order_tax');
$this->ddInfo['order_shipping'] = $this->Db->f('order_shipping');
        
$this->ddInfo['order_status'] = $this->Db->f('order_status');
        
$this->ddInfo['order_date'] = strftime_DATE_FORMAT_LC$this->Db->f('cdate'));
?>


Then I created a new section right after the "Retrieve Order Info":
Code: [Select]
<?php
/** Retrieve Order Specifications **/
        
$sql "SELECT order_item_sku, order_item_name, product_quantity, product_item_price
                FROM #__{vm}_order_item
                WHERE order_id='"
.$this->ddInfo['order_id']."'";
        
$this->Db->query($sql);
        
$this->Db->next_record();
        
$this->ddInfo['order_item_sku'] = $this->Db->f('order_item_sku');
$this->ddInfo['order_item_name'] = $this->Db->f('order_item_name');
$this->ddInfo['product_quantity'] = $this->Db->f('product_quantity');
$this->ddInfo['product_item_price'] = $this->Db->f('product_item_price');
?>


Finally, I added the new DB quieries:
Code: [Select]
<?php
    
function formMessageBody($str)
    {
        
$str str_replace('{dirDepoVendorName}',$this->ddInfo['vendor_store_name'],$str);
        
$str str_replace('{dirDepoVendorEmail}',$this->ddInfo['vendor_email'],$str);
        
$str str_replace('{dirDepoVendorImage}',"<img src=\"cid:vendor_image\" alt=\"vendor_image\" border=\"0\" />"$str);
        
$str str_replace('{dirDepoInvoicerName}',$this->ddInfo['invoicer_name'],$str);
        
$str str_replace('{dirDepoBankName}',$this->ddInfo['invoicer_bank'],$str);
        
$str str_replace('{dirDepoBankAccount}',$this->ddInfo['invoicer_account'],$str);
        
$str str_replace('{dirDepoVatId}',$this->ddInfo['invoicer_vat_id'],$str);
        
$str str_replace('{dirDepoIBAN}',$this->ddInfo['invoicer_iban'],$str);
        
$str str_replace('{dirDepoBIC}',$this->ddInfo['invoicer_bic'],$str);
        
$str str_replace('{dirDepoOrderId}',$this->ddInfo['order_id'],$str);
        
$str str_replace('{dirDepoOrderTotal}',$this->ddInfo['order_total'],$str);
        
$str str_replace('{dirDepoOrderSubTotal}',$this->ddInfo['order_subtotal'],$str);
        
$str str_replace('{dirDepoOrderTax}',$this->ddInfo['order_tax'],$str);
        
$str str_replace('{dirDepoOrderShipping}',$this->ddInfo['order_shipping'],$str);
        
$str str_replace('{dirDepoBankReference}',$this->ddInfo['bank_ref'],$str);
        
$str str_replace('{dirDepoDaysWithin}',$this->ddInfo['invoicer_days_within'],$str);
        
$str str_replace('{dirDepoOrderDate}',$this->ddInfo['order_date'],$str);
        
$str str_replace('{dirDepoPhone}',$this->ddInfo['invoicer_phone'],$str);
        
$str str_replace('{dirDepoEmail}',$this->ddInfo['invoicer_email'],$str);
        
$str str_replace('{dirDepoFax}',$this->ddInfo['invoicer_fax'],$str);
        
$str str_replace('{dirDepoAddress1}',$this->ddInfo['invoicer_address1'],$str);
        
$str str_replace('{dirDepoAddress2}',$this->ddInfo['invoicer_address2'],$str);
        
$str str_replace('{dirDepoZip}',$this->ddInfo['invoicer_zip'],$str);
        
$str str_replace('{dirDepoCity}',$this->ddInfo['invoicer_city'],$str);
        
$str str_replace('{dirDepoState}',$this->ddInfo['invoicer_state'],$str);
        
$str str_replace('{dirDepoCountry}',$this->ddInfo['invoicer_country'],$str);
        
$str str_replace('{dirDepoUserCompany}',$this->ddInfo['user_company'],$str);
        
$str str_replace('{dirDepoUserFirstName}'$this->ddInfo['user_first_name'], $str);
        
$str str_replace('{dirDepoUserMiddleName}'$this->ddInfo['user_middle_name'], $str);
        
$str str_replace('{dirDepoUserLastName}'$this->ddInfo['user_last_name'], $str);
        
$str str_replace('{dirDepoUserAddress1}',$this->ddInfo['user_address_1'],$str);
        
$str str_replace('{dirDepoUserAddress2}',$this->ddInfo['user_address_2'],$str);
        
$str str_replace('{dirDepoUserCity}',$this->ddInfo['user_city'],$str);
        
$str str_replace('{dirDepoUserState}',$this->ddInfo['user_state'],$str);
        
$str str_replace('{dirDepoUserCountry}',$this->ddInfo['user_country'],$str);
        
$str str_replace('{dirDepoUserZip}',$this->ddInfo['user_zip'],$str);
        
$str str_replace('{dirDepoOrderUrl}',$this->ddInfo['order_url'],$str);
        
$str str_replace('{dirDepoOrderItemSku}',$this->ddInfo['order_item_sku'],$str);
        
$str str_replace('{dirDepoOrderItemName}',$this->ddInfo['order_item_name'],$str);
        
$str str_replace('{dirDepoProductQuantity}',$this->ddInfo['product_quantity'],$str);
        
$str str_replace('{dirDepoProductItemPrice}',$this->ddInfo['product_item_price'],$str);
        return 
$str;
    }
?>


Then I realized that there are more involved than just fetching new db posts and sending them to dir_depo.
I guess that I have to use some kind of array to get the order info presented row by row?

The file email_<language>.html in com_virtuemart/html/templates/order_emails/ just uses the variable {phpShopOrderItems} to present the whole order info! Some sort of ready-to-use array?

"Well! That´s kind of a nice approach" I think to myself I´m starting to think that there might be some way to pass the info from "{phpShopOrderItems}" over to dir_depo instead?

I don´t think I have the knowledge to get this working whithout some pointers.

If this should turn out to be real difficult to get going, maybe this could be a feature in the next release?

Be well!

/..EyeScream
# Going to bed after staring at a monitor for 16 hours...#
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 29, 2006, 08:12:58 am
I guess that I have to use some kind of array to get the order info presented row by row?

Yes, that's right.

The file email_<language>.html in com_virtuemart/html/templates/order_emails/ just uses the variable {phpShopOrderItems} to present the whole order info! Some sort of ready-to-use array?

I believe {phpShopOrderItems} is just a placeholder in a template. There is probably a class method (similar to ps_dirdepo::formMessageBody()) that replaces it by a HTML-table containing the actual order items. Try to find the class method and see if you can copy and paste its functionality into ps_dirdepo.

If this should turn out to be real difficult to get going, maybe this could be a feature in the next release?

In theory - yes. But I can't make promises, because I don't need the functionality by myself, and thus this is very deep down in my long todo-list. Sorry.
Title: Re: New payment method add-on: Direct Deposit
Post by: Planet on December 29, 2006, 13:18:16 pm
I think a part of this is just what Ive been looking for, Im trying to adapt a form original created for redirect the payment directly to a bank, Could you help me?

Ive created a generic Paypal but I have to change this code but really dont know why guys.

<form action="https://the bank/" method="post"
name="pay33">
<input type="hidden" name="idConv" value="<%=number%>">
<input type="hidden" name="refTran" value="<%=refTran%>">
<input type="hidden" name="value" value="<%=valor%>">
<input type="hidden" name="urlReturn" value="<%=urlRetorno%>">
<input type="hidden" name="date" value="<%=dtVenc%>">
<input type="hidden" name="tyPayment" value="<%=tpPagamento%>">
<input type="hidden" name="urlInform" value="<%=urlInforma%>">
<input type="hidden" name="name" value="<%=nome%>">
<input type="hidden" name="address" value="<%=endereco%>">
<input type="hidden" name="city" value="<%=cidade%>">
<input type="hidden" name="uf" value="<%=uf%>">
<input type="hidden" name="Zipcode" value="<%=cep%>">
<input type="hidden" name="msgshop" value="<%=msgLoja%>">
</form>

I need also to write some lines to make virtuemart understand these parameters

make a Donation to Virtuemart for a consistent contribution
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 29, 2006, 14:04:13 pm
I think a part of this is just what Ive been looking for, Im trying to adapt a form original created for redirect the payment directly to a bank, Could you help me?

Actually I think "Finnish Instant Payment Notification payment method add-on (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=15173.msg61053#msg61053)" is a lot closer to what you are looking for.
Title: Re: New payment method add-on: Direct Deposit
Post by: Kyliefun on March 02, 2007, 07:00:01 am
Teemu_m  Thanks for your hard work on this add_on.

I have tried the last version I could find (Nov 2006) and have had problems.

Background info:
MqSQL Version:       5.0.33
PHP Version:               5.2.0
Web Server:              Apache/2.0.59
Joomla! Version:      Joomla! 1.0.12 Stable

I have permissions set to 777 on ps_direpo_fi.dfg.php, dirdep directory and ps_dirdepo_fi.php

When I enter ps_dirdepo_fi as the payment class name   and save I go back into the payment method and can't see anything on the admin screen except virtuemart logo.

I can't wait to start using your add-on.

I thank you in advance for your assistance.

Cheers
Kyliefun
Title: Re: New payment method add-on: Direct Deposit
Post by: juan on March 22, 2007, 10:23:17 am
So many thanks for this awesome add.

I'm a newbie in virtuemart and php programming. I would like to use the bank ref number made in the direct deposit add to use in the second confirmation email instead of the standard order number.

How can I change this? I think the work is in the ps_checkout file, but I don't have any idea how to do it. Help is needed!

Please anybody can help me???
Title: Re: New payment method add-on: Direct Deposit
Post by: Alexis on April 05, 2007, 10:38:18 am
Nice Addon!,  I can not make it work. When I do the checking Im always get:

Code: [Select]
Error: ps_dirdepo_fi::Error reading html-mail body file
Any ideas?

Thanks for your support

Title: Re: New payment method add-on: Direct Deposit
Post by: António Farinha on June 20, 2007, 11:08:33 am
I have the same problem

Erro: ps_dirdepo_fi::Error reading text-mail body file

Someone fix this please
Title: Re: New payment method add-on: Direct Deposit
Post by: António Farinha on June 21, 2007, 11:01:49 am
Can someone help me with this problem please?

Thank you
Title: Re: New payment method add-on: Direct Deposit
Post by: Luis on June 28, 2007, 20:28:45 pm
Hi! Ty for the great add-on!!!

But im with a problem, when I click in Confirm i got a blank page, and no a page with my information like i see in the tutorial....

Can u help me???

Best Regards
Sorry bad english
Title: Re: New payment method add-on: Direct Deposit
Post by: Luis on June 28, 2007, 22:50:14 pm
Hi!!

I solve that problem with the hot fix :D

But now i get this msg:

Erro: ps_dirdepo_fi::Error sending text-mail

What is the problem??

Best Reagards
Title: validate Australian bank details?
Post by: morktron on October 04, 2007, 09:22:24 am
Thanks teemu_m for an excellent payment option. It's just what my client wants. It also works perfectly straight out the box.

I was just wondering if anyone has coded it so it can validate Australian bank details ?

if not then I suppose a trip to Joomlancers in inevitable,

thanks again teemu_m! a sterling effort indeed :)
Title: Re: New payment method add-on: Direct Deposit
Post by: António Farinha on November 07, 2007, 11:54:18 am
How can I put the number of the order in the e-mail that is send to my customer?

Thank you
Title: Re: New payment method add-on: Direct Deposit
Post by: mufias on November 11, 2007, 11:38:30 am
i want a simple payment module this direct dposit. and i want the bank details that user have to enter removed. how to do that, because even we disable, but when come to confirmation, the system still request for bank details
Title: Re: New payment method add-on: Direct Deposit
Post by: Techno-Tronics on December 21, 2007, 16:31:38 pm
Can someone help me with this problem please?

Thank you

This is because you need to create the checkoutthankyou and html email and text email into your own language, just copy them and past them in the same directory and then change the name from *.english to your own language!
Title: Re: New payment method add-on: Direct Deposit
Post by: woonydanny on February 17, 2008, 11:00:25 am
if someone has done the hack to make this for australia , can someone please share the australian direct deposit add-on ?

cheers
Title: Re: New payment method add-on: Direct Deposit
Post by: MacAcer on February 21, 2008, 02:14:04 am
This works great!

There are only three things that I'd like to change/add.

First I'd like to change so the total sum to be payed that's shown just has two(2) decimals and that it's seperated by a "," rather then a ".".
Secondly I'd like to know why the ps_dirdepo_fi_checkoutThankYou.language.html message is displayed in the center? I try to get the info align to the left, but so far no luck.
And last I'd like to see a function to add a date to when the payment is due to be payed. You can set the time in amount of days to be displayed in the message, but I'd also like to have a date listed in the Deposit Information where it shows at what date the payment must be received.

So in the Deposit information there should be a row for "Due Date" Could anyone help me with this?

Your help would be much appreciated  :D
Title: Re: New payment method add-on: Direct Deposit
Post by: mata75 on March 10, 2008, 19:30:21 pm
Hi teemu_m  dirdepo can work on VirtueMart_1.1.0?
am intall VirtueMart_1.1.0 with pluging  System - Legacy on
wen i click save to many err show me pop windows VM but is very fast i can get those err..
Configuration tab have wrong Forms

please need help

Joomla! 1.5.0
VM 1.1.0

Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on March 13, 2008, 07:16:14 am
dirdepo can work on VirtueMart_1.1.0?

I've been busy with other projects which don't use Joomla. Because of that I haven't used VM1.1 or tested dirdepo together with VM1.1.

I believe dirdepo needs updating to work together with VM1.1. I can't make any promises, but with some good luck I might be able to take a look at it at june.
Title: Re: New payment method add-on: Direct Deposit
Post by: Joomlanz on April 27, 2008, 09:05:37 am
I can confirm that this works with VM1.1 on J1.5.2.

The only thing I had to do was copy ps_dirdepo_fi.cfg into the payment folder (one level up) for some reason.

 
Title: Re: New payment method add-on: Direct Deposit
Post by: BernardE on May 09, 2008, 15:14:39 pm
Hi Joomlanz

How did you manange to get this working with VM1.1? I have tried installing it, but I get the message "Direct Access to this location is not allowed." when I try t save the payment method. Did you not have this problem?

Regards
Title: Re: New payment method add-on: Direct Deposit
Post by: BernardE on May 09, 2008, 15:30:25 pm
Ok, have figured it out - legacy plugin must be enabled for this to work.
Title: Re: New payment method add-on: Direct Deposit
Post by: kelven905 on May 15, 2008, 04:34:17 am
Thanks Teemu for the great addon.
I have one question. when you reach the last step of purchasing an order, there are some order review and summary. In the "Shipping Address" it shows the adress of the store. How can i modify this addon to show the address of shipping?
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on May 17, 2008, 05:22:12 am
hey teemu_m and all.

brilliant add-on teemu_m!

maybe you can help me get it to work.

i am sure it is a simple fix for you.

i follow the installation instrucs but when i get to the add a new payment method part in the configuration tab, i enter all the info and copy the code into the extra info field. when i click save however, i get this...

Quote
Warning: fopen(/hsphere/local/home/multimad/aparcamac.com/administrator/components/com_virtuemart/classes/payment/dirdepo/ps_dirdepo_fi.cfg.php): failed to open stream: Permission denied in /hsphere/local/home/multimad/aparcamac.com/administrator/components/com_virtuemart/classes/payment/dirdepo/ps_dirdepo.php on line 474

... and it returns me to the payment methods list. i enter the new payment method i addded and nothing is being saved in the config. tab.

anyone know what i am doing wrong?

i am attaching a screen shot.

thanks a ton.
jer...

[attachment cleanup by admin]
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on May 17, 2008, 23:39:10 pm
anyone?

saludos,
jer...
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on May 17, 2008, 23:44:44 pm
figured it out. the ps_dirdepo_fi.cfg.php file was not writable.

saludos,
jer...
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on May 18, 2008, 00:00:50 am
ok.

set it up and did a trial purchase but now i get the following error upon confirming the order.

the page appears where it says the order was submitted but underneath that, it says...

"Error: ps_dirdepo_fi::Error reading html-mail body file"

the direct deposit information does not show up beneath that as the installation instructions say it should.

i have attached a screenshot of the error.

i also checked my e-mail and the normal virtuemart order confirmations came through but the Dirdep e-mail with the instructions to pay into my bank acount did not so something failed along the way.

hope someone can help. i wouyld really like to use this add-on.

saludos,
jer...



[attachment cleanup by admin]
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on May 19, 2008, 17:16:57 pm
hi again.

is the author of this add-on still around or is the add-on a dead project?
is there any way to get help with this?
nobody seems to respond  :'(

saludos,
jer...
Title: Re: New payment method add-on: Direct Deposit
Post by: BernardE on June 03, 2008, 14:39:51 pm
Thanks Teemu for the great addon.
I have one question. when you reach the last step of purchasing an order, there are some order review and summary. In the "Shipping Address" it shows the adress of the store. How can i modify this addon to show the address of shipping?

I'm having the same problem. I'll check if I can resolve this - has anybody been able to fix this?
Title: Re: New payment method add-on: Direct Deposit
Post by: aparcaMac on June 03, 2008, 15:08:20 pm
I think this project has been abandoned :(
Title: Re: New payment method add-on: Direct Deposit
Post by: tantan on January 05, 2009, 12:52:09 pm
Hi guys, This link is dead

"download the add-on (dirdepo-0.1.1.zip) here: http://www.tyovaline.fi/oss/joomla/virtuemart/dirdepo/ " 

anyone has the code or a new link.

Thank you!

 

Title: Re: New payment method add-on: Direct Deposit
Post by: vm_user on January 25, 2009, 17:57:02 pm
Hi guys, This link is dead
"download the add-on (dirdepo-0.1.1.zip) here: http://www.tyovaline.fi/oss/joomla/virtuemart/dirdepo/ " 
anyone has the code or a new link.
Thank you!

I'm also looking for it. Could someone host it or email it to me please.

Thanks.
Title: Re: New payment method add-on: Direct Deposit
Post by: Newb2vm on February 19, 2009, 10:14:57 am
you can download it from here:

Code: [Select]
http://forum.joomla-bg.com/index.php?topic=13705.0
if anyone could perhaps update it for us we would appreciate it.
Title: Re: New payment method add-on: Direct Deposit
Post by: vmcduarte on February 19, 2009, 14:03:38 pm
The file does not include install instructions. That file is missing.

Can anyone explain how to install this add on or place here a link to the original zip file with the install instructions?
Title: Re: New payment method add-on: Direct Deposit
Post by: Joomlanz on February 20, 2009, 00:43:35 am
here it is

[attachment deleted by admin]
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on February 26, 2009, 18:20:43 pm
An updated version of Direct Deposit can be found in here: http://www.aivomatic.com/index.php?option=com_docman&task=cat_view&gid=27&Itemid=42

It works fine with Joomlan 1.0 and 1.5 and VirtueMart 1.0 and 1.1.

Installation documentation is in finnish, but since the installation is really simple, it shouldn't matter. Just extract the package contents to your Joomla installation according to the directory structure of the package. UI of the plugin itself is in english, so configuration should be easy too.
Title: Re: New payment method add-on: Direct Deposit
Post by: vmcduarte on February 27, 2009, 01:11:03 am
Hello!

I had some problems to UnZip the J1.5 downloaded file.

Then I tried to extract the file with 7-Zip and it extracted a new file with no extension.

This new file, I added a .zip extension and tried to UnZip it: It worked just fine.
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on February 27, 2009, 07:54:54 am
I had some problems to UnZip the J1.5 downloaded file.

Works fine for me. I've not heard anyone else to have such problems.
Title: Re: New payment method add-on: Direct Deposit
Post by: aarondwyer on May 11, 2009, 07:53:19 am
@teemu_m Thank you heaps for J1.5 version of this addon.

With just a few minor cosmetic tweaks to make it appropriate for Australian Banking terms, this is a great addon.

Aaron
Title: Re: New payment method add-on: Direct Deposit
Post by: lessleep on June 04, 2009, 16:37:11 pm
Hi, has anyone tried to install it on BM 1.1.3? hopefully its working fine.
Title: Re: New payment method add-on: Direct Deposit
Post by: vm_user on June 09, 2009, 11:14:31 am
Hi, has anyone tried to install it on BM 1.1.3? hopefully its working fine.

I assume you mean VM 1.1.3? If so, then I have only installed it on VM 1.0.13 - it worked great. The only thing you have to change is the language (the admin page is in Italian from memory!)
Title: Re: _DATE_FORMAT_LC - not updating
Post by: deons1 on June 15, 2009, 23:29:11 pm
I have download ver: dirdepo-0.1.1.zip and tried to download DirDepoJ15-02.0.zip but this file wont download.

I receive the following error once the direct depost process is completed, in the online display the: Deposit Information - Order Date displays: _DATE_FORMAT_LC instead of the date, the same for the confirmation e-mail.

Any help would be appreciated.
Title: Re: Download dirdepoj15-0.2.0.zip
Post by: deons1 on June 16, 2009, 11:31:34 am
Where else can i download: dirdepoj15-0.2.0.zip as it does not download from the adevertised link?
Title: Re: New payment method add-on: Direct Deposit
Post by: Everseeker on July 02, 2009, 19:57:22 pm
I think there are a few issues that need resolution in order to the module to work correctly.

Using vm1.1 and Joomla1.5 legacy mode. the checkout message returns

Code: [Select]
ps_dirdepo_fi::Error reading text-mail body file
I did all that was mentioned to rename the files:

ps_dirdepo_fi_checkoutThankYou.english.html
to
ps_dirdepo_fi_checkoutThankYou.portuguese.html

ps_dirdepo_fi_email.english.html
to
ps_dirdepo_fi_email.portuguese.html

ps_dirdepo_fi_email.english.txt
to
ps_dirdepo_fi_email.portuguese.txt

Any help from someone that has bypassed this situation would be greatly apreciated.

Thank you teemu_m for this module.
Title: Re: New payment method add-on: Direct Deposit
Post by: Everseeker on July 03, 2009, 20:01:21 pm
I got it.

In the classes/payments/dirdepo folder

i removed all the files that were not in my joomla main laguage.

in my case the dirdepo looks like that:

ps_dirdepo_fi_checkoutThankYou.portuguese.html
ps_dirdepo_fi_email.portuguese.html
ps_dirdepo_fi_email.portuguese.txt
ps_dirdepo.php

I hope it solves those ps_dirdepo_fi::Error reading text-mail body file

Thanks again teemu_m for this module.
Title: Re: New payment method add-on: Direct Deposit
Post by: mybjo2010 on July 05, 2009, 03:32:11 am
Hi please could somebody help me????

I have joomla 1.5.9 and VM 1.1.3

I have download both versions of direct deposit, but i cannot seem to install it properly. when i copy the according to the directory structure of the package, in virtuemart direct deposit payment does not show, only the usual ones.

It is so irritating i have tried so many times....
do you copy files to pulic html or www directory?
Im new to this stuff and they both seem to be the same....
Title: Re: New payment method add-on: Direct Deposit
Post by: Joee on July 07, 2009, 00:05:10 am
Hi Great add on for Virtuemart :)

Just having a slight prob...

I have managed to install everything but it doesnt seem to want to show the bank deposit details for the customer at the end.

I get this errors:

Warning: Unknown(/usr/www/users/USERNAME/administrator/components/com_virtuemart/classes//payment/dirdepo/ps_dirdepo_fi.cfg.php): failed to open stream: No such file or directory in /usr/www/users/USERNAME/components/com_virtuemart/themes/templates/pages/checkout.thankyou.tpl.php(61) : eval()'d code on line 32

Fatal error: (null)() [function.require]: Failed opening required '/usr/www/users/vehjjc/administrator/components/com_virtuemart/classes//payment/dirdepo/ps_dirdepo_fi.cfg.php' (include_path='.:/usr/share/php') in /usr/www/users/vehjjc/components/com_virtuemart/themes/templates/pages/checkout.thankyou.tpl.php(61) : eval()'d code on line 32

Can anyone hwlp out?

I would appreciate it :)
Title: Re: New payment method add-on: Direct Deposit
Post by: anthony on July 31, 2009, 01:45:19 am
I think I have it working.

I downloaded the revised version here:
http://www.aivomatic.com/index.php?option=com_docman&task=cat_view&gid=27&Itemid=42

Heres what I did:
Extracted file, added a ".zip" extension (I think TeeMu_m might use a Mac  ::) ) and extracted that as well.
Uploaded the files.
Copied the xtra info into the xtra info window when in admin config.
Got a bunch of errors on 1st test
Deleted ps_dirdepo.php from the dirdepo folder
Changed line 27 of ps_dirdepo_fi.php from
include_once(CLASSPATH .'payment/dirdepo/ps_dirdepo.php');
to
include_once(CLASSPATH .'payment/ps_dirdepo.php');
I also deleted the other files that I didnt think should be there as a previous poster suggested.

I may have forgotten some things... but anyway, hope that helps some people get it working properly.

& thanks heaps TeeMu_m for making this available. Hope one day you will sell the mac and join the big boys in PC land ;D
Title: Re: New payment method add-on: Direct Deposit
Post by: Newb2vm on August 12, 2009, 14:37:41 pm
so we have a better version or we have another 80% complete version ? everything working ok with no hickup's anthony?
Title: Re: New payment method add-on: Direct Deposit
Post by: anthony on August 12, 2009, 18:53:45 pm
Yes, it seems to work fine for me with the above edits (on VM 113 & J 1.5.13) One thing thats different is that I thought I had to delete the files with the _fi in the name .. from memory, something like that ... but that was wrong. They need to be there. From the file naming, it looks like a language thing, but it must be more than that.

I had no time to really study the files, and Ive just hacked it on the fly without knowing anything much - things like changing the fax field to become the BSB (Australian - Bank State Branch number).
Another field I changed to ABN - in the admin area as well as the email thats sent.
Hard coded the name of the Bank.
Modified the warning about using the ref number to be more casual - the ref no. is only really important in high volume stores.

I have to modify the layout later, so will try to add anything further if it comes to mind.
It looks like a hack that might be easy to improve & make even more easy & useful. I'd like to post my files like a good community member... but just now, probably forever, im chasing my tail & too many customers & debt collectors are waiting.
Title: Re: New payment method add-on: Direct Deposit
Post by: anthony on August 13, 2009, 05:56:04 am
The generated email needs some work:

in ps_dirdepo_fi_email.english.html
the tag {dirDepoOrderUrl} doesnt seem to write the right URL (I am using SH404SEF in case that matters), so its good to remove:

Code: [Select]
<p class="Stil2">
<a href="{dirDepoOrderUrl}">You may view the order details by following this link.</a>
</p>

It does generate a URL, but my Thunderbird completely removes the link. Outlook shows the text as linked, but blocks it.

Heres the source code of what is generated in the email (of my test):

Code: [Select]
<p class="Stil2">
<a href="/View-Detail-of-order-id32.html">You may view the order details by following this link.</a>
</p>

So you can see the URL will not work without manually adding the full domain before the rest of the URL. (Or I think you can add "base = http://domainname.com" or something like that, to the email head ??)

The URL is otherwise correct.



A small usability issue:

The email uses a table to display the data. In a wide screen, it may be a visual strain to match the field label with field text.

I added a width to the first column of cells to stop it getting too wide:

 
Code: [Select]
<tr class="Stil1">
    <td width="250">Invoicer's Name:</td>
Title: Re: New payment method add-on: Direct Deposit
Post by: Newb2vm on August 27, 2009, 11:34:50 am
could some-one please make a solid version of this mod with descent instructions etc, I'm even willing to pay for it to be done properly lol.

it is tedious, beta testing and waiting for this thing to be released.

Why arn't VM staff interested in making some kind of universal payment option like this with custom fields for various banks etc and release it in the fourms , soooo many ppl are interested in this useful modle its not funny anymore
Title: Re: New payment method add-on: Direct Deposit
Post by: MacAcer on November 07, 2009, 14:46:22 pm
Would have been lovely if someone who does have it working with VM 1.1.x and joomla 1.5.x, could be so kind and zip it and attach it in this topic. Perhaps with some clear English instructions if something needs to be adjusted for the individual host to work properly.

The issue I experience with the add-on is that I can not fill in the payment details and successfully. If I do replace what's in those fileds (which I think should be blank), the add-on gets messed up and cease to work. Only way for me to setup the payment details is by editing the "ps_dirdepo_fi.cfg.php" file.

Unfortunately I still get the issue at the end of the checkout that no payment info is displayed, nor is a mail sent. The error I get is: Error: "ps_dirdepo_fi::Error sending html-mail"

So, to the people that might have gotten this working, I ask of you to plese upload a modified working add-on and/or a step by step instruction as of how to get it running.

Your help is much appreciated!

[attachment cleanup by admin]
Title: Re: New payment method add-on: Direct Deposit
Post by: teemu_m on December 01, 2009, 10:24:55 am
DirDepo (Direct Deposit) payment module has been updated. The new version (0.3.0) improves english documentation and makes the installation easier.

DirDepo is free and open source software. You can download the DirDepo-0.3.0.zip (http://www.aivomatic.com/index.php?option=com_docman&task=cat_view&gid=27&Itemid=42) distribution package (md5: 0dfb10c3562f8e4e6eee7ded3deb0b62) for free of charge from Aivomatic Ltd. You can also buy installation and customization services from Aivomatic Ltd (http://www.aivomatic.com/yhteystiedot).

See README, CHANGELOG, INSTALL and LICENSE for more details.

Code: [Select]
CHANGELOG

- - - - - 0.3.0 - - - - -
2009-12-01 Teemu Mäntynen
* Support for Joomla! 1.0, VirtueMart 1.0 and PHP4 dropped.
* Requirements: Joomla! 1.5, VirtueMart 1.1, PHP5. Distributed in UTF-8 only.
* If your earlier DirDepo 0.2.0 works fine then there is no need to upgrade.
  DirDepo 0.3.0 doesn't provide any new functionality, but it improves english
  documentation and makes the installation easier:
  * Moved dirdepo-directory from .../classes/payment/dirdepo to
    .../classes/aivomatic/dirdepo. This way only the ps_dirdepo_fi is
    listed in payment method selection drop down menu during payment method
    creation.
  * Only one line needs to be copied and pasted to Payment Extra Info form field
    in payment method settings. No need to copy/paste a whole file contents any
    more.
  * New english installation instructions.


Code: [Select]
DirDepo installation instruction

- Extract the contents of DirDepo-n.n.n.zip (where n.n.n is the version number)
  to a temporary folder on your local computer.
- The ZIP-archive contains the following folder structure and files:
.
`-- administrator
    `-- components
        `-- com_virtuemart
            `-- classes
                |-- aivomatic
                |   `-- dirdepo
                |       |-- CHANGELOG
                |       |-- INSTALL
                |       |-- LICENSE
                |       |-- README
                |       |-- doc
                |       |   |-- [...]
                |       |   `-- index.html
                |       |-- ps_dirdepo.php
                |       |-- ps_dirdepo_fi_checkoutThankYou.english.html
                |       |-- ps_dirdepo_fi_checkoutThankYou.finnish.html
                |       |-- ps_dirdepo_fi_email.english.html
                |       |-- ps_dirdepo_fi_email.english.txt
                |       |-- ps_dirdepo_fi_email.finnish.html
                |       |-- ps_dirdepo_fi_email.finnish.txt
                |       `-- ps_dirdepo_fi_formExtraInfo.php
                `-- payment
                    |-- ps_dirdepo_fi.cfg.php
                    `-- ps_dirdepo_fi.php

- Copy the folders and files to your Joomla/VirtueMart server
 (the folder structure of DirDepo matches the existing Joomla/VirtueMart folder
  structure).
- The .../administrator/components/com_virtuemart/classes/aivomatic/dirdepo/doc
  folder, which contains the developer documentation, doesn't have to be copied
  to the server.
- Log into Joomla administration backend.
- Select VirtueMart Admin Panel / Store / Add Payment Method
- Configure the Payment Method Form fields:
    - Active?:              Not checked
    - Payment Method Name:  "Direct deposit"
    - Code:                 "DIRDEPO"
    - Payment class name:   ps_dirdepo_fi
    - Payment method type:  HTML-Form based
- Click Save.
- Reopen the newly saved "Direct Deposit" payment method by clicking its name on
  Payment Method List.
- Check / uncheck the 'Active?' checkbox (again).
- Open Configuration tab.
- Configure Direct Deposit settings form fields
  (ie. Invoicer's Name, Bank etc.).
- Copy and paste the
  "<?php require_once CLASSPATH.'aivomatic/dirdepo/ps_dirdepo_fi_formExtraInfo.php'?>"
  string to Payment Extra Info form field like instructed in the form.
- Click Save.
- Set the new "Direct Deposit" payment method active if not already set.
- Test by making a new order as a customer.
Title: Re: New payment method add-on: Direct Deposit
Post by: anthony on December 16, 2009, 02:29:06 am
Some notes that might help new people to get it to work.

These notes are not complete, but I'll add to them as I install & configure the new files provided above.

When I try to extract the file, winxp says theres nothing to extract. 7zip does a better job of it. The extracted file does not have an extension, so windows doesn't know what to open it with.

The file extracted is called "[Content]"
Rename it so that it is "[Content].zip" - windows will extract that no probs, and you end up with a folder called "[Content]" which is where the goodness lies.

Upload the files to the corresponding location in your site.

I get an error in the config
Error: Unable to write into the configuration file /home/xxx/xxx/administrator/components/com_virtuemart/classes/payment/ps_dirdepo_fi.cfg.php!
I had to give the file a 777 permission due to my Apache settings.

After filling in some details in the config:
"Add Payment Method"
Payment class name: ps_dirdepo_fi
Payment method type: HTML-Form based (e.g. PayPal)
Copied & pasted the "string"
Code: [Select]
<?php require_once CLASSPATH.'aivomatic/dirdepo/ps_dirdepo_fi_formExtraInfo.php'?>the textarea field below.

Quick test & it seemed to work as expected ...
Though Im going to edit the presentation & language soon.

More later if I discover things needing explanation.
Title: Re: New payment method add-on: Direct Deposit
Post by: chrisdevelop on December 29, 2009, 08:07:14 am
This add on is fantastic, I have not yet tested with a test to the bank yet, however in the UK when people make payments online, they dont usually have a facility on their online banking for IBAN or SWIFT code, what they usually have is the account name, account number and sort code of the invoicer.  How can i get the sort code added both to the admin backend and the email to the customer?

If only all add ons were this helpful, then all of us vendors would be selling more I am sure, thanks for a fantastic add on, hope you can help with the sort code prob.  UK sort codes are usually eg 20-97-48
Title: Re: New payment method add-on: Direct Deposit
Post by: Newb2vm on January 14, 2010, 08:53:49 am
wow an update amazing , may not need to emigrate so soon .. any problems ?
Title: Re: New payment method add-on: Direct Deposit
Post by: flipward on May 07, 2010, 06:38:59 am
Hi! i've been using this new module and it's great! one thing though, i've decided to give my customers an option to select which bank they want to deposit. so i have 2 bank accounts, can i do it in this module? i tried adding another direct deposit account but it copies my other account's details.

e.g. my first bank account is 12345678, i want to add another account so i create another/new payment method, i put 000000000 this account there, when i check my first account, it also changes to 000000000.

i hope you guys could help me, or answer me if it is even possible to add another direct deposit payment method. thanks
Title: Re: New payment method add-on: Direct Deposit
Post by: Newb2vm on July 11, 2011, 05:31:10 am
works good ;)

recommended.

here's the install options as per INSTALL file.

Quote
DirDepo installation instruction

- Extract the contents of DirDepo-n.n.n.zip (where n.n.n is the version number)
  to a temporary folder on your local computer.
- The ZIP-archive contains the following folder structure and files:
.
`-- administrator
    `-- components
        `-- com_virtuemart
            `-- classes
                |-- aivomatic
                |   `-- dirdepo
                |       |-- CHANGELOG
                |       |-- INSTALL
                |       |-- LICENSE
                |       |-- README
                |       |-- doc
                |       |   |-- [...]
                |       |   `-- index.html
                |       |-- ps_dirdepo.php
                |       |-- ps_dirdepo_fi_checkoutThankYou.english.html
                |       |-- ps_dirdepo_fi_checkoutThankYou.finnish.html
                |       |-- ps_dirdepo_fi_email.english.html
                |       |-- ps_dirdepo_fi_email.english.txt
                |       |-- ps_dirdepo_fi_email.finnish.html
                |       |-- ps_dirdepo_fi_email.finnish.txt
                |       `-- ps_dirdepo_fi_formExtraInfo.php
                `-- payment
                    |-- ps_dirdepo_fi.cfg.php
                    `-- ps_dirdepo_fi.php

- Copy the folders and files to your Joomla/VirtueMart server
 (the folder structure of DirDepo matches the existing Joomla/VirtueMart folder
  structure).
- The .../administrator/components/com_virtuemart/classes/aivomatic/dirdepo/doc
  folder, which contains the developer documentation, doesn't have to be copied
  to the server.
- Log into Joomla administration backend.
- Select VirtueMart Admin Panel / Store / Add Payment Method
- Configure the Payment Method Form fields:
    - Active?:              Not checked
    - Payment Method Name:  "Direct deposit"
    - Code:                 "DIRDEPO"
    - Payment class name:   ps_dirdepo_fi
    - Payment method type:  HTML-Form based
- Click Save.
- Reopen the newly saved "Direct Deposit" payment method by clicking its name on
  Payment Method List.
- Check / uncheck the 'Active?' checkbox (again).
- Open Configuration tab.
- Configure Direct Deposit settings form fields
  (ie. Invoicer's Name, Bank etc.).
- Copy and paste the
  "<?php require_once CLASSPATH.'aivomatic/dirdepo/ps_dirdepo_fi_formExtraInfo.php'; ?>"
  string to Payment Extra Info form field like instructed in the form.
- Click Save.
- Set the new "Direct Deposit" payment method active if not already set.
- Test by making a new order as a customer.

(http://s1.postimage.org/69uaaqt7w/direct_credit.jpg)

welldone.

Thank You.
Title: Re: New payment method add-on: Direct Deposit
Post by: Helle on August 25, 2011, 21:46:31 pm
Hello,

can anyone help me? Using Vers0.3.1 with J1.5.22 and am 1.1.8 i´ve got an error:
Fehler: ps_dirdepo_fi::Error reading html-mail body file i´ve already changed the filename fron ".english" into ".german."

Furthermore the User cannot fill his bank data?

Please test http://www.angelkarte.info/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=40&category_id=13&option=com_virtuemart&Itemid=64
and help:-)
Thanks
Tobias
Title: Re: New payment method add-on: Direct Deposit
Post by: kameni on January 26, 2012, 20:18:37 pm
If your default language is other then English, you need to rename /administrator/components/com_virtuemart/classes/aivomatic/dirdepo/ps_dirdepo_fi_checkoutThankYou.english.html to your main language (ps_dirdepo_fi_checkoutThankYou.YOURLANGUAGE.html

Also rename other language files.
Title: Re: New payment method add-on: Direct Deposit
Post by: MacAcer on April 08, 2013, 10:16:58 am
Hello,

I love this payment solution. I am considering to migrate to VM 2.0.x and I was wondering if this payment solution is compatible with it?
Perhaps there is already a built-in payment solution like that in VM 2.0.x? I haven't checked all the features it yet.
If there isn't, then I really hope that there is a Direct Deposit payment solution available for VM 2.