PHP code example of wangta69 / btc-payment
1. Go to this page and download the library: Download wangta69/btc-payment 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/ */
wangta69 / btc-payment example snippets
$btc = app("Pondol\BtcPayment\Bitcoind");
protected $btc;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct(Bitcoind $btc)
{
$this->btc = $btc;
$this->btc->getaccountaddress("");
}
public function getaccountaddress() {
$btc = app("Pondol\BtcPayment\Bitcoind");
return $btc->getaccountaddress("37");
}
php artisan bitcoin:checkpayment