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 (Moderator: Donald Lobo) »
  • Allowing Individual to make payment for a household pledge
Pages: [1]

Author Topic: Allowing Individual to make payment for a household pledge  (Read 1078 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Allowing Individual to make payment for a household pledge
January 22, 2011, 10:48:18 pm
I have modified the user's self-service dashboard so that it shows all their pledges, as well as any pledges for related contacts that they have permission to. ( In this case, their household and their spouse )  The correct information is displayed.

However, the "make payment" hyperlink for each pledge:
http://mygroup.org/civicrm/contribute/transact?reset=1&id=1&pledgeId=2

only works for their own pledges.  If I click this link for my household pledge, then I get the error message:

Sorry. A non-recoverable error has occurred.
Oops. It looks like you have an incorrect or incomplete link (URL). Please make sure you've copied the entire link, and try again. Contact the site administrator if this error persists.

Any ideas? How can I allow the individual to make a payment for their household?

« Last Edit: January 22, 2011, 10:51:33 pm by sgladstone »
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 06:46:06 am

i suspect you will need to use either:

* permissioned relationship (not sure if the contribution pages allow this)

* checksum tokens (pretty sure contribution pages support this)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 03:04:08 pm
The contact already has a permissioned relationship with their household.  (I only list the pledges for permissioned contacts via relationships. If there was no permission, then I do not list the pledge at all. )

How would I use checksums to solve this issue?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 04:15:16 pm
In this situation, only the following scenario needs to work:

1) end-user logins to Drupal

2) end-user clicks on their dashboard, http://ohrkodesh.org/civicrm/user?reset=1&id=2

3) All pledges for the end-user, as well as their permissioned contacts ( ie their household, spouse and children) are listed, along with the "Make Payment" link for each pledge.

4) user can click the "make payment" link to make a pledge payment.


Nothing is being emailed out, so I am not sure how a checksum would work.

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 05:33:32 pm

do we display pledges in the end user dashboard? (i dont think so)

You'll need to do this via a hook. since you are generating links dynamically in the hook (if you do this), you can potentially also generate a checksum link dynamically that the person can click on

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 05:40:39 pm
What should the "Make Payments" hyperlink look like?

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 06:11:05 pm

something like

civicrm/contribute/transact?reset=1&OTHER PARAMS HERE&cid={contact.contact_id}&{contact.checksum}

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Allowing Individual to make payment for a household pledge
January 23, 2011, 07:48:32 pm
I adjusted the url per your suggestions to:


http://mygroup.org/civicrm/contribute/transact?reset=1&id=35&cid=33479&pledgeId=8701&0b62a833069bf8cb760a3fd2db5fa673_1295840651_168

But I got the same error message as before.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Allowing Individual to make payment for a household pledge
January 24, 2011, 08:05:30 am

try:

http://mygroup.org/civicrm/contribute/transact?reset=1&id=35&cid=33479&pledgeId=8701&cs=0b62a833069bf8cb760a3fd2db5fa673_1295840651_168

If that does not work, u'll need to dig into the code and figure out whats happening.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Allowing Individual to make payment for a household pledge

This forum was archived on 2017-11-26.