first upload all files
This commit is contained in:
32
Modules/Payment/Gateways/BankTransfer.php
Normal file
32
Modules/Payment/Gateways/BankTransfer.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Payment\Gateways;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Order\Entities\Order;
|
||||
use Modules\Payment\GatewayInterface;
|
||||
use Modules\Payment\Responses\NullResponse;
|
||||
|
||||
class BankTransfer implements GatewayInterface
|
||||
{
|
||||
public $label;
|
||||
public $description;
|
||||
public $instructions;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->label = setting('bank_transfer_label');
|
||||
$this->description = setting('bank_transfer_description');
|
||||
$this->instructions = setting('bank_transfer_instructions');
|
||||
}
|
||||
|
||||
public function purchase(Order $order, Request $request)
|
||||
{
|
||||
return new NullResponse($order);
|
||||
}
|
||||
|
||||
public function complete(Order $order)
|
||||
{
|
||||
return new NullResponse($order);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user