Skip to content

Commit dfa7d6d

Browse files
committed
MAGETWO-57855: Outdated PayPal URL
1 parent d323ecb commit dfa7d6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,9 @@ public function isOrderReviewStepDisabled()
866866
*/
867867
public function getExpressCheckoutStartUrl($token)
868868
{
869-
return $this->getPaypalUrl(['cmd' => '_express-checkout', 'token' => $token]);
869+
return sprintf('https://www.%spaypal.com/checkoutnow/2%s',
870+
$this->getValue('sandboxFlag') ? 'sandbox.' : '',
871+
'?token=' . urlencode($token));
870872
}
871873

872874
/**

0 commit comments

Comments
 (0)