Download the PHP package codearachnid/check-commerce-laravel-sdk without Composer

On this page you can find all versions of the php package codearachnid/check-commerce-laravel-sdk. 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 check-commerce-laravel-sdk

Check Commerce for Laravel

Packagist PHP from Packagist Laravel versions GitHub Workflow Status (main) Total Downloads

Laravel integration for the Check Commerce (OBP Link) API — ACH, RTP, paper check and IAT payments, stored consumers, recurring subscriptions, hosted payment pages, batch processing and merchant boarding.

Everything that talks to the API lives in codearachnid/check-commerce-php-sdk. This package is the Laravel half of it:

Requirements

Installation

The core SDK is pulled in as a dependency; you never install it separately. Omit guzzlehttp/guzzle if your application already ships a PSR-18 client — the SDK discovers whatever implementation is installed.

Publish the config file:

Then add your credentials:

Every key in config/check-commerce.php is documented in place, including scopes, retry backoff and the HTTP client toggle.

Usage

Inject the client anywhere the container builds your class:

Or reach for the facade:

The facade exposes the SDK's services as methods — transactions(), consumers(), subscriptions(), batches(), hostedPages(), boarding() — plus authenticate(). Injected clients read them as properties ($client->transactions); both return the same objects.

Credentials are validated the first time the client is resolved, not during boot, so an application missing CHECK_COMMERCE_API_KEY still runs its migrations and queue workers.

Transactions

Consumers

Subscriptions

Hosted payment pages

Batches

Merchant boarding

Errors

Every API failure is a typed exception from the core SDK — ValidationException, AuthenticationException, AuthorizationException, NotFoundException, RateLimitException, ServerException, ApiException and TransportException, all implementing CheckCommerce\Exception\CheckCommerceException:

Token caching

The SDK requests a bearer token on the first API call and refreshes it before expiry. This package stores that token in Laravel's cache instead of in process memory, and the cache entry expires exactly when the token does.

That matters as soon as your application runs more than one PHP process — web workers, queue workers, scheduled commands. With per-process storage each of them authenticates separately, and keeps re-authenticating after every deploy or worker restart. With a shared store they issue one token between them.

Use redis, memcached or database in production. The file store works on a single server; array is per-request and effectively disables sharing. The cache key is derived from your base URL, merchant number, API key and scopes, so multiple merchants in one application never collide.

Warm the token at deploy time — and fail loudly on bad credentials — with:

Testing

CheckCommerce::fake() swaps the transport for a recording PSR-18 client. Everything else — your config, the container binding, the token store — stays exactly as it is in production:

Replacing the HTTP client

Bind a PSR-18 client (or PSR-17 factories) in the container and the SDK uses it — handy for proxies, logging middleware or a shared connection pool:

Set check-commerce.http_client.from_container to false to ignore container bindings and let the SDK discover and build its own client.

Contributing

The package develops against Orchestra Testbench. composer serve boots a throwaway Laravel application from workbench/ with the package already registered, which is the quickest way to try a change against a real app.

See our contributing guide to get started.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Check Commerce for Laravel is open-sourced software licensed under the MIT license.


All versions of check-commerce-laravel-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
codearachnid/check-commerce-php-sdk Version ^0.2
illuminate/cache Version ^12.0||^13.0
illuminate/contracts 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 codearachnid/check-commerce-laravel-sdk contains the following files

Loading the files please wait ...