PayPal

Availability restriction ::: availability_paypal
Maintained by Daniel Neis Araujo
An Availability Condition to require a PayPal payment to access activities and resources.
Latest release:
789 sites
279 downloads
74 fans
Current versions available: 4

PayPal Availability Condition

With this plugin you can put a price in any course content and ask for a PayPal payment to allow access.
The person in charge to configure the enrolment method on the course will be able to configure the enrolment cost's value and currency.
The user will be able to pay in some other currency at PayPal website. The conversion rates will be calculated and applied by PayPal.

Install

  • Put these files at moodle/availability/condition/paypal/
  • Log in your Moodle as Admin and go to "Notifications" page
  • Follow the instructions to install the plugin
  • You must set the "Return URL" at PayPal to https://YOURMOODLESITEADDRESS/availability/condition/paypal/ipn.php (this may conflict with Moodle's enrollment PayPal plugin, make sure you use separate apps if you use PayPal enrollment)
  • You must activate the IPN at your PayPal account
  • You must have HTTPS enabled and working on your Moodle site

Usage

This works like the PayPal enrol plugin, but instead of restricting the full course, you can restrict individual activities, resources or sections (and you can combine it with other availability conditions, for example, to exclude some group from paying using and "or" restriction set).

For each restriction you add, you can set a business email address, cost, currency, item name and item number.

Funding

The development of this plugin was funded by TRREE - TRAINING AND RESOURCES IN RESEARCH ETHICS EVALUATION - http://www.trree.org/

Dev Info

Please, report issues at: https://github.com/danielneis/moodle-availability_paypal/issues

