- Posts: 5
- Thank you received: 0
Add extra fee when using PayPal
- Pieter77
- Topic Author
- Offline
- New Member
-
I would like to add an extra fee (let say + €5) to the total amount when users pay with PayPal. I think i'll have to edit the os_paypal.php somewhere, but i'm not sure what to change...
Can you help me what tot edit?
Thanks!
Pieter
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
I replied to Pieter's questions via support ticket. Here is the answer again in case someone has the same need :
1. Open the file components/com_pmform/payments/os_paypal.php
2. Find the code below :
3. Change it to :
After that, it will work as expected.
Tuan
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0
Can we not add a field in "Fields management" that can add an amount or percent to the amount the user enters in the form?
Thanks!!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
Yes. When you upgrade, the change will be lost. However, you can edit the code easily to add it back (just one or two minutes). I will consider adding support for this feature in future release (maybe there will be a new parameter in the Paypal plugin which allows you to specify the extra amount) .
Tuan
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0
The time to update it is not an issue - but when you have many other things to do you may forget - that's what I'm afraid of.Yes. When you upgrade, the change will be lost. However, you can edit the code easily to add it back (just one or two minutes).
This would be EXTREMELY appreciated.I will consider adding support for this feature in future release (maybe there will be a new parameter in the Paypal plugin which allows you to specify the extra amount) .
Thanks!!
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0
Thanks!!
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0
Thank you!!
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0
If I want to add a percentage rather than an amount, how do I add that?
Thanks!
Please Log in or Create an account to join the conversation.
- MyWorld
- Offline
- Elite Member
-
- Posts: 189
- Thank you received: 0

Thanks!!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
You will need to use the code below:
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.