Download the PHP package easytransac/easytransac-sdk-php without Composer
On this page you can find all versions of the php package easytransac/easytransac-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download easytransac/easytransac-sdk-php
More information about easytransac/easytransac-sdk-php
Files in easytransac/easytransac-sdk-php
Package easytransac-sdk-php
Short Description Easytransac payment gateway PHP SDK
License MIT
Informations about the package easytransac-sdk-php
EasyTransac SDK (PHP)
Make your EasyTransac API implementation easier with our SDK.
The EasyTransac SDK is a tool to process payments with the EasyTransac API.
What's New (v2.2.2)
- Added
setEnvironment('sandbox')for clean sandbox/production separation - Full PHP
7.4to8.4compatibility - Deprecated PHP 5.6 support
- Improved response helpers and strict typing
- Added backend Drop-in session support
- Updated documentation
Requirements
You need at least:
- PHP >= 7.4
- cURL in order to get clear error messages
- An API key provided by EasyTransac
- OpenSSL version 1.0.1 to support TLS v1.2 ciphers
Installation
By composer
Or add this in your composer.json:
Manually
In order to use it, you only need to require the autoload file easytransac/easytransac-sdk-php/sdk/EasyTransac/autoload.php.
Unit Testing
Our test cases are written under PHPUnit. Please check the required PHPUnit version in the composer.json file.
Sandbox Support
As of v2.0.0, the sandbox API is hosted separately at:
Use the new method to enable sandbox mode:
No need to override API URLs manually.
Samples
Set up the configuration
Make a direct payment request
Push payment notification
Get base API response in JSON and Array
Create a Drop-in session token
The Drop-in flow starts on the backend with POST /api/dropin/session.
Important:
Providersis required by the EasyTransac API- pass it on the transaction with
->setProviders(...) setProviders()accepts either a comma-separated string or an array- array values are trimmed, lowercased, deduplicated, and serialized for the API
- examples:
card,applepay,googlepay,card, or['applepay', 'googlepay']
You can now pass the returned session token to the EasyTransac frontend Drop-in widget.