Paypal Echeck

Paypal Echeck

by Marva Thompson -
Number of replies: 2
There is alot of info out there but can someone please tell me how to prevent immediate access into a course when a person pays on
Paypal with a echeck. for Moodle 1.9.3
Average of ratings: -
In reply to Marva Thompson

Re: Paypal Echeck

by Alan Barrett -

It would be possible to change line 104 in enrol/paypal/ipn.php from

            if ($data->payment_status == "Pending" and $data->pending_reason != "echeck") {

To

            if ($data->payment_status == "Pending") {

This would mean the person who paid using echeck would not be enrolled and you could manually enrol them later.

The code would seem, in this case, to send the site administrator and the user an e-mail briefly telling them that the payment is pending (it does not say why, although it could be made to say that). The user will also get a message when they return from Paypal to Moodle saying "Thank you for your payment!  Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course XXX.  Please try continuing to the course in a few seconds, but if you continue to have trouble then please alert the XXX-teacher or the site administrator" That text could also be changed if you want to clarify for you user what is happening.

    Alan.

In reply to Marva Thompson

Re: Paypal Echeck

by Ronald Wagner -
The other alternative is to not accept echecks. You can change this setting in Paypal under Selling Preferences > Payment Receiving Preferences. Check the box that says block echeck payments. rw