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

Public Member Functions

 getCode (OrderPaymentInterface $orderPayment)
 

Detailed Description

Payment provider codes verification interface.

Custom payment methods might implement this interface to provide specific mapping for payment methods, like AVS or CVV verification. The payment methods can map payment method info from internal sources, like additional information, to specific international codes.

There are no default implementation of this interface, because code verification depends on payment method integration specifics.

@api

Since
100.2.0

Definition at line 24 of file PaymentVerificationInterface.php.

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

Implemented in AvsEmsCodeMapper, CvvEmsCodeMapper, AvsEmsCodeMapper, CvvEmsCodeMapper, and PredefinedVerificationCode.


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