Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getCode (OrderPaymentInterface $orderPayment) | |
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
Definition at line 24 of file PaymentVerificationInterface.php.
getCode | ( | OrderPaymentInterface | $orderPayment | ) |
Gets payment provider verification code. Throws an exception if provided payment method is different to verification implementation.
OrderPaymentInterface | $orderPayment |
Implemented in AvsEmsCodeMapper, CvvEmsCodeMapper, AvsEmsCodeMapper, CvvEmsCodeMapper, and PredefinedVerificationCode.