Author Topic: New payment method add-on: Direct Deposit  (Read 100541 times)

anthony

  • Jr. Member
  • **
  • Posts: 65
Re: New payment method add-on: Direct Deposit
« Reply #60 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.
The greater our mastery over language, the sharper the tools with which to dissect reality.

anthony

  • Jr. Member
  • **
  • Posts: 65
Re: New payment method add-on: Direct Deposit
« Reply #61 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>
The greater our mastery over language, the sharper the tools with which to dissect reality.

Newb2vm

  • Beginner
  • *
  • Posts: 34
Re: New payment method add-on: Direct Deposit
« Reply #62 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
The greatest learning curve , is to be willing to learn..
~myself.

MacAcer

  • Beginner
  • *
  • Posts: 34
Re: New payment method add-on: Direct Deposit
« Reply #63 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]

teemu_m

  • Beginner
  • *
  • Posts: 31
    • Photogallery
Re: New payment method add-on: Direct Deposit
« Reply #64 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 distribution package (md5: 0dfb10c3562f8e4e6eee7ded3deb0b62) for free of charge from Aivomatic Ltd. You can also buy installation and customization services from Aivomatic Ltd.

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.

anthony

  • Jr. Member
  • **
  • Posts: 65
Re: New payment method add-on: Direct Deposit
« Reply #65 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.
The greater our mastery over language, the sharper the tools with which to dissect reality.

chrisdevelop

  • Beginner
  • *
  • Posts: 47
    • Mobile Phones - Mobile Phone Insurance
Re: New payment method add-on: Direct Deposit
« Reply #66 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
free-mobiles2u.co.uk

Newb2vm

  • Beginner
  • *
  • Posts: 34
Re: New payment method add-on: Direct Deposit
« Reply #67 on: January 14, 2010, 08:53:49 am »
wow an update amazing , may not need to emigrate so soon .. any problems ?
The greatest learning curve , is to be willing to learn..
~myself.

flipward

  • Beginner
  • *
  • Posts: 1
Re: New payment method add-on: Direct Deposit
« Reply #68 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

Newb2vm

  • Beginner
  • *
  • Posts: 34
Re: New payment method add-on: Direct Deposit
« Reply #69 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.



welldone.

Thank You.
The greatest learning curve , is to be willing to learn..
~myself.

Helle

  • Beginner
  • *
  • Posts: 5
Re: New payment method add-on: Direct Deposit
« Reply #70 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

kameni

  • Beginner
  • *
  • Posts: 3
Re: New payment method add-on: Direct Deposit
« Reply #71 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.

MacAcer

  • Beginner
  • *
  • Posts: 34
Re: New payment method add-on: Direct Deposit
« Reply #72 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.