Offline Payment modified.
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\OfflinePayment\Events\Handlers;
|
||||
|
||||
use App\Events\PaymentGatewayConfirm;
|
||||
|
||||
class OfflinePaymentConfirm
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @param PaymentGatewayConfirm $event
|
||||
* @return void
|
||||
*/
|
||||
public function handle(PaymentGatewayConfirm $event)
|
||||
{
|
||||
/*if (strpos($event->gateway, 'offlinepayment') === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return [
|
||||
'code' => $event->gateway,
|
||||
'name' => $event->gateway,
|
||||
'redirect' => false,
|
||||
'html' => true,
|
||||
];*/
|
||||
}
|
||||
}
|
@ -11,6 +11,9 @@ use Modules\OfflinePayment\Events\Handlers\OfflinePaymentAdminMenu;
|
||||
use App\Events\PaymentGatewayListing;
|
||||
use Modules\OfflinePayment\Events\Handlers\OfflinePaymentGateway;
|
||||
|
||||
use App\Events\PaymentGatewayConfirm;
|
||||
use Modules\OfflinePayment\Events\Handlers\OfflinePaymentConfirm;
|
||||
|
||||
class OfflinePaymentServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
@ -36,6 +39,7 @@ class OfflinePaymentServiceProvider extends ServiceProvider
|
||||
|
||||
$this->app['events']->listen(AdminMenuCreated::class, OfflinePaymentAdminMenu::class);
|
||||
$this->app['events']->listen(PaymentGatewayListing::class, OfflinePaymentGateway::class);
|
||||
$this->app['events']->listen(PaymentGatewayConfirm::class, OfflinePaymentConfirm::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user