Skip to content

Commit e1d81b8

Browse files
committed
MAGETWO-48372: Billing Agreement popup doesn't appear on product page after clicking on Checkout with Express button
1 parent 45306d6 commit e1d81b8

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/code/Magento/Paypal/CustomerData/BillingAgreement.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,26 @@ class BillingAgreement implements SectionSourceInterface
5454
*
5555
* @var string
5656
*/
57-
private $startAction = '';
57+
private $startAction = 'paypal/express/start/button/1';
5858

5959
/**
6060
* @param CurrentCustomer $currentCustomer
6161
* @param Data $paypalData
6262
* @param ConfigFactory $paypalConfigFactory
6363
* @param UrlInterface $urlBuilder
6464
* @param Escaper $escaper
65-
* @param string $startAction
6665
*/
6766
public function __construct(
6867
CurrentCustomer $currentCustomer,
6968
Data $paypalData,
7069
ConfigFactory $paypalConfigFactory,
7170
UrlInterface $urlBuilder,
72-
Escaper $escaper,
73-
$startAction
71+
Escaper $escaper
7472
) {
7573
$this->currentCustomer = $currentCustomer;
7674
$this->paypalData = $paypalData;
7775
$this->urlBuilder = $urlBuilder;
7876
$this->escaper = $escaper;
79-
$this->startAction = $startAction;
8077
$this->config = $paypalConfigFactory->create();
8178
$this->config->setMethod(Config::METHOD_EXPRESS);
8279
}

app/code/Magento/Paypal/etc/frontend/di.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@
105105
</argument>
106106
</arguments>
107107
</type>
108-
<type name="Magento\Paypal\CustomerData\BillingAgreement">
109-
<arguments>
110-
<argument name="startAction" xsi:type="string">paypal/express/start/button/1</argument>
111-
</arguments>
112-
</type>
113-
<type name="Magento\Customer\CustomerData\SectionPoolInterface">
108+
<type name="Magento\Customer\CustomerData\SectionPool">
114109
<arguments>
115110
<argument name="sectionSourceMap" xsi:type="array">
116111
<item name="paypal-billing-agreement" xsi:type="string">Magento\Paypal\CustomerData\BillingAgreement</item>

0 commit comments

Comments
 (0)