Paypal in Moodle 1.9.7 Not Enrolling User + Not updating db

Re: Paypal in Moodle 1.9.7 Not Enrolling User + Not updating db

by Jason C -
Number of replies: 0

I have discovered the problem here.

strcmp was not correctly returning 0 after reading through Paypals verification response.

changing from strcmp to strpos has fixed the problem. 

ex. 

if ((strpos($result, "VERIFIED")) !== false) {