v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

@ -1,23 +0,0 @@
<?php
namespace Modules\PaypalStandard\Listeners;
use App\Events\PaymentGatewayListing;
class Gateway
{
/**
* Handle the event.
*
* @param PaymentGatewayListing $event
* @return void
*/
public function handle(PaymentGatewayListing $event)
{
$setting = setting('paypalstandard');
$setting['code'] = 'paypalstandard';
return [$setting];
}
}

View File

@ -0,0 +1,23 @@
<?php
namespace Modules\PaypalStandard\Listeners;
use App\Events\Module\PaymentMethodShowing as Event;
class ShowPaymentMethod
{
/**
* Handle the event.
*
* @param Event $event
* @return void
*/
public function handle(Event $event)
{
$method = setting('paypal-standard');
$method['code'] = 'paypal-standard';
$event->modules->payment_methods[] = $method;
}
}