Skip to content

Commit

Permalink
MDL-61741 enrol_paypal: Fix the IPN verification endpoint URL
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mudrd8mz committed Mar 23, 2018
1 parent c684683 commit 6f420dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/paypal/ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
$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,
Expand Down

0 comments on commit 6f420dc

Please sign in to comment.