Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -54,6 +54,11 @@ |
55 | 55 | $wgPayFlowProGatewayCSSVersion, |
56 | 56 | $wgPayflowGatewaySalt; |
57 | 57 | |
| 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 | + |
58 | 63 | $wgOut->addExtensionStyle( |
59 | 64 | "{$wgScriptPath}/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.css?284" . |
60 | 65 | $wgPayFlowProGatewayCSSVersion ); |
— | — | @@ -517,6 +522,10 @@ |
518 | 523 | // interpret result code, return |
519 | 524 | // approved (1), denied (2), try again (3), general error (4) |
520 | 525 | $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 | + |
521 | 530 | // if approved, display results and send transaction to the queue |
522 | 531 | if ( $errorCode == '1' ) { |
523 | 532 | $this->fnPayflowDisplayApprovedResults( $data, $responseArray, $responseMsg ); |