1. Go to this page and download the library: Download nafiswatsiq/subbase-payment 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/ */
nafiswatsiq / subbase-payment example snippets
use Filament\Panel;
use Filament\PanelProvider;
use Nafiswatsiq\SubbasePayment\SubbasePaymentPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
SubbasePlugin::make(),
SubbasePaymentPlugin::make()
])
// ... rest of your panel configuration
;
}
}
'checkout' => [
'path' => 'checkout',
'middleware' => ['web'],
'return_url' => null, // named route or full URL after successful payment
'cancel_url' => null, // named route or full URL after canceled payment
],