Donation Type

  • Bill Haslam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago - 2 years 5 months ago #146900 by Bill Haslam
Donation Type was created by Bill Haslam
Hi Mr. Dam,
Our donors can choose to make regular payments but only monthly or yearly (as well as one payment).  I have set the parameters for monthly and annually in the config setup (see screen shot below) but left it blank in the setup of the campaign config pages as is suggested.  However on the online donation form the radio buttons to allow the donor to select once-off or regular payment, become invisible once I select the campaign on this page.  Please can you help me - is there an additional setting somewhere that I should be aware of?

Also am I able to change the default from the 'once-off' option to 'regular payments'?

Regards,
Bill
Attachments:
Last edit: 2 years 5 months ago by Bill Haslam.

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

More
2 years 5 months ago #146908 by Mr. Dam
Replied by Mr. Dam on topic Donation Type
Hi Bill,
The Donation type (One time, Recurring) will also depend on selected Payment gateway. If the selected payment gateway doesn't support recurring payment, the Donation type won't show anymore.
Currently, there are some payment options support recurring
- Paypal
- Paypal Pro
- Authorize.net
- Stripe
- Stripe Checkout
- iDeal Mollie
Thanks
Dam

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

  • Bill Haslam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #146916 by Bill Haslam
Replied by Bill Haslam on topic Donation Type
Thanks Dam.
We are using PayFast which we bought from you. I have checked their site and they do support regular payments. I have changed the settings on the PayFast site and accepted by PayFast. This doesn't solve the problem, though. Is there something else I have to do? Does your plugin for PayFast support regular payments?
Thanks,
Bill

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

More
2 years 5 months ago #146919 by Mr. Dam
Replied by Mr. Dam on topic Donation Type
Hi Bill,
Currently, the JD Payfast doesn't support recurring donation. That's the reason the Donation type options aren't show.
Thanks
Dam

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

  • Bill Haslam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago - 2 years 5 months ago #146950 by Bill Haslam
Replied by Bill Haslam on topic Donation Type
Hi Dam,

OK, I have changed to PayPal and it works.

Just one small point - how do I change the default option from "Once Only" to "Recurring".  If you give me the place where I can find the source code, I can do an override.

Many thanks for your help.

Regards,
Bill
Last edit: 2 years 5 months ago by Bill Haslam.

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

More
2 years 5 months ago #146966 by Mr. Dam
Replied by Mr. Dam on topic Donation Type
Hi Bill,
You can find code in file: root -> components -> com_jdonation -> view -> donation -> html.php
Code:
$options = array(); $options[] = JHtml::_('select.option', 'onetime', JText::_('JD_ONETIME')) ; $options[] = JHtml::_('select.option', 'recurring', JText::_('JD_RECURRING')) ; $lists['donation_type'] = JHtml::_('select.radiolist', $options, 'donation_type', ' class="form-select" onclick="changeDonationType();" ', 'value', 'text', $donationType);

Thanks
Dam

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

  • Bill Haslam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #146974 by Bill Haslam
Replied by Bill Haslam on topic Donation Type
Thanks Dam. However, this isn't where one can set the checked status of the default option on the radio list. Is that perhaps part of the class JHtml, and if so where would I find it?

Regards,
Bill

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

More
2 years 5 months ago #146977 by Mr. Dam
Replied by Mr. Dam on topic Donation Type
OK, in that file, please change this line:
Code:
$donationType = $input->get('donation_type', 'onetime', 'string');
and change by
Code:
$donationType = $input->get('donation_type', 'recurring', 'string');

Good luck
Dam
The following user(s) said Thank You: Bill Haslam

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

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