PHP code example of ethanfly / businesspay-laravel
1. Go to this page and download the library: Download ethanfly/businesspay-laravel 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/ */
use Ethanfly\BusinessPay\BusinessPayManager;
class OrderController extends Controller
{
public function store(BusinessPayManager $businessPay)
{
return $businessPay->payment()->createPay([...]);
}
}