Download the PHP package checkout/checkout-sdk-php-beta without Composer
On this page you can find all versions of the php package checkout/checkout-sdk-php-beta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download checkout/checkout-sdk-php-beta
More information about checkout/checkout-sdk-php-beta
Files in checkout/checkout-sdk-php-beta
Package checkout-sdk-php-beta
Short Description Checkout.com SDK for PHP
License MIT
Homepage https://github.com/checkout/checkout-sdk-php-beta
Informations about the package checkout-sdk-php-beta
Checkout.com PHP SDK beta
This is a temporary development Checkout PHP SDK project that was archived and transferred to the official repository.
Getting started
Packages and sources are available from Packagist.
Composer
Please check in GitHub releases for all the versions available.
How to use the SDK
This SDK can be used with two different pair of API keys provided by Checkout. However, using different API keys imply using specific API features. Please find in the table below the types of keys that can be used within this SDK.
Account System | Public Key (example) | Secret Key (example) |
---|---|---|
default | pk_g650ff27-7c42-4ce1-ae90-5691a188ee7b | sk_gk3517a8-3z01-45fq-b4bd-4282384b0a64 |
Four | pk_pkhpdtvabcf7hdgpwnbhw7r2uic | sk_m73dzypy7cf3gf5d2xr4k7sxo4e |
Note: sandbox keys have a test_
or sbox_
identifier, for Default and Four accounts respectively.
PLEASE NEVER SHARE OR PUBLISH YOUR CHECKOUT CREDENTIALS.
If you don't have your own API keys, you can sign up for a test account here.
Default
Default keys client instantiation can be done as follows:
Four
If your pair of keys matches the Four type, this is how the SDK should be used:
The SDK supports client credentials OAuth, when initialized as follows:
PHP Settings
For operations that require file upload (Disputes or Marketplace) the configuration extension=fileinfo
must be enabled in the php.ini
.
Exception handling
All the API responses that do not fall in the 2** status codes will cause a CheckoutApiException
. The exception encapsulates
the requestId
, httpStatusCode
and a map of errorDetails
, if available.
More documentation related to Checkout API and the SDK is available at:
Building from source
Once you checkout the code from GitHub, the project can be built using composer:
The execution of integration tests require the following environment variables set in your system:
- For Default account systems:
CHECKOUT_PUBLIC_KEY
&CHECKOUT_SECRET_KEY
- For Four account systems:
CHECKOUT_FOUR_PUBLIC_KEY
&CHECKOUT_FOUR_SECRET_KEY
- For Four account systems (OAuth):
CHECKOUT_FOUR_OAUTH_CLIENT_ID
&CHECKOUT_FOUR_OAUTH_CLIENT_SECRET
Code of Conduct
Please refer to Code of Conduct
Licensing
MIT
All versions of checkout-sdk-php-beta with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.4.1
symfony/polyfill-php80 Version ^1.23.1
symfony/deprecation-contracts Version ^2.5
ext-fileinfo Version *
monolog/monolog Version ^2.3