PHP code example of pvsaintpe / bitaps

1. Go to this page and download the library: Download pvsaintpe/bitaps 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/ */

    

pvsaintpe / bitaps example snippets


        use bitaps\BitAps;
        
        $paymentCheque = BitAps::createCheque(3);
        
        $address = $paymentCheque->address;
        $invoice = $paymentCheque->invoice;
        $redeemCode = $paymentCheque->redeem_code;
    

        ...
        
        $address = 'a4dsdfs4TYYY323sdrssdfsdfsdfsdf';
        $txResult = $paymentCheque->useRedeemCode($address, $amount, 'low');
        
        $transactionInfo = $txResult->getTransaction();