Skip to content

Commit 76a95e7

Browse files
committed
Added venmo,paylater for all paypal payment methods
1 parent 6dce95e commit 76a95e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Paypal/Model/SdkUrl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public function getUrl(): string
111111
'client-id' => $this->getClientId(),
112112
'locale' => $this->localeResolver->getLocale(),
113113
'currency' => $this->storeManager->getStore()->getBaseCurrencyCode(),
114+
'enable-funding' => $this->getAllowedFunding()
114115
];
115116

116117
if ($this->areMessagesEnabled()) {
@@ -122,7 +123,6 @@ public function getUrl(): string
122123
$params['intent'] = $this->getIntent();
123124
$params['merchant-id'] = $this->config->getValue('merchant_id');
124125
$params['disable-funding'] = $this->getDisallowedFunding();
125-
$params['enable-funding'] = $this->getAllowedFunding();
126126
$params = array_replace($params, $this->queryParams);
127127
}
128128
$params['components'] = implode(',', $components);
@@ -214,7 +214,7 @@ private function getAllowedFunding(): string
214214
{
215215
$payLaterActive = (bool)$this->config->getPayLaterConfigValue('experience_active');
216216

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
218218
if ($payLaterActive === false) {
219219
unset($this->supportedPaymentMethods['paylater']);
220220
}

0 commit comments

Comments
 (0)