r76992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76991‎ | r76992 | r76993 >
Date:01:25, 19 November 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Added logging for start and finish of donation trxn
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -54,6 +54,11 @@
5555 $wgPayFlowProGatewayCSSVersion,
5656 $wgPayflowGatewaySalt;
5757
 58+ // make a log entry if the user has submitted the cc form
 59+ if ( $wgRequest->wasPosted() && $wgRequest->getText( 'order_id', 0 )) {
 60+ wfDebugLog( 'payflowpro_gateway', $wgRequest->getText( 'order_id' ) . " Transaction initiated." );
 61+ }
 62+
5863 $wgOut->addExtensionStyle(
5964 "{$wgScriptPath}/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.css?284" .
6065 $wgPayFlowProGatewayCSSVersion );
@@ -517,6 +522,10 @@
518523 // interpret result code, return
519524 // approved (1), denied (2), try again (3), general error (4)
520525 $errorCode = $this->fnPayflowGetResponseMsg( $resultCode, $responseMsg );
 526+
 527+ // log that the transaction is essentially complete
 528+ wfDebugLog( 'payflowpro_gateway', $wgRequest->getText( 'order_id' ) . " Transaction complete." );
 529+
521530 // if approved, display results and send transaction to the queue
522531 if ( $errorCode == '1' ) {
523532 $this->fnPayflowDisplayApprovedResults( $data, $responseArray, $responseMsg );

Follow-up revisions

RevisionCommit summaryAuthorDate
r76993Merging from r76990 thru r76992 of trunkawjrichards01:26, 19 November 2010
r77002Merging from r76992 thru r77001 of trunkawjrichards01:47, 19 November 2010

Status & tagging log