Payment Gateway Fee Configuration

  • Ryan Wildauer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 6 months ago #69574 by Ryan Wildauer
Payment Gateway Fee Configuration was created by Ryan Wildauer
I would like to set the default option to yes on the PayPal gateway fee. What is the easiest way to accomplish this?

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

More
8 years 6 months ago #69587 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment Gateway Fee Configuration
Hi Ryan

You will need to edit small code. Open the file components/com_jdonation/view/donation/html.php (or components/com_jdonation/views/donation/view.html.php if you are using old version), find the code below:
Code:
if ($config->pay_payment_gateway_fee) { $lists['pay_payment_gateway_fee'] = JHtml::_('select.booleanlist', 'pay_payment_gateway_fee', ' class="inputbox" ', $input->getInt('pay_payment_gateway_fee', 0)) ; }

2. Change it to:
Code:
if ($config->pay_payment_gateway_fee) { $lists['pay_payment_gateway_fee'] = JHtml::_('select.booleanlist', 'pay_payment_gateway_fee', ' class="inputbox" ', $input->getInt('pay_payment_gateway_fee', 1)) ; }

After that, it should work as expected

Tuan

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

Moderators: Mr. DamDũng Nguyễn Việt