Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ipnlistener.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
class IpnListener {

/**
* If true, the recommended cURL PHP library is used to send the post back
* to PayPal. If flase then fsockopen() is used. Default true.
* If true, the recommended cURL PHP library is usedto send the post back
* to PayPal. If flase or curl is not available then fsockopen() is used. Default true.
*
* @var boolean
*/
Expand Down Expand Up @@ -279,7 +279,7 @@ public function processIpn($post_data=null) {
}
}

if ($this->use_curl) $this->curlPost($encoded_data);
if ($this->use_curl && function_exists('curl_version')) $this->curlPost($encoded_data);
else $this->fsockPost($encoded_data);

if (strpos($this->response_status, '200') === false) {
Expand Down