Moodle 3.8 PayPal enrolment Plugin and Moodle Config.php

Moodle 3.8 PayPal enrolment Plugin and Moodle Config.php

by EDUARDO PADRON NAVARRO -
Number of replies: 2

Hi, check along the forum and found various post related with different dates... 

Have a request for information about the Moodle config.php file for Paypal Sandbox.... also can't find in Paypal Sandbox the Instant Payment Notification Preferences to set the notification URL... it is still necessary ?

Saw different  configuration lines to put the Paypal plugin for test with sandbox, which of the next is the actual and valid for Moodle3.8 

About the the notification URL the sintaxis is 

  • http://<yourmoodlesite.com>/enrol/paypal/ipn.php        or this is not required anymore for Paypal.
Thanks in advance and your help will be highly appreciated.
Best Regards


Average of ratings: -
In reply to EDUARDO PADRON NAVARRO

Re: Moodle 3.8 PayPal enrolment Plugin and Moodle Config.php

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

In enrol/paypal/enrol.html there is:

$paypalurl = empty($CFG->usepaypalsandbox) ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';

We see that

  • PayPal and sandbox locations are hardcoded,
  • one can use all variations to enable sandbox (even $CFG->usepaypalsandbox = false;)

R

In reply to Renaat Debleu

Re: Moodle 3.8 PayPal enrolment Plugin and Moodle Config.php

by EDUARDO PADRON NAVARRO -

Hi Renaat

Thanks a lot for your response, tested and works perfectly, set in Moodle the Paypal in config.php and set in sandbox the two accounts.

Right now I can enrol to Moodle, select course and pay with Paypal and get the response from PayPal and get authorization in Moodle to take course.  

Regards