PHP code example of codephoenixdev / moneypal-laravel-gateway
1. Go to this page and download the library: Download codephoenixdev/moneypal-laravel-gateway 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/ */
codephoenixdev / moneypal-laravel-gateway example snippets
use CodePhoenixDev\MoneyPal\Facades\MoneyPal;
$response = MoneyPal::pay([
'amount' => 10000,
'callback_url' => route('payment.callback'),
'description' => 'Order #1234',
]);
return redirect()->away($response->getRedirectUrl());
bash
php artisan vendor:publish --tag="moneypal-config"
bash
php artisan test