Source for file example_debit.php
Documentation is available at example_debit.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 2003-2005 Hermann Stainer, Web-Gear |
// | http://www.web-gear.com/ |
// | All rights reserved. |
// +----------------------------------------------------------------------+
// | Payment_DTA example: |
// | Example of creating a DTA debit file with one transaction. |
// +----------------------------------------------------------------------+
// | Author: Hermann Stainer <hs@web-gear.com> |
// +----------------------------------------------------------------------+
// $Id: example_debit.php,v 1.1 2008/11/06 09:15:48 kguest Exp $
require_once("Payment/DTA.php");
* Initialize new DTA file.
* In this example the file contains debits.
* This means that in an exchange the sender is the person, who gets the money
* and the receiver is the person who has to pay.
* You always have to differentiate between the DTA FILE SENDER and the MONEY SENDER.
* Set file sender. This is also the default sender for transactions.
$dta_file->setAccountFileSender (array (
"name" => "Michael Mustermann",
"account_number" => 87654321
"name" => "Franz Mueller", // Name of account owner.
"bank_code" => 33334444 , // Bank code.
"account_number" => 13579000 , // Account number.
12.01 , // Amount of money.
array ( // Description of the transaction ("Verwendungszweck").
echo $dta_file->getFileContent ();
// $dta_file->saveFile("DTAUS0");
Documentation generated on Mon, 11 Mar 2019 15:28:52 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|