Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/sms.picotech.app/public_html/vendor/paypal/rest-api-sdk-php/sample/doc/vault/ drwxr-xr-x |
Viewing file: Select action/file-type: vault/GetBankAccount.php <?php The following code takes you through the process of retrieving a saved Bank Account /** @var \PayPal\Api\BankAccount $bankAccount */
$bankAccount = require 'CreateBankAccount.php';
/// ### Retrieve Bank Account (See bootstrap.php for more on try {
$bankAccount = \PayPal\Api\BankAccount::get($bankAccount->getId(), $apiContext);
} catch (Exception $ex) { NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printError("Get Bank Account", "Bank Account", $bankAccount->getId(), null, $ex);
exit(1);
} NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printResult("Get Bank Account", "Bank Account", $bankAccount->getId(), null, $bankAccount);
return $bankAccount; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]-- |
Get Bank Account Sample
The Bank Account resource allows you to retrieve previously saved Bank Accounts. API called: '/v1/vault/bank-accounts'