Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Removed redundant code #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
10 changes: 4 additions & 6 deletions ipnlistener.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,12 @@ class IpnListener {
* @param string The post data as a URL encoded string
*/
protected function curlPost($encoded_data) {

if ($this->use_ssl) {
if ($this->use_ssl)
$uri = 'https://'.$this->getPaypalHost().'/cgi-bin/webscr';
$this->post_uri = $uri;
} else {
else
$uri = 'http://'.$this->getPaypalHost().'/cgi-bin/webscr';
$this->post_uri = $uri;
}

$this->post_uri = $uri;

$ch = curl_init();

Expand Down