Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
9e0817ac
Commit
9e0817ac
authored
9 years ago
by
Frédéric France
Browse files
Options
Downloads
Patches
Plain Diff
Update paypal.lib.php
parent
9d0f096e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/paypal/lib/paypal.lib.php
+2
-4
2 additions, 4 deletions
htdocs/paypal/lib/paypal.lib.php
with
2 additions
and
4 deletions
htdocs/paypal/lib/paypal.lib.php
+
2
−
4
View file @
9e0817ac
...
...
@@ -702,10 +702,8 @@ function hash_call($methodName,$nvpStr)
exit;*/
curl_setopt
(
$ch
,
CURLOPT_URL
,
$API_Endpoint
);
curl_setopt
(
$ch
,
CURLOPT_VERBOSE
,
1
);
//curl_setopt($ch, CURLOPT_SSLVERSION, 3); // unsecure, no more accepted
curl_setopt
(
$ch
,
CURLOPT_SSLVERSION
,
1
);
// Force TLSv1
// After 14 january 2016 paypal will accept tls v1.2 and no more tls v1
//curl_setopt($ch, CURLOPT_SSLVERSION, 6); // Force TLSv1.2
// TLSv1 by default or change to TLSv1.2 in module configuration
curl_setopt
(
$ch
,
CURLOPT_SSLVERSION
,
(
empty
(
$conf
->
global
->
PAYPAL_SSLVERSION
)
?
1
:
$conf
->
global
->
PAYPAL_SSLVERSION
));
//turning off the server and peer verification(TrustManager Concept).
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment