<?
require_once("Paypal.php");
$p = new Paypal();
$p->SetEmail("email@test.com");
$p->SetPassword("mypass");
?>
|
<? $balance = $p->GetBalance(); echo "<table style='border: 1px solid black; width: 300px;'> <tr> <td><font style="font-family: verdana, sans serif; font-size: 12px;'> <centeR> Current Donation Level:<BR> <b style='background-color: yellow;'>$bal</b> </center> </td></tr></table> "; ?> |
<?
$balances = $p->GetMultipleBalance();
for ($k = 0; $k < sizeof($balances); $k++) {
$balance = $balances[$k];
$amount = $balance[0];
$currency = $balance[1];
echo "My balance: $amount in currency: $currency<BR>";
}
?>
|
<?
$transactions = $p->GetTransactions();
echo "Recent Donations:<BR>";
for ($k = 0; $k < sizeof($transactions); $k++) {
$t = $transactions[$k];
echo "<li>" . $t["nameemail"] . " donated " .
$t["amount"] . "on " . $t["date"] . "<BR>";
}
?>
|