CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Option to specify start date in recurring contributions
Pages: [1]

Author Topic: Option to specify start date in recurring contributions  (Read 966 times)

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Option to specify start date in recurring contributions
March 04, 2011, 03:14:59 am
Hi everyone,

I am developing a payment processor which is able to take recurring payments. As of now, i am using the contribution date as the date of the first recurring payment and i am calculating the fore coming payment dates using the frequency unit and interval.

But the users need to specify a start date to make their first payment and the fore coming payment dates can be calculated using the frequency unit and interval.

I used hook_civicrm_buildForm to inject the start date field to the contribution form. But i cant save the start date to the contribution record using hook_civicrm_postProcess, as i dont have any contribution id(because the next page is the confirmation page), as contribution record is not created at that point.

Any other idea how to do this?

I would appreciate any advice.

Thanks.

- Rajesh
« Last Edit: March 04, 2011, 03:18:56 am by rajesh »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Option to specify start date in recurring contributions
March 04, 2011, 03:57:42 am
Have you tried using membership? For a recurring contribution, seems to fit better.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: Option to specify start date in recurring contributions
March 04, 2011, 04:04:52 am
Hi xavier

The contributions are mostly donations. But the user must be able to specify the date of their first payment when making recurring contributions.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Option to specify start date in recurring contributions
March 06, 2011, 10:25:12 pm
might be non trivial, since we do process first installment at the same time of signup.

seems to be good addition feature, It would be great if you file an new issue and attached patch.

you get some reference from offline pledge ( contact tab -> pledge, here we could have enough flexibility on installments ) 

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Option to specify start date in recurring contributions

This forum was archived on 2017-11-26.