[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 require './_shared.php'; 3 ?> 4 <h1>WePay Demo App: Account List</h1> 5 <a href="index.php">Back</a> 6 <br /> 7 8 <?php 9 try { 10 $wepay = new WePay($_SESSION['wepay_access_token']); 11 $accounts = $wepay->request('account/find'); 12 foreach ($accounts as $account) { 13 echo "<a href=\"$account->account_uri\">$account->name</a>: $account->description <br />"; 14 } 15 } 16 catch (WePayException $e) { 17 // Something went wrong - normally you would log 18 // this and give your user a more informative message 19 echo $e->getMessage(); 20 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |