pvsaintpe / bitaps
Component for BitAps
Installs: 7 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- phpdocumentor/reflection: 3.0.*
README
Installation
Please add this section into composer.json:
"require": {
"pvsaintpe/bitaps": "1.0.*"
}
Usage
If you want to create payment cheque, use this construction:
PHP:
<?php
use bitaps\BitAps;
$paymentCheque = BitAps::createCheque(3);
$address = $paymentCheque->address;
$invoice = $paymentCheque->invoice;
$redeemCode = $paymentCheque->redeem_code;
?>
If you want to use the address or code immediately, use the following methods:
PHP:
<?php
...
$address = 'a4dsdfs4TYYY323sdrssdfsdfsdfsdf';
$txResult = $paymentCheque->useRedeemCode($address, $amount, 'low');
$transactionInfo = $txResult->getTransaction();
?>