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) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Online Event Registration Transaction Declined
Pages: [1]

Author Topic: Online Event Registration Transaction Declined  (Read 934 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Online Event Registration Transaction Declined
June 08, 2011, 08:34:01 am
We recently had someone inquire about the status of their event registration and had to investigate. Here's what we found.

The individual had completed an online event registration form exposed by Civi. The individual filled out all of their information and attempted to pay by credit card. After submitting, reviewing, and confirming, we THINK the individual got back a transaction declined message that he apparently didn't notice (hence, his inquiry about the status of his registration). All fine and as expected to this point, other than we may want to better highlight the declined message.

So when the individual inquired about his registration status (because he didn't receive any confirmation email, as expected), we went to investigate what happened. We found, that a new contact record was created in Civi for the individual. He already had a contact record in Civi, but he used a different email address unknown to Civi, so it created a new record for him. We looked at the record to determine what had happened and there was no information that we could find that indicated he had attempted to register for an event. No failed contribution record. No pending from incomplete transaction registration record. No activity records.

So, to come to the conclusion we did, we had to walk through and try to replicate this same result, which we were able to. But we can't know for certain that's what happened because Civi doesn't provide us with the data to point to that.

I wanted to share this experience to:

1) Possibly help anyone that might run into the same thing.
2) See if others have experienced this and what they've done, if anything to improve the situation.
3) Ask the questions and start a conversation: Is this by design? If so, what is the reason? Why not create some kind of failed contribution or a pending registration?

Cheers!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Online Event Registration Transaction Declined
June 08, 2011, 11:37:27 pm
Hi- this thread is a bit geeky but basically from a code point of view the pending contribution is deleted if it fails rather than being set to cancelled. It would be pretty minor to change - and I agree it should be - Lobo is 'mixed' on it which wasn't a no....

http://forum.civicrm.org/index.php/topic,19792.msg82569.html#msg82569
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Online Event Registration Transaction Declined
June 09, 2011, 12:00:28 am
Something else that would be super useful is to put more information in the source field of the contact (eg. 'online registration for event XY').

So at least when you see the duplicate contact, you know where it comes from.

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

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Online Event Registration Transaction Declined
June 10, 2011, 07:01:07 am
Eileen, do you know why Lobo has mixed feelings on the issue? I can't think of any reason, from the end user perspective, you wouldn't want some sort of record of a failed transaction. Although I can see having mixed feelings on the details of how it is implemented.

xavier, I agree a contact source would be of some help. I just checked and there is no source on the contact in my example.

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: Online Event Registration Transaction Declined
June 10, 2011, 01:52:25 pm

There have been posts on the forum which have expressed the opposite view (we do create contacts for all cases if u r using something like paypal standard) and dont want contacts created if the contribution has not been processed. It also potentially increases the number of "spam contacts" you have in your DB (depending on how popular your site is)

eileen's forum post was referring to the recurring contribution bit where we delete the contribution (i think)

in the normal case, we dont create a contact or a contribution. If someone is interested in this, would be good to submit a patch ALONG with a few unit/web tests that ensure that things work as expected

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Online Event Registration Transaction Declined
June 10, 2011, 06:47:11 pm
It seems that the code in events doesn't create a contribution if if doesn't succeed whereas on the membership / contribution page it is created & deleted (not specific to recurring ones).

I would think that putting the source in would overcome some doubts about adding the contact. I personally think that knowing what & how people have interacted with your database is more important than keeping out spam & that you should use a spam tool (like captcha) to tackle spam if it's important to you rather than having real interactions not recorded.

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Online Event Registration Transaction Declined
June 13, 2011, 08:59:12 am
In the case I described, the contact record was created. And that seems logical in my opinion. I agree with Eileen. I think it's important to capture contact information in almost all cases (with the exception of spam) because the individual trying to register for event or apply for a membership or donate or just filling out a form to contact the organization is a prospect at some level.

What is difficult to wrap my head around is that there is no indication of why or how that particular contact record was created as I see a contact record with no source and no other related records. Possible options to improve this would be to provide a value for the contact source, a failed contribution record, a pending registration, etc.

Lobo, as I indicated in the issue tracker, I'm not in a place to contribute code right now due to time constraints and learning curve. Though I am getting closer to pushing things aside to make time as I genuinely want to contribute in that way to improving Civi. Any resources available to help bring potential developers up to speed quickly?


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Online Event Registration Transaction Declined

This forum was archived on 2017-11-26.