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
Model
Paypal
Helper
AbstractHelper.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Model\Paypal\Helper
;
7
8
use
Magento\Quote\Model\Quote
;
9
13
abstract
class
AbstractHelper
14
{
21
protected
function
disabledQuoteAddressValidation
(
Quote
$quote
)
22
{
23
$billingAddress
=
$quote
->getBillingAddress();
24
$billingAddress
->setShouldIgnoreValidation(
true
);
25
26
if
(!
$quote
->getIsVirtual()) {
27
$shippingAddress
=
$quote
->getShippingAddress();
28
$shippingAddress
->setShouldIgnoreValidation(
true
);
29
if
(!
$billingAddress
->getEmail()) {
30
$billingAddress
->setSameAsBilling(1);
31
}
32
}
33
}
34
}
$billingAddress
$billingAddress
Definition:
order.php:25
Magento\Braintree\Model\Paypal\Helper\AbstractHelper\disabledQuoteAddressValidation
disabledQuoteAddressValidation(Quote $quote)
Definition:
AbstractHelper.php:21
$quote
$quote
Definition:
paypal_quote.php:17
$shippingAddress
$shippingAddress
Definition:
order.php:40
Magento\Braintree\Model\Paypal\Helper
Definition:
AbstractHelper.php:6
Magento\Braintree\Model\Paypal\Helper\AbstractHelper
Definition:
AbstractHelper.php:13
Magento\Quote\Model\Quote
Definition:
AddressTest.php:6
Magento\Framework\DB\Platform\Quote
Definition:
Quote.php:13