I have a problem with moodle 3.8.1, paypal plugin and paypal enrollment.
I noticed no problem when applying paypal restriction and automatic enrollment to a course.
But I have problem when applying a paypal restriction to a ressource, in my case a quizz.
The payment is well taken into account in paypal admin page. The IPN is stuck retrying. The return to merchant paypal button redirects to the origin page of payment mydomain.com/availability/condition/paypal/view.php?contextid=xx and paypal response is not processed.
IPN and plugins seem well configured as it is working fine for course paypal restriction. So I would think of a code to modify and not a configuration change.
I have tried on custom themes and on classic too with same behavior.
Do you have the same problem ? And a workaround ?