1. Go to this page and download the library: Download hedeqiang/alchemypay 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/ */
hedeqiang / alchemypay example snippets
php artisan vendor:publish --tag=alchemy
or
php artisan vendor:publish --provider="Hedeqiang\AlchemyPay\ServiceProvider"
public function index()
{
return app('pay')->request($uri,$params);
}
use Hedeqiang\AlchemyPay\Facades\Pay;
public function index()
{
return Pay::pay()->request($uri,$params)
}
public function notify(Request $request)
{
$result = Pay::pay()->handleNotify();
}