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
ErrorCodeProvider.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Braintree\Gateway\Validator
;
9
10
use Braintree\Error\ErrorCollection;
11
use Braintree\Error\Validation;
12
use Braintree\Result\Error;
13
use Braintree\Result\Successful;
14
18
class
ErrorCodeProvider
19
{
26
public
function
getErrorCodes(
$response
): array
27
{
28
$result
= [];
29
if
(!
$response
instanceof Error) {
30
return
$result
;
31
}
32
34
$collection
=
$response
->errors;
35
37
foreach
(
$collection
->deepAll() as $error) {
38
$result
[] = $error->code;
39
}
40
41
return
$result
;
42
}
43
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
$response
$response
Definition:
404.php:11
Magento\Braintree\Gateway\Validator\ErrorCodeProvider
Definition:
ErrorCodeProvider.php:18
Magento\Braintree\Gateway\Validator
Definition:
CancelResponseValidator.php:8
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17