Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-paypal
Model
Payflow
Service
Response
Validator
IAVSResponse.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Model\Payflow\Service\Response\Validator
;
7
8
use
Magento\Framework\DataObject
;
9
use
Magento\Paypal\Model\Payflow\Service\Response\ValidatorInterface
;
10
use
Magento\Paypal\Model\Payflow\Transparent
;
11
16
class
IAVSResponse
implements
ValidatorInterface
17
{
23
private
static
$iavs =
'iavs'
;
24
28
private
static
$negativeResponseCode =
'y'
;
29
33
public
function
validate
(
DataObject
$response
,
Transparent
$transparentModel)
34
{
35
$config
= $transparentModel->
getConfig
();
36
// the IAVS configuration setting is not enabled
37
if
(!
$config
->getValue(
'avs_international'
)) {
38
return
true
;
39
}
40
41
if
(strtolower((
string
)
$response
->getData(self::$iavs)) === self::$negativeResponseCode) {
42
$response
->setRespmsg(
'International AVS indicator does not match.'
);
43
return
false
;
44
}
45
46
return
true
;
47
}
48
}
$response
$response
Definition:
404.php:11
Magento\Paypal\Model\Payflowpro\getConfig
getConfig()
Definition:
Payflowpro.php:571
$config
$config
Definition:
fraud_order.php:17
Magento\Paypal\Model\Payflow\Service\Response\Validator
Definition:
AVSResponse.php:6
Magento\Paypal\Model\Payflow\Service\Response\Validator\IAVSResponse\validate
validate(DataObject $response, Transparent $transparentModel)
Definition:
IAVSResponse.php:33
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Paypal\Model\Payflow\Service\Response\ValidatorInterface
Definition:
ValidatorInterface.php:14
Magento\Paypal\Model\Payflow\Transparent
Definition:
Transparent.php:29
Magento\Paypal\Model\Payflow\Service\Response\Validator\IAVSResponse
Definition:
IAVSResponse.php:16
Magento\Framework\DataObject
Definition:
Cache.php:6