Download the PHP package usdpay/laravel without Composer

On this page you can find all versions of the php package usdpay/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

USDPAY for Laravel

Packagist Version PHP Version Laravel Tests

Accept USDT payments in Laravel applications.

Customers pay directly to your wallet. USDPAY confirms payments on-chain and sends signed webhooks.

Requirements

Quick start

Install the package. Laravel discovers its service provider and facade automatically:

Add server-side credentials to .env:

Create an invoice with a stable idempotency key:

If network is omitted, the customer chooses TRC20, TON or BEP20 at USDPAY checkout. Monetary values are decimal strings and are never converted to floats.

Dependency injection

The facade is optional. Inject UsdpayManager into application services or controllers:

Fetch an invoice by its unguessable ID:

The Invoice DTO exposes documented fields as typed properties and preserves the complete API response in $invoice->raw for forward compatibility.

Signed webhook events

The package registers this route by default:

It verifies X-USDPAY-Signature against the original raw request body before decoding JSON. Valid invoice.paid and invoice.expired deliveries become Laravel events:

Register the listener using normal Laravel event discovery or your application's event configuration.

The package verifies and parses the delivery only. It never changes an Order, grants a subscription, credits a balance, refunds a payment or performs fulfilment automatically.

Production idempotency example

Signature verification proves that USDPAY sent the request. It does not make fulfilment idempotent. Store X-USDPAY-Idempotency-Key under a unique constraint and lock the order in one transaction:

Configuration

Publish the configuration when defaults need to be changed:

Available environment variables:

Set USDPAY_WEBHOOK_ENABLED=false to disable automatic route registration. Configure the resulting HTTPS webhook URL in the corresponding USDPAY store.

API errors and retries

API and transport failures throw UsdpayApiException:

The package performs at most two automatic retries for invoice creation on connection failures and HTTP 429, 500, 502, 503 or 504. Every attempt reuses the caller-provided Idempotency-Key; Retry-After is honored. Validation, authentication, authorization, not-found and conflict responses are never retried. Secrets and authorization headers are redacted from exceptions.

Security

Supported networks

Documentation

Using Node.js? See the official Node.js SDK.

License

MIT © 2026 PIXELTIDE LLC.


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package usdpay/laravel contains the following files

Loading the files please wait ...