Skip to content
Snippets Groups Projects
Unverified Commit 762e29da authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #18993 from giant-rabbit/153-fix-paypal-redirect

financial#153 Fix redirect to PayPal
parents 07340f39 39110928
Branches
Tags
No related merge requests found
......@@ -843,9 +843,10 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
}
$this->_component = $params['component'];
$token = $this->setExpressCheckOut($params);
$siteUrl = rtrim($this->_paymentProcessor['url_site'], '/');
return [
'pre_approval_parameters' => ['token' => $token],
'redirect_url' => $this->_paymentProcessor['url_site'] . "/cgi-bin/webscr?cmd=_express-checkout&token=$token",
'redirect_url' => $siteUrl . "/cgi-bin/webscr?cmd=_express-checkout&token=$token",
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment