PHP code example of arhx / blockchain-payments

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

    

arhx / blockchain-payments example snippets


$replenishment_via_blockchain = true;
if($replenishment_via_blockchain){
    return redirect()->route('blockchain-pay', ['amount'=> 100 ]);
}
bash
php artisan blockchain-payments:publish
bash
php artisan migrate
text
BLOCKCHAIN_XPUB=
BLOCKCHAIN_API_KEY=
bash
php artisan blockchain-payments:flush