Source for file example_credit.php
Documentation is available at example_credit.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 credit file with one transaction. |
// +----------------------------------------------------------------------+
// | Author: Hermann Stainer <hs@web-gear.com> |
// +----------------------------------------------------------------------+
// $Id: example_credit.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 credits.
* This means that in an exchange the sender is the person who pays money
* Set file sender. This is also the default sender for transactions.
$dta_file->setAccountFileSender (array (
"name" => "Michael Mustermann",
"account_number" => 654321
"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.
|