[Solved] paypal

13 years 4 months ago 13 years 4 months ago by Chris.
andrew
Posts: 12
More
Topic Author
[Solved] paypal #1
hi

need some help, i have set a course up for enrollment via paypal, it works fine in moodle, but from joomdle it charges in $ not £ as it should and also once complete payment ios processed but no moodle enrollment. I have checked in moodle and works fine as an enrollment just within moodle but from joomla using a pay by paypal menu option from joomdle it is as above.

paypal indicated it could be the ipn file not allowing currency other than $ but if this was the case then surley it wouldn't work within moodle.

any help appreciated.

cheers

andy

Please Log in or Create an account to join the conversation.

13 years 4 months ago
Antonio Durán
Posts: 7815
More
[Solved] paypal #2
Hi there.

It seems not many people are using this feature, as I just looked at the code and found the explanation for your problem: it's hardcoded to use USD :(
I will try to fix it for next releaase (get currecy from Moodle)

If you are only using £, I think you can make a temp fix. Edit components/com_joomdle/views/buycourse/tmpl/default.php, and look for this line:
<input type="hidden" name="currency_code" value="USD" />

Just change by:
<input type="hidden" name="currency_code" value="GBP" />

Please, let us know if this solves your problem.

Please Log in or Create an account to join the conversation.

13 years 4 months ago
Antonio Durán
Posts: 7815
More
[Solved] paypal #3
Hi again.

The real fix is easy too. Just use this line instead:
<input type="hidden" name="currency_code" value="<?php echo $course_info; ?>" />

Thanks for the bug report!

Please Log in or Create an account to join the conversation.

13 years 4 months ago
andrew
Posts: 12
More
Topic Author
[Solved] paypal #4
ok fantastic that works fine but it is still not enrolling the person in the course, it wont redirect to the course and it doesn't enrol the user to the course.

help please

Please Log in or Create an account to join the conversation.

13 years 4 months ago
Antonio Durán
Posts: 7815
More
[Solved] paypal #5
Check your IPN logs in Paypal for any hints.

Please Log in or Create an account to join the conversation.