Files
ltsecurityinc/app/code/Lts/Netterm/Model/Payment/Netterm.php
T

27 lines
628 B
PHP

<?php
/**
* Copyright © All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Lts\Netterm\Model\Payment;
use Magento\Payment\Model\Method\AbstractMethod;
use Magento\Quote\Api\Data\CartInterface;
class Netterm extends AbstractMethod
{
public const PAYMENT_METHOD_NETTERM_CODE = 'netterm';
protected $_code = self::PAYMENT_METHOD_NETTERM_CODE;
protected $_isOffline = true;
public function getInstructions(): string
{
$instructions = $this->getConfigData('instructions');
return $instructions !== null ? trim($instructions) : '';
}
}