Author Topic: Only allow Check payment on semi-annual or longer billing cycle?  (Read 485 times)

0 Members and 1 Guest are viewing this topic.

Offline mach

  • 1
  • 0
  • New Member
  • *
Only allow Check payment on semi-annual or longer billing cycle?
« on: September 02, 2019, 02:49:09 PM »
Is there a way to force Check payment module to be only available when selecting semi-annual or longer billing cycle?

Offline d4f

  • 130
  • 6
  • Community Managers
  • Active Participant
  • ****
Re: Only allow Check payment on semi-annual or longer billing cycle?
« Reply #1 on: September 06, 2019, 04:11:01 AM »
To the best of my knowledge, Hostbill neither supports that directly nor has any simple method of adding a custom module that does it.
You can influence the /templates/$template/invoice.tpl file directly which shows the online invoice but the template does not contain the expiration date of the service for verification.

I would recommend to limit check payment to payment amounts above X (coinciding with semi-anually payment)  and then using custom Javascript to remove check payment from the template $gateways  if the amount is below that value. It requires some coding but it should work...
The emailed invoice copy is harder to influence though as it doesnt support template language in the email content.