PHP code example of sextanet / laravel-webpay
1. Go to this page and download the library: Download sextanet/laravel-webpay 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/ */
sextanet / laravel-webpay example snippets
// In your controller or equivalent
$order = YourOrder::where('id', 1)->first();
// Your order model needs to have: buy_order, session_id and amount fields
return LaravelWebpay::create($order);
bash
php artisan vendor:publish --tag="laravel-webpay-migrations"
php artisan migrate