Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96303765
accountlist.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 24, 21:09
Size
513 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 21:09 (2 d)
Engine
blob
Format
Raw Data
Handle
23153924
Attached To
rPH Phabricator
accountlist.php
View Options
<?php
require
'./_shared.php'
;
?>
<h1>WePay Demo App: Account List</h1>
<a href="index.php">Back</a>
<br />
<?php
try
{
$wepay
=
new
WePay
(
$_SESSION
[
'wepay_access_token'
]);
$accounts
=
$wepay
->
request
(
'account/find'
);
foreach
(
$accounts
as
$account
)
{
echo
"<a href=
\"
$account->account_uri
\"
>$account->name</a>: $account->description <br />"
;
}
}
catch
(
WePayException
$e
)
{
// Something went wrong - normally you would log
// this and give your user a more informative message
echo
$e
->
getMessage
();
}
Event Timeline
Log In to Comment