PHP code example of wcda / laravel-pay
1. Go to this page and download the library: Download wcda/laravel-pay 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/ */
wcda / laravel-pay example snippets
Yansongda\LaravelPay\PayServiceProvider::class,
'Pay' => Yansongda\LaravelPay\Facades\Pay::class,
use Pay;
$order = [
'out_trade_no' => '1',
'total_amount' => '1',
'subject' => 'test subject',
];
return Pay::driver('alipay')->gateway('web')->pay($order);