I want to create a payment form to allow users to pay towards someone's event attendance.

Given a Contribution ID, how can I create a link to a page that will accept payments towards that Contribution?

Do I have to do this through Personal Campaign Pages, or is there a way without that overhead?



To add a Payment to an existing Event Registration:

URL = /civicrm/payment?action=add&reset=1&component=event&id=88&cid=101

where cid = contact_id; and id=participant

enter image description here

There is a tiny button -> submit credit card payment -> but I don't think it's a public link (perhaps you can work the permissions)

enter image description here

  • And for anyone who may be interested in using this outside an event context, the URL is /civicrm/partialpayment?reset=1&id=29&cid=6&action=add&component=contribution&mode=live where ID is the contribution. – JohnFF Apr 29 '17 at 1:10

You could use Line Items. Create a Price Set with the Attendee Name(s)/Contribution Id(s) that you would like to have available for people to help pay. Donors can enter the amount they want to give toward specific attendee(s). You will have to manually apply these contributions to the attendee's event fee. We do this for tuition here https://radiusinternational.org/paytuition/

The other way to do this is to use Contribution Notes via Profiles. Then the donor would just write in the name that they want to have the money applied to. The downside here is the limited placement of Profiles on the contribution page. Neither of the 2 placement options really puts the Notes anywhere logical in relation to giving form. The Notes are not next to the contribution label so then you have to add a description telling donors where to find the Notes further down the page.

  • interesting. would a variation to the second idea be to put a Contact Reference field in there rather than using Notes – petednz - fuzion Apr 20 '17 at 0:36

I think that since you are asking about having A pay for B's attendance, then yes PCP is the way to go. Will depend on just how many As and how many Bs you expect to be using the system

  • Hi Petednz, thanks for the response. Please can you tell me if: a) I should only maintain one contribution for the registration, and then just record payments against that (I take action when the amount is reached), or b) if I should create each contribution as a separate contribution? – JohnFF Apr 27 '17 at 17:16
  • Really can't comment meaningful. Not something I have ever needed to deal with. And not sure I quite understand your comment as not sure whether to be reading 'PCP' each time you use the word 'contribution' or not. – petednz - fuzion Apr 27 '17 at 19:28
  • No, I meant contribution! – JohnFF Apr 28 '17 at 23:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.