Especial:Badtitle/NS100:Enrolment plugins: diferència entre les revisions
De MoodleDocs
Línia 3: | Línia 3: | ||
* create a paypal developer account at https://developer.paypal.com/cgi-bin/devscr?cmd=_home | * create a paypal developer account at https://developer.paypal.com/cgi-bin/devscr?cmd=_home | ||
* change the address being used to send data to paypal to use the sandbox. in enrol/paypal/enrol.html: | * change the address being used to send data to paypal to use the sandbox. in enrol/paypal/enrol.html: | ||
* * change the form post action to be https://www.sandbox.paypal.com/cgi-bin/webscr instead of https://www.paypal.com/cgi-bin/webscr | ** change the form post action to be https://www.sandbox.paypal.com/cgi-bin/webscr instead of https://www.paypal.com/cgi-bin/webscr | ||
* change the address that is used to check the acknowledgment from paypal. in enrol/paypal/ipn.php, change: | * change the address that is used to check the acknowledgment from paypal. in enrol/paypal/ipn.php, change: | ||
** $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); | ** $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); |
Revisió del 14:46, 12 set 2006
Testing paypal using the paypal developer sandbox (for moodle 1.6)
- create a paypal developer account at https://developer.paypal.com/cgi-bin/devscr?cmd=_home
- change the address being used to send data to paypal to use the sandbox. in enrol/paypal/enrol.html:
- change the form post action to be https://www.sandbox.paypal.com/cgi-bin/webscr instead of https://www.paypal.com/cgi-bin/webscr
- change the address that is used to check the acknowledgment from paypal. in enrol/paypal/ipn.php, change:
- $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
- to
- $fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);
- create a couple of user accounts in the paypal sandbox and test enrolling in a course that requires payment (note that you need to be logged into the paypal sandbox while doing this testing)
See also
- Enrolment plugins (administrator)
- Using Moodle Enrolment Plugins forum