@@ -30,25 +30,25 @@ class Checkout
30
30
*
31
31
* @var string
32
32
*/
33
- const PAL_CACHE_ID = 'paypal_express_checkout_pal ' ;
33
+ public const PAL_CACHE_ID = 'paypal_express_checkout_pal ' ;
34
34
35
35
/**
36
36
* Keys for passthrough variables in sales/quote_payment and sales/order_payment
37
37
* Uses additional_information as storage
38
38
*/
39
- const PAYMENT_INFO_TRANSPORT_TOKEN = 'paypal_express_checkout_token ' ;
40
- const PAYMENT_INFO_TRANSPORT_SHIPPING_OVERRIDDEN = 'paypal_express_checkout_shipping_overridden ' ;
41
- const PAYMENT_INFO_TRANSPORT_SHIPPING_METHOD = 'paypal_express_checkout_shipping_method ' ;
42
- const PAYMENT_INFO_TRANSPORT_PAYER_ID = 'paypal_express_checkout_payer_id ' ;
43
- const PAYMENT_INFO_TRANSPORT_REDIRECT = 'paypal_express_checkout_redirect_required ' ;
44
- const PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT = 'paypal_ec_create_ba ' ;
39
+ public const PAYMENT_INFO_TRANSPORT_TOKEN = 'paypal_express_checkout_token ' ;
40
+ public const PAYMENT_INFO_TRANSPORT_SHIPPING_OVERRIDDEN = 'paypal_express_checkout_shipping_overridden ' ;
41
+ public const PAYMENT_INFO_TRANSPORT_SHIPPING_METHOD = 'paypal_express_checkout_shipping_method ' ;
42
+ public const PAYMENT_INFO_TRANSPORT_PAYER_ID = 'paypal_express_checkout_payer_id ' ;
43
+ public const PAYMENT_INFO_TRANSPORT_REDIRECT = 'paypal_express_checkout_redirect_required ' ;
44
+ public const PAYMENT_INFO_TRANSPORT_BILLING_AGREEMENT = 'paypal_ec_create_ba ' ;
45
45
46
46
/**
47
47
* Flag which says that was used PayPal Express Checkout button for checkout
48
48
* Uses additional_information as storage
49
49
* @var string
50
50
*/
51
- const PAYMENT_INFO_BUTTON = 'button ' ;
51
+ public const PAYMENT_INFO_BUTTON = 'button ' ;
52
52
53
53
/**
54
54
* @var \Magento\Quote\Model\Quote
@@ -131,8 +131,6 @@ class Checkout
131
131
protected $ _isBml = false ;
132
132
133
133
/**
134
- * Customer ID
135
- *
136
134
* @var int
137
135
*/
138
136
protected $ _customerId ;
@@ -145,8 +143,6 @@ class Checkout
145
143
protected $ _billingAgreement ;
146
144
147
145
/**
148
- * Order
149
- *
150
146
* @var \Magento\Sales\Model\Order
151
147
*/
152
148
protected $ _order ;
@@ -157,15 +153,11 @@ class Checkout
157
153
protected $ _configCacheType ;
158
154
159
155
/**
160
- * Checkout data
161
- *
162
156
* @var \Magento\Checkout\Helper\Data
163
157
*/
164
158
protected $ _checkoutData ;
165
159
166
160
/**
167
- * Tax data
168
- *
169
161
* @var \Magento\Tax\Helper\Data
170
162
*/
171
163
protected $ _taxData ;
@@ -1167,6 +1159,8 @@ protected function prepareGuestQuote()
1167
1159
1168
1160
$ quote ->setCustomerId (null )
1169
1161
->setCustomerEmail ($ email )
1162
+ ->setCustomerFirstname ($ billingAddress ->getFirstname ())
1163
+ ->setCustomerLastname ($ billingAddress ->getLastname ())
1170
1164
->setCustomerIsGuest (true )
1171
1165
->setCustomerGroupId (\Magento \Customer \Model \Group::NOT_LOGGED_IN_ID );
1172
1166
return $ this ;
0 commit comments