A PHP client library for accessing Acquired APIs
The Acquired API Library for PHP enables you to work with Acquired APIs., (*1)
|--example auth_.html auth_.php refund.html refund.php ... |--lib AcquiredCommon.php AcquiredConfig.php AcquiredException.php |--service HandlePub.php AuthHandle.php AuthOnlyHandle.php CaptureHandle.php AuthCaptureHandle.php ... |--public |--css general.css |--js |--logs readme.md index.php
https://developer.acquired.com/integrations, (*2)
You can use Composer or simply Download the Release, (*3)
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed. Once composer is installed, execute the following command in your project root to install this library:, (*4)
composer require Acquired/php-api-library:dev-master
require_once __DIR__ . '/../vendor/autoload.php';
It is very simply to use like this: 1. new a obj accoding to your transaction type., (*5)
use Acquired\Service\AuthHandle; $auth = new AuthHandle();
$auth->setParam("amount",1);
$result = $auth->postJson();
$response_hash = $auth->generateResHash($result); if($reponse_hash == $result['response_hash']){ // do your job. }
PHP 5.3+
Curl, (*6)