-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.php
52 lines (34 loc) · 788 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require 'inc.php';
/*
* initiate Banking account for online Banking
*/
$account = new Account('DEXXXXXXXXXXX');
$account->setLogin('XXXXXXXXXXX');
$account->setPin('XXXXX');
$account->setOwner('Peter Lustig');
echo $account->getBalance();
$transactions = $account->listTransactions('2015-09-01');
print_r($transactions);
/*
* initiate Account2 to transfer money
*/
$account2 = new Account('DEXXXXXXXXXXXX');
$account2->setOwner('Benjamin Bluemchen');
/*
* transfer money
*/
$transfer = new Transfer($account, $account2, 2);
$transfer->setSubject('Hallo Ben');
$transfer->exec();
/*
* Dauerauftrag einreichen
*/
$trans = new StandingOrder($account, $account2, 1);
$trans->setSubject('Dauertest Ben');
$trans->exec();
/*
* lastschrift
*
*/
// comming soon