From 797a55360928221b07ceeb6cf179b4a8a7e9b6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 23 Oct 2020 22:01:23 +0200 Subject: [PATCH] Update paypal.lib.php --- htdocs/paypal/lib/paypal.lib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php index 18ebce49479..f0833fd5f3e 100644 --- a/htdocs/paypal/lib/paypal.lib.php +++ b/htdocs/paypal/lib/paypal.lib.php @@ -477,7 +477,7 @@ function getDetails($token) * @param string $ipaddress IP Address * @param string $FinalPaymentAmt Amount * @param string $tag Full tag - * @return void + * @return array */ function confirmPayment($token, $paymentType, $currencyCodeType, $payerID, $ipaddress, $FinalPaymentAmt, $tag) { @@ -657,8 +657,7 @@ function hash_call($methodName, $nvpStr) dol_syslog("Paypal API hash_call Response nvpresp=".$response); $nvpResArray = deformatNVP($response); - if (curl_errno($ch)) - { + if (curl_errno($ch)) { // moving to display page to display curl errors $_SESSION['curl_error_no'] = curl_errno($ch); $_SESSION['curl_error_msg'] = curl_error($ch);