From 6f420dc5d07c36d06aeee1e2ca56b0cdcb36f4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 27 Feb 2018 21:38:48 +0100 Subject: [PATCH] MDL-61741 enrol_paypal: Fix the IPN verification endpoint URL IPN protocol spec has different URL for sending the verification request. Better to have it fixed even if the existing value still seems to work - to avoid unexpected surprise in the future. Source: https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNImplementation/#specs --- enrol/paypal/ipn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/paypal/ipn.php b/enrol/paypal/ipn.php index a5b09a543c7..4b6117e0c12 100644 --- a/enrol/paypal/ipn.php +++ b/enrol/paypal/ipn.php @@ -103,7 +103,7 @@ $plugin_instance = $DB->get_record("enrol", array("id" => $data->instanceid, "en $plugin = enrol_get_plugin('paypal'); /// Open a connection back to PayPal to validate the data -$paypaladdr = empty($CFG->usepaypalsandbox) ? 'www.paypal.com' : 'www.sandbox.paypal.com'; +$paypaladdr = empty($CFG->usepaypalsandbox) ? 'ipnpb.paypal.com' : 'ipnpb.sandbox.paypal.com'; $c = new curl(); $options = array( 'returntransfer' => true,