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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • Checksum feature for contribution pages
Pages: [1]

Author Topic: Checksum feature for contribution pages  (Read 2675 times)

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Checksum feature for contribution pages
February 04, 2009, 08:47:02 am
Hello. I am trying to test this feature in 2.2 but can't get it to work. http://issues.civicrm.org/jira/browse/CRM-3853

I've tried different paths such as: /civicrm/contribute/transact?reset=1&id=1&c={contact.checksum}&cid={contact.contact_id}

Or: civicrm/contribute/transact?reset=1&id=1&c={contact.checksum}&id={contact.contact_id}

And: civicrm/contribute/transact?reset=1&id=1&c{contact.checksum}&id={contact.contact_id}

And: civicrm/contribute/transact?reset=1&id=1&{contact.checksum}&{contact.contact_id}

But none of them work, they either just go to the contribute page with no info filled in for anonymous users or it gives me the error of page not available.

Has anyone else tried this feature yet? I would love to hear how to make it work.
Thanks
Tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

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: Checksum feature for contribution pages
February 04, 2009, 10:29:59 am

from looking at the code, can you try:

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

basically the end url should look like:

civicrm/contribute/transact?reset=1&id=1&cs=XXXXXXXXX&cid=YYYY

id  - id of contribution page
cid - contact id

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Checksum feature for contribution pages
February 04, 2009, 11:52:47 pm
umm - assuming this is to go in a civimail - beg to differ but think this is what you need and note the c before the {contact.checksum}   /civicrm/contribute/transact?reset=1&id=XX&c{contact.checksum}
« Last Edit: February 05, 2009, 09:50:32 am by peterd »
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Checksum feature for contribution pages
February 05, 2009, 08:17:01 am
Actually, lobo was right. It works with the path he notes: civicrm/contribute/transact?reset=1&id=1&{contact.checksum}&cid={contact.contact_id}

thanks so much lobo! And to Chris for submitting this great feature!
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Checksum feature for contribution pages
February 05, 2009, 09:55:33 am
Good to hear - which makes me wonder why ours worked - especially when we thought there was the crucial step of including the 'c' if the checksum was taking people to contribution pages rather than just profiles.

Lobo - can you clarify - have changes happened in 2.1/2.2 that means the construction of these has changed, or just that I have got the wrong end of the stick (again).
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Checksum feature for contribution pages
February 05, 2009, 10:06:58 am

i think we worked with chris to hack it in and then cleaned it up and made it a bit saner in 2.1 (or 2.2)

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

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Checksum feature for contribution pages
February 05, 2009, 12:01:05 pm
I haven't tested this yet on 2.1 or 2.2, but I can confirm that in 2.0 we used "cid" instead of "id" because we needed to have different ID values for Contacts and Contribution pages.

http://forum.civicrm.org/index.php/topic,4723.msg21668.html#msg21668

Where my patch has been merged into core, the CiviCRM team will have taken the opportunity to rationalise the naming between the two variables, so the "c" prefix to the checksum appears to be no longer required.
@xurizaemon ● www.fuzion.co.nz

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Checksum feature for contribution pages
February 05, 2009, 06:01:05 pm
Quote from: dharmatech on February 05, 2009, 08:17:01 am
Actually, lobo was right. It works with the path he notes: civicrm/contribute/transact?reset=1&id=1&{contact.checksum}&cid={contact.contact_id}

I've added some documentation for this to the new 2.2 doc space:
http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Including+Contribution+Pages+in+Sites

Feel free to improve / correct / clarify :-)
Protect your investment in CiviCRM by  becoming a Member!

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Checksum feature for contribution pages
February 05, 2009, 06:14:08 pm
Good idea. I just clarified it a little.

thanks
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • Checksum feature for contribution pages

This forum was archived on 2017-11-26.