Feel free to send pull requests at: https://github.com/danielneis/moodle-availability_paypal/pulls

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Daniel Neis Araujo (Lead maintainer)
David Mudrák: Contributor
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Amruta Jamale
    Thu, 22 Feb 2018, 5:00 PM
    Hi Daniel,

    I have installed this plugin. When I go to pay button below course then the moodle site redirects to PayPal site.. but shows an error as follows :

    Things don't appear to be working at the moment. Please try again later.

    Please help me with this issue.

    Thanks in advance.
  • Daniel Neis Araujo
    Fri, 23 Feb 2018, 1:38 AM
    Hello, Amruta

    you may have something misconfigured. Please take a look if you have enabled the ipn of the paypal's acount and is using https on your site.
  • Amruta Jamale
    Wed, 28 Feb 2018, 6:57 PM
    Hi,
    I am using Moodle 3.2

    Background: I am using the PayPal enrollment plugin. PayPal is initiated by the student and the money transfer and email notifications of success take place on both ends. The course price is $10.00, if it matters.

    Issue: Student clicks the course button from PayPal after completing the transaction and is returned to Moodle with the following error displayed:

    Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course "Interactive programming". Please try continuing to the course in a few seconds, but if you continue to have trouble then please alert the Teacher or the site administrator.

    Clicking the continue button only returns to the course screen in moodle with the PayPal payment button. Student is not enrolled.

    Any help would be greatly appreciated.
  • Daniel Neis Araujo
    Thu, 1 Mar 2018, 3:41 AM
    Hello, Amruta

    are you using the credit card payment method on paypal? Are you using the sandbox or the actual production site of paypal? In the sandbox you may have to approve the transactions manually so that they are accepted by Moodle.
  • Harshit k
    Wed, 7 Mar 2018, 1:11 PM
    I faced the same problem similar to one of the users here which is ""Hi,
    I am using Moodle 3.2

    Background: I am using the PayPal enrollment plugin. PayPal is initiated by the student and the money transfer and email notifications of success take place on both ends. The course price is $10.00, if it matters.

    Issue: Student clicks the course button from PayPal after completing the transaction and is returned to Moodle with the following error displayed:

    Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course "Interactive programming". Please try continuing to the course in a few seconds, but if you continue to have trouble then please alert the Teacher or the site administrator.

    Clicking the continue button only returns to the course screen in moodle with the PayPal payment button. Student is not enrolled.

    Any help would be greatly appreciated.""

    I used sandbox account for testing, but how do i approve the payments transaction.
  • Stuart Blake
    Wed, 21 Mar 2018, 1:59 PM
    Hi everyone, we ran into a bug with the plugin where trying to restrict by activity or section would not save the Edit Settings page properly, and say "You must provide a business email. You must provide a cost and it must be greater than 0. You must provide an item name. You must provide an item number. "

    One workaround we figured out (and it took a while) was to simply add another restriction in. Any restriction will work, including a Date restriction from today onwards. The page will then save properly, the restriction is added, and all is well smile

    One further bug, however, is that the "Restrict Access" section of the edit page is now empty, so you can't make further edits. Get it right the first time though and there's no issue, since it functionally works perfectly (I tested with 1c tests).

    Hope that helps someone smile
  • Ruan Botes
    Wed, 18 Apr 2018, 8:13 AM
    So I have a question. I have looked at the form and moodle to see if I can get the answer but I have not been too successful. I have the plug in for PayPal and the eye is open. I have disabled guest access as I read I cant have paid for courses at the same time. I need to configure some things in PayPal which is proving to be more difficult than I thought. What I really want to know is:
    If learners enroll using PayPal as a method so they pay before they get access is it possible for learners to be automatically be enrolled onto the course without any input from anyone else but just by clicking on the PayPal button?
    The other thing that I would like to know is can leaners be automatically unenrolled from the course once completed?

    The next question is not a PayPal one but rather a data capturing one. I want to know if the site allows guest access is there a way of cracking how many people have logged in to look at what is available?

    Thanks I appreciate any assistance. I have only been working with Moodle for a short while.

    Ash
  • Daniel Neis Araujo
    Thu, 3 May 2018, 1:58 AM
    Hello, Ruan

    when the student clicks the PayPal button he/she will be redirected to paypal site, then will confirm the purchase then, and will finally be redirect to the corresponding activity, without need for anyone else to do anything.
    there is no way to automatic unenrol user from course when completed. it would be bad for analytics. but you can suspend the enrolment.

    you can take a look at the guest's logs if you configure your moodle to do so (it does it for default). look for "log guest access".
  • Melvyn Gomez
    Tue, 15 May 2018, 6:47 AM
    What happen when an user has paid and the PayPal admin do a refund? the user must not be able to see the content?
  • Daniel Neis Araujo
    Wed, 16 May 2018, 8:54 PM
    If the admin does a refund at PayPal website, he/she will also need to manually unenrol the user.
  • Madhukar Reddy
    Sat, 21 Jul 2018, 7:54 PM
    Hi Daniel, i have configured paypal enrollment procedure as mentioned on moodle paypal integration document, also modified setting on paypal account same, but when i click on send paypal payment, it is showing error like : Things don't appear to be working at the moment. Please try again later. can you please help me to resolve my issue
  • Daniel Neis Araujo
    Mon, 23 Jul 2018, 10:53 PM
    Hi, Madhukar

    the enrol plugin is part of Moodle, you may look at the general developers forum to get support.
    But if your problem is with the availability condition, it may be that there is some information you mistyped when configuring the plugin. Aslo, paypal requires your site to be under SSL/HTTPS to work.
  • Yannick Vrolant
    Mon, 3 Sep 2018, 7:38 PM
    Hi,

    Is it possible to have end-users select their preferred currency among a list of several currencies (e.g. US dollar, Euro...) as they pay to enrol in a course ?

    Thanks for helping,
    Best,

    Yannick
  • Daniel Neis Araujo
    Mon, 3 Sep 2018, 8:14 PM
    Hi,

    the person in charge to configure the enrolment method on the course will configure the cost's value and currency.
    At paypal, user will be able to pay in some other currency and the conversion rates will be calculated and applied by Paypal.
  • Shriram Joshi
    Fri, 7 Sep 2018, 3:36 PM
    Hi Daniel

    It's a great utility for moodle and I must appreciate efforts by the team

    I am having my Moodle 3.5 Hosting on AWS through Bitnami Moodle stack.
    Site is configured to work on HTTPS and is associated with elastic IP and public domain.
    Domain is registered with Godaddy.

    Everything working fine.............
    Site URL is - https://learncomputeronline.in

    I had my PayPal business account in India and is absolutely clear in terms of all commercial and technical requirements.

    For last three weeks, I am struggling to have my course payment made through PayPal.
    PayPal button on Cours Page successfully takes me to my PayPal payment page but after giving details though my PayPal account or even with any credit or debit card........payment was not getting successfully processed. IT use to give error - "We can not process your payment this time. Please go back to your merchant site and try to pay with some alternate payment method."

    I raised this concern to may agencies.........Including Forum of Moodle, Forum of Bitnami etc.

    Later on Moodle's technical coordinator helped me with trying payment to one of my Course "TYBom IT" which i purposefully kept at just 0.10 USD.

    Surprisingly Her payment went through smoothly and I got entry of her payment in My PayPal account as successfully. Even she got the enrolment to course also as expected by this integration.

    So I wondered what's going wrong with me when I am trying to make payment for same scenario.

    Few things then noted are mentioned here .......

    When I used to submit for payment, address bar of browser displays one PayPal error code at the end of URL.........

    checkout/genericError?code=UEFZRVJfQ0FOTk9UX1BBWQ%3D%3D



    I searched through this error code in google.

    Then I found below forum link where all people facing similar error from pay pal for various applications they hosted in which currency was not Indian Rs - INR and all of them were having PayPal account in India and all of them trying to get money form their Indian cusotmers only but in USD.

    https://github.com/braintree/braintree-android-drop-in/issues/53



    This forum implies that there is regulation or restriction in India..........that PayPal can not receive or process any payment from Indian Customers in any other currency other than INR.

    This is the reason............PayPal could process Moodle technical coordinator's payment in USD since she was not from India.

    But it ultimately rejected my all payments because I was from India.



    Even though PayPal has officially started with Indian currencies from 1st March 2018 this year, they still seems to be bounded by this regulation act.

    So there seems to be no way if i had account of PayPal in India..............I will not be able to accept payment from Indian Customers.

    Unless Moodle's PayPal plugin provides INR currency in PayPal configuration screen.



    There is option that I should Create specific payment button in PayPal to accept Indian payment and include the same in my Moodle's course page. This will resolve my problem of getting payment from Indian customers..............but then it will not register user to course.

    in fact there is option in configuring this button to specify INP URL which I can do ............but then I need to know the Specific attribute variables that need to pass to that URL.



    Can you gibe me exact nature of Attribute variables that should get passed through PayPal IPN notification in normal case..........so that same i can try to configure in my custom PayPal button.

    Or it will be simple if you can release the new version of PayPal plugin with INR as in built currency option.

    Please support,

    Shriram
Please login to post comments