Skip to content

The `cashapp-receipt-verifier` package is designed to facilitate the verification of web receipts generated by the CashApp platform.

Notifications You must be signed in to change notification settings

ruhulfbr/cashapp-receipt-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CashApp web-receipt Verifier

The cashapp-receipt-verifier package is designed to facilitate the verification of web receipts generated by the CashApp platform. This package provides functionality to validate the integrity of CashApp receipts by checking various attributes such as the username, payment reference, and receipt URL.

Installation

To install the package, you can use Composer:

composer require ruhulfbr/cashapp-receipt-verifier

Usage

<?php

require_once 'vendor/autoload.php';

use Ruhulfbr\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));

Response

//Success
stdClass Object
(
    [type] => "success"
    [message] => "Web Receipt Verified Successfully."
    [data] => " stdClass Object";
)

//Error
stdClass Object
(
    [type] => "error"
    [message] => "CashApp payment `reference` is required"
)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

This documentation provides clear instructions on the installation and usage of the package. It includes examples and explanations of each parameter, making it easy for users to understand how to use the package in their projects.

About

The `cashapp-receipt-verifier` package is designed to facilitate the verification of web receipts generated by the CashApp platform.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages