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

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

Check Commerce PHP SDK

A modern PHP SDK 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.

Requirements

Installation

Guzzle is installed as the default HTTP client; any other PSR-18 client can be injected instead.

Quick start

Or configure entirely from the environment:

The environment defaults to production; every option is documented on Configuration::fromArray():

Authentication

You never call the authentication endpoint yourself. The first API call requests a bearer token, caches it, refreshes it shortly before expiry, and transparently re-authenticates once if the API rejects a token mid-flight.

By default tokens live in memory for the current process. For long-running or multi-process apps, supply a shared store:

Transactions

Consumers

Store consumer bank details once, then reference them by id in transactions and subscriptions:

List endpoints return one page plus lazy access to the rest — autoPagingIterator() streams every record and fetches pages on demand:

Subscriptions

Hosted payment pages

Batches

Merchant boarding

Error handling

Every SDK exception implements CheckCommerce\Exception\CheckCommerceException; API errors map to a typed hierarchy:

Exception When
ValidationException 400/422 — invalid request, has per-field errors
AuthenticationException 401 — bad API key, merchant number, or token
AuthorizationException 403 — missing scope or disabled feature
NotFoundException 404 — resource does not exist
RateLimitException 429 — too many requests (getRetryAfter())
ServerException 5xx — API-side failure
ApiException any other error status (base class of the above)
TransportException network failure, no API response received
InvalidArgumentException misuse detected before a request is sent

Pass your own correlation id to trace a request end to end:

Retries

Failed requests are retried with exponential backoff and jitter, up to max_retries (default 2):

Set 'max_retries' => 0 to disable retries entirely.

Forward compatibility

Typed properties cover the documented API. Anything the API adds later remains reachable — response objects expose the full payload:

Unknown enum values parse to null instead of throwing; the raw value stays available (e.g. TransactionResult::$statusRaw).

Custom HTTP client

By default the SDK builds a Guzzle client from the configured timeout and connect_timeout. Inject any PSR-18 client and PSR-17 factories instead — useful for proxies, middleware, or tests:

The test suite ships a FakeHttpClient pattern you can copy for your own integration tests — no HTTP mocking library required.

Laravel

This package is intentionally framework-free. For Laravel applications, use the companion package codearachnid/check-commerce-laravel-sdk — it wraps this SDK with a service provider, publishable config mapping the CHECK_COMMERCE_* environment variables, a CheckCommerce facade, a cache-backed token store shared across workers, and a testing fake for feature tests:

Contributing

See CONTRIBUTING.md. Run the suite with:

License

Released under the MIT License.


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

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.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-php-sdk contains the following files

Loading the files please wait ...