File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -54,29 +54,26 @@ class BillingAgreement implements SectionSourceInterface
54
54
*
55
55
* @var string
56
56
*/
57
- private $ startAction = '' ;
57
+ private $ startAction = 'paypal/express/start/button/1 ' ;
58
58
59
59
/**
60
60
* @param CurrentCustomer $currentCustomer
61
61
* @param Data $paypalData
62
62
* @param ConfigFactory $paypalConfigFactory
63
63
* @param UrlInterface $urlBuilder
64
64
* @param Escaper $escaper
65
- * @param string $startAction
66
65
*/
67
66
public function __construct (
68
67
CurrentCustomer $ currentCustomer ,
69
68
Data $ paypalData ,
70
69
ConfigFactory $ paypalConfigFactory ,
71
70
UrlInterface $ urlBuilder ,
72
- Escaper $ escaper ,
73
- $ startAction
71
+ Escaper $ escaper
74
72
) {
75
73
$ this ->currentCustomer = $ currentCustomer ;
76
74
$ this ->paypalData = $ paypalData ;
77
75
$ this ->urlBuilder = $ urlBuilder ;
78
76
$ this ->escaper = $ escaper ;
79
- $ this ->startAction = $ startAction ;
80
77
$ this ->config = $ paypalConfigFactory ->create ();
81
78
$ this ->config ->setMethod (Config::METHOD_EXPRESS );
82
79
}
Original file line number Diff line number Diff line change 105
105
</argument >
106
106
</arguments >
107
107
</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" >
114
109
<arguments >
115
110
<argument name =" sectionSourceMap" xsi : type =" array" >
116
111
<item name =" paypal-billing-agreement" xsi : type =" string" >Magento\Paypal\CustomerData\BillingAgreement</item >
You can’t perform that action at this time.
0 commit comments