I need help on completing the Paypal enrollment integration. I'm at the final stage of using Paypal with my Moodle course. Everything appears to work except for the final automatic enrollment. I get an email saying "PAYPAL ERROR: Not a valid user id". Anyone know why?
Here are my details:
- Moodle release = '1.9.5+ (Build: 20091007)
- setup the Moodle course with:
> Enrolment Plugins: PayPal
> Default role: Site Default (Student)
> Course enrollable: Yes
> for testing purposes I set the course price to $1
> Administration->Courses->Enrolments: ENABLED PayPal and set as default.
- setup paypal
> have a business account created
> have the IPN URL pointing to the moodle ipn.php file
> charset is set to UTF-8
> created a "buy now" button for $1 to test
- testing process
> on my website, click the "buy now" button
> sends me to Paypal and it all looks good
> I buy as a guest account because it sees me as the seller if I log in and it paypal doesn't let you complete the transaction. So I do it as a guest without a full account created.
> buying process at paypal is successful, get an email and get a link on paypal to send me to moodle
> clicking on the link brings me to the Moodle login page - now I need an account to log in.
> after about 5 minutes I get an email saying "PAYPAL ERROR: Not a valid user id". Looking through the email details, everything looks good. The only things I notice that I'm not sure is an issue or not are:
>> userid => 0
>> courseid => 0
>> payer_status => unverified (I think this is ok as I think it is Paypal's status for accounts; since this was done with a guest account it would be unverified)
Any ideas why I get the "PAYPAL ERROR: Not a valid user id"? Does this have anything to do with paying as a guest account? Am I missing something?