merkeleon / processing-integration
Cryptoprocessing integrations for php
v1.0
2018-10-26 08:32 UTC
Requires
- php: >=5.3.0
- ext-bcmath: *
This package is auto-updated.
Last update: 2024-10-29 05:17:09 UTC
README
Installation
First, require the package using Composer:
composer require merkeleon/processing-integration
Examples
Take address
use Merkeleon\Processing\API; use Merkeleon\Processing\Address; $api = API::make('URL', 'API_KEY', 'API_SECRET'); /** @var Address $address */ $address = $api->addressTake('BTC', 'identity');
Make withdraw
use Merkeleon\Processing\API; use Merkeleon\Processing\Address; $api = API::make('URL', 'API_KEY', 'API_SECRET'); /** @var Address $address */ $address = $api->withdraw('12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX', 1, 'BTC', 'unique-identity-for-withdrawal', null);
Description
Never use the timestamp as $foreignId for withdrawals, but use your unique identifier. If you mistakenly make two requests for output with the same $foreignId, then second and next attempts will be rejected for security reasons. Foreign id for address may be not unique