Moodle plugins directory: PayPal | Moodle.org
PayPal
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/
- You may use composer
- or git clone
- or download the latest version from https://github.com/danielneis/moodle-availability_paypal/archive/master.zip
- 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
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.
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.
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.
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.
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.
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
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
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
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".
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.
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
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.
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