Пример #1
0
 * @package   Payment_DTA
 * @author    Martin Schütte <*****@*****.**>
 * @copyright 2010 Martin Schütte
 * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
 * @version   SVN: $Id$
 * @link      http://pear.php.net/package/Payment_DTA
 */
require_once "Payment/DTAZV.php";
/**
* Initialize new DTAZV file.
* In this example the file contains credits.
* This means that in an exchange the sender is the person who pays money
* to the receiver.
*/
$dtazv_file = new DTAZV();
/**
* Set file sender. This is also the default sender for transactions.
*/
$dtazv_file->setAccountFileSender(array("name" => "Michael Mustermann", "bank_code" => 11112222, "account_number" => 654321));
/**
* Add transaction.
*/
$dtazv_file->addExchange(array("name" => "Franz Mueller", "bank_code" => "COBADEFF374", "account_number" => "DE89370400440532013000"), 12.01, array("Credit Nr. 01234", "Information"));
/**
* Output DTAZV-File.
*/
echo $dtazv_file->getFileContent();
/**
* Write DTAZV-File.
*/
// $dta_file->saveFile("DTAZV0");
Пример #2
0
 public function testInstantiateLetterInAccount()
 {
     $dtaus = new DTAZV();
     $DTAZV_account = array('name' => "Senders Name", 'additional_name' => '', 'bank_code' => "16050000", 'account_number' => "3503007A67");
     $this->assertFalse($dtaus->setAccountFileSender($DTAZV_account));
 }