PHP code example of hypercharge / hypercharge-schema
1. Go to this page and download the library: Download hypercharge/hypercharge-schema library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hypercharge / hypercharge-schema example snippets
// requests to hypercharge
$xmlString = Hypercharge\JsonSchemaFixture::request('sale.xml');
// or as json string
$jsonString = Hypercharge\JsonSchemaFixture::request('sale.json');
// response from hypercharge
$xmlString = Hypercharge\JsonSchemaFixture::response('sale.xml');
// notification from hypercharge
$postData = json_decode(Hypercharge\JsonSchemaFixture::notification('transaction_notification.json'), true);
sh
curl -o composer.phar http://getcomposer.org/composer.phar
php composer.phar install
php composer.phar update --dev
sh
php test/php/all.php