@@ -111,6 +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
115
];
115
116
116
117
if ($ this ->areMessagesEnabled ()) {
@@ -122,7 +123,6 @@ public function getUrl(): string
122
123
$ params ['intent ' ] = $ this ->getIntent ();
123
124
$ params ['merchant-id ' ] = $ this ->config ->getValue ('merchant_id ' );
124
125
$ params ['disable-funding ' ] = $ this ->getDisallowedFunding ();
125
- $ params ['enable-funding ' ] = $ this ->getAllowedFunding ();
126
126
$ params = array_replace ($ params , $ this ->queryParams );
127
127
}
128
128
$ params ['components ' ] = implode (', ' , $ components );
@@ -214,7 +214,7 @@ private function getAllowedFunding(): string
214
214
{
215
215
$ payLaterActive = (bool )$ this ->config ->getPayLaterConfigValue ('experience_active ' );
216
216
217
- // If Pay Later is enabled, then only paylater parameter will go in enable-funding parameter list
217
+ // If Pay Later is disabled, paylater parameter will be removed from enable-funding parameter list
218
218
if ($ payLaterActive === false ) {
219
219
unset($ this ->supportedPaymentMethods ['paylater ' ]);
220
220
}
0 commit comments