File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Paypal/Model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function getUrl(): string
111
111
'client-id ' => $ this ->getClientId (),
112
112
'locale ' => $ this ->localeResolver ->getLocale (),
113
113
'currency ' => $ this ->storeManager ->getStore ()->getBaseCurrencyCode (),
114
- 'enable-funding ' => $ this ->getAllowedFunding ()
114
+ 'enable-funding ' => $ this ->getAllowedFunding (),
115
115
];
116
116
117
117
if ($ this ->areMessagesEnabled ()) {
@@ -215,8 +215,9 @@ private function getAllowedFunding(): string
215
215
$ payLaterActive = (bool )$ this ->config ->getPayLaterConfigValue ('experience_active ' );
216
216
217
217
// If Pay Later is disabled, paylater parameter will be removed from enable-funding parameter list
218
- if ($ payLaterActive === false ) {
218
+ if (! $ payLaterActive ) {
219
219
unset($ this ->supportedPaymentMethods ['paylater ' ]);
220
+
220
221
}
221
222
return implode (', ' , $ this ->supportedPaymentMethods );
222
223
}
You can’t perform that action at this time.
0 commit comments