ipn-code-samples icon indicating copy to clipboard operation
ipn-code-samples copied to clipboard

Update PHP to allow caller to set curl options

Open tzs opened this issue 6 years ago • 1 comments

Many production environments restrict outgoing network access on their servers that deal with payments, only allowing such access through proxies that vet the destinations before allowing access. This patch provides an option for the caller of verifyIPN() to provide the curl object for verifyIPN() to use instead of allocating its own curl object. This allows the caller to set any proxy options, or other options, that may be required in order to allow the connection back to Paypal to work.

tzs avatar Jul 25 '18 00:07 tzs

phpDocumentor comments added. The description for __construct seems awkward, but I could not think of anything better.

tzs avatar Jul 25 '18 16:07 tzs