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) »
  • Transaction logging of paypal transactions
Pages: [1]

Author Topic: Transaction logging of paypal transactions  (Read 1953 times)

sawjer

  • Guest
Transaction logging of paypal transactions
November 27, 2008, 07:24:22 pm
I have spent the last few days trying to make the paypal credit card processor work for event registration. To no avail. Now it suddenly works, without me changing any thing. Paypal surreptitiously fixing some problems without saying so?

I  need   transaction logging to quickly pinpoint when problems crop up. The present situation is a nightmare for production support. I believe there must be some others in the same situation.

Who can give me some ideas on how to get debug logging of the communication exchange. The present debug is for development but cannot be used in a productive environment. I need something similar to what I am used to in my CMS where I can add debug logging per user session. This allows me to track down problems on a productive system without impeding others.

In the same line I need to register the creditcard invoice, similar to registering a payment reference number for online payment. The credit card invoice can be found in the CiviCRM.log, but this is not possible for production environment.
« Last Edit: November 27, 2008, 07:39:47 pm by sawjer »

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: Transaction logging of paypal transactions
November 28, 2008, 03:54:03 pm
Quote from: sawjer on November 27, 2008, 07:24:22 pm
I  need   transaction logging to quickly pinpoint when problems crop up. The present situation is a nightmare for production support. I believe there must be some others in the same situation.

You can instrument the code and add logging statements as needed (CRM_Core_Error::debug_var). By default it will log to CiviCRM.log

Quote from: sawjer on November 27, 2008, 07:24:22 pm
Who can give me some ideas on how to get debug logging of the communication exchange. The present debug is for development but cannot be used in a productive environment. I need something similar to what I am used to in my CMS where I can add debug logging per user session. This allows me to track down problems on a productive system without impeding others.

Chat with us on irc and we can get you going

Quote from: sawjer on November 27, 2008, 07:24:22 pm
In the same line I need to register the creditcard invoice, similar to registering a payment reference number for online payment. The credit card invoice can be found in the CiviCRM.log, but this is not possible for production environment.

the credit card transcation # is stored in the contribution record as transaction_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

sawjer

  • Guest
Re: Transaction logging of paypal transactions
December 01, 2008, 11:46:31 am
Thank you lobo

I see the credit card transaction id in the contribution record.

My question: Where and how can I get a pay-later ref-id placed in the trxn_id of the contribution record (currently null). This reference should be  made up of
- fixed prefix (e.g. Ref:)
- event_id
- user_id who registers
- CRC
All fields separated by '-'


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: Transaction logging of paypal transactions
December 01, 2008, 12:21:57 pm

the easiest place to add that for contributions / memberships is:

line 638 in CRM/Contribute/Form/Contribution/Confirm.php

and for events

line 562 in CRM/Event/Form/Registration/Confirm.php

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) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Transaction logging of paypal transactions

This forum was archived on 2017-11-26.