Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
PredefinedVerificationCode Class Reference
Inheritance diagram for PredefinedVerificationCode:
PaymentVerificationInterface

Public Member Functions

 __construct ($code='')
 
 getCode (OrderPaymentInterface $orderPayment)
 

Detailed Description

Default implementation of payment verification interface. The default code value can be configured via DI.

Definition at line 15 of file PredefinedVerificationCode.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $code = '')
Parameters
string$code

Definition at line 25 of file PredefinedVerificationCode.php.

26  {
27  $this->code = $code;
28  }

Member Function Documentation

◆ getCode()

getCode ( OrderPaymentInterface  $orderPayment)

Gets payment provider verification code. Throws an exception if provided payment method is different to verification implementation.

Parameters
OrderPaymentInterface$orderPayment
Returns
string
Exceptions

Implements PaymentVerificationInterface.

Definition at line 33 of file PredefinedVerificationCode.php.

34  {
35  return $this->code;
36  }

The documentation for this class was generated from the following file: