Looking at your original code, I’d say you need to add the sslverify
arg.
And on a side note, use the HTTP functions available, rather than instantiating the class yourself (you shouldn’t have to load the class manually).
wp_remote_post( $url, array(
'sslverify' => false, // this is true by default!
'body' => array(
'METHOD' => $methodName, // if you're using an array, no need to URL encode
'VERSION' => $version,
'PWD' => $API_Password,
'USER' => $API_UserName,
'SIGNATURE' => $API_Signature
)
) );
Related Posts:
- Where are “My Selling Tools”, “Website preferences”, and “Instant payment notifications” in new Paypal website?
- Plugins to Enable Subscriptions of Digital Assets?
- paypal buynow button integration with wordpress for digital download
- Update the value of a constant
- Processing Forms with Paypal Framework plugin
- Redirect user if the referrer is not PayPal related
- Paypal buttons disappear in the text editor
- Hidden Inputs for Paypal adding Whitespace
- Accept donations to a nonprofit [closed]
- What is the difference between POST and PUT in HTTP?
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Use of PUT vs PATCH methods in REST API real life scenarios
- Do I need Content-Type: application/octet-stream for file download?
- application/x-www-form-urlencoded or multipart/form-data?
- application/x-www-form-urlencoded or multipart/form-data?
- How to do a PUT request with cURL?
- What does HTTP/1.1 302 mean exactly?
- Error: No default engine was specified and no extension was provided
- Significance of port 3000 in Express apps
- How to solve javax.net.ssl.SSLHandshakeException Error?
- Uri not Absolute exception getting while calling Restful Webservice
- HTTP GET with request body
- urllib2.HTTPError: HTTP Error 403: Forbidden
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- WebException (Status: Protocol Error)
- Response Content type as CSV
- Are HTTP headers case-sensitive?
- Simple HTTP server in Java using only Java SE API
- Https to http redirect using htaccess
- Paypal IPN Verification Postback with HTTPS
- HTTP status code 0 – Error Domain=NSURLErrorDomain?
- Hiding WordPress REST API v2 endpoints from public viewing
- Prevent WordPress from sending Cache-control http header
- How to change or add Woocommerce thank you page URL key content?
- Init action hook running late after PayPal’s return url?
- Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files
- Does WordPress only support HTTP 1.1?
- force http canonical tag on https pages
- How can I use CURLOPT_USERPWD in wp_remote_post?
- Programmatically log in a wordpress user
- Upgrade to SSL Breaks Admin Dashboard
- Redirect www to non-www htaccess
- Submitting post to database then redirecting to paypal
- How are both HTTP and HTTPS versions displaying?
- Conference ticketing and seating module for WordPress [closed]
- Payment on Registration?
- HTTP Header on specific page is application instead of text
- Plugin to book course and pay online for it
- Can I use HTTP POSTs? Is there a better alternative?
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Can’t login to Dashboard when changing site URL to HTTPS
- Using wp-cron in backpress – problems with wp_remote_post, fsockopen error
- wordpress api using rest_route for other pages
- Is there an equivalent to WP_Error object I can return in the case of a successful REST request?
- Enable CORS in wordpress
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- How to use https on one page only?
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- How to put Stripe first, PayPal second on the checkout page?
- How to get value of custom http header?
- Several times request to load plugins when sending one request
- How to make my site use HTTPS for images or how to insert images as relative paths?
- 404/500 error on content images if Referer header is from another domain [closed]
- How to create a digital product download link that can’t be used twice?
- Implementing a URL Shortener
- Last-Modified header support doesnât speed up server processing – want more
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- Need workaround for insecure XMLHttpRequest endpoint request
- What is this HTTP_REFERRER “WordPress/4.1.2”
- Making the ‘add to cart’ button redirect to PayPal
- Looking for a PayPal donation plugin similar to JoomDonation [closed]
- Paypal Framework
- Set the payment processor callbacks to a plugin
- Reading URL Parameters
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- how to complete order status automatically after paypal payment received
- How exactly does WordPress load themes from api.wordpress.org?
- Configure WordPress to listen on a port other than 80
- How to switch static files back to using HTTP instead of HTTPS?
- Paypal not converting currency when using Gravity Forms on WordPress
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- CSS/JS is not working in multi lang installation
- What is the proper way to embed the HTML of an external form such as payflowlink from paypal?
- Does WordPress perform better with curl installed?
- Any idea on how to fix this error when forcing SSL on a certain page?
- Random HTTP 500 error in WordPress
- Nice font not working when http to https – SSL Issue
- Plugin recommendation for directory site [closed]
- What is the easiest and cheapest way to sell a download on my website? [closed]
- What’s the point in having “www” in a URL?
- How to reply with 200 from Nginx, without serving a file?
- How to list Apache enabled modules?
- How do high traffic sites service more than 65535 TCP connections?
- Best way to redirect all HTTP to HTTPS in IIS
- Image file urls still point to http instead of https
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- PayPal button not showing and cannot retrieve order error in PayPal
- How do I make the block editor use https by default?