PHP code example of hexters / coinpayment
1. Go to this page and download the library: Download hexters/coinpayment 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/ */
hexters / coinpayment example snippets
use Hexters\CoinPayment\CoinPayment;
return redirect(CoinPayment::generatelink([
'order_id' => uniqid(),
'amountTotal' => 37.5,
'buyer_email' => '[email protected]',
'redirect_url' => url('/thank-you'),
]));