12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Signifyd\Model;
- use Magento\Payment\Api\PaymentVerificationInterface;
- use Magento\Sales\Api\Data\OrderPaymentInterface;
- /**
- * Default implementation of payment verification interface.
- * The default code value can be configured via DI.
- */
- class PredefinedVerificationCode implements PaymentVerificationInterface
- {
- /**
- * @var string
- */
- private $code;
- /**
- * @param string $code
- */
- public function __construct($code = '')
- {
- $this->code = $code;
- }
- /**
- * @inheritdoc
- */
- public function getCode(OrderPaymentInterface $orderPayment)
- {
- return $this->code;
- }
- }
|