Download the PHP package doge-dev/all-secure-php-client without Composer
On this page you can find all versions of the php package doge-dev/all-secure-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package all-secure-php-client
Exchange Client
API Documentation:
Learn more about AllSecure Exchange platform by reading our documentation.
Installation via composer:
Refer to Composer Documentation if you are not familiar with composer).
Usage with test parameters:
PHP client is made having in mind the LIVE environment. If you are to test on a Sandbox environment, you should ammend the client as follows:
- src/Client.php to comment-out line 46 and uncomment line 47
- src/Client.php to comment-out line 70 and uncomment line 71
- src/Xml/Generator.php to comment-out line 43 and uncomment line 44
Usage:
Status Request:
<?php
use DogeDev\AllSecure\Client;
use DogeDev\AllSecure\StatusApi\StatusRequestData;
$username = 'Your Username';
$password = 'Your password';
$apiKey = 'Connector API Key';
$sharedSecret = 'Connector Shared Secret';
require_once __DIR__ . '/vendor/autoload.php';
$client = new Client($username, $password, $apiKey, $sharedSecret);
$statusRequestData = new StatusRequestData();
// use either the UUID or your merchantTransactionId but not both
//$statusRequestData->setTransactionUuid($transactionUuid);
$statusRequestData->setMerchantTransactionId($merchantTransactionId);
$statusResult = $client->sendStatusRequest($statusRequestData);
// dump all data
var_dump($statusResult);
// dump card data
$cardData = $statusResult->getreturnData();
var_dump($cardData);
// dump & echo error data
$errorData = $statusResult->getFirstError();
echo $errorData->getMessage();
echo $errorData->getCode();
echo $errorData->getAdapterCode();
echo $errorData->getAdapterMessage();
All versions of all-secure-php-client with dependencies
PHP Build Version
Package Version
The package doge-dev/all-secure-php-client contains the following files
Loading the files please wait ....