PHP code example of ruhulfbr / cashapp-receipt-verifier
1. Go to this page and download the library: Download ruhulfbr/cashapp-receipt-verifier library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ruhulfbr / cashapp-receipt-verifier example snippets
uhulfbr\CashApp\WebReceiptVerifier;
$receipt = "your payment web receipt URL"; // (String) Required, CashApp Web receipt;
$username = "your_cash_app_username"; // (String) Required, CashApp Account Username;
$reference = "your_payment_reference"; // (String) Required, CashApp Payment Reference;
// With Named argument
// $cashApp = new WebReceiptVerifier(_USERNAME: $username, _REFERENCE: $reference);
// Together
$cashApp = new WebReceiptVerifier($username, $reference);
print_r($cashApp->verify($receipt));