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-braintree
Gateway
Validator
ResponseValidator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Gateway\Validator
;
7
8
use Braintree\Result\Error;
9
use Braintree\Result\Successful;
10
use Braintree\Transaction;
11
use Magento\Payment\Gateway\Validator\ResultInterfaceFactory;
12
16
class
ResponseValidator
extends
GeneralResponseValidator
17
{
21
protected
function
getResponseValidators
()
22
{
23
return
array_merge(
24
parent::getResponseValidators(),
25
[
26
function
(
$response
) {
27
return
[
28
$response
instanceof Successful
29
&& isset(
$response
->transaction)
30
&& in_array(
31
$response
->transaction->status,
32
[Transaction::AUTHORIZED, Transaction::SUBMITTED_FOR_SETTLEMENT, Transaction::SETTLING]
33
),
34
[
__
(
'Wrong transaction status'
)]
35
];
36
}
37
]
38
);
39
}
40
}
$response
$response
Definition:
404.php:11
Magento\Braintree\Gateway\Validator\ResponseValidator
Definition:
ResponseValidator.php:16
Magento\Braintree\Gateway\Validator\GeneralResponseValidator
Definition:
GeneralResponseValidator.php:14
__
__()
Definition:
__.php:13
Magento\Braintree\Gateway\Validator\ResponseValidator\getResponseValidators
getResponseValidators()
Definition:
ResponseValidator.php:21
Magento\Braintree\Gateway\Validator
Definition:
CancelResponseValidator.php:8