Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -54,11 +54,6 @@ |
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 | | - |
63 | 58 | $wgOut->addExtensionStyle( |
64 | 59 | "{$wgScriptPath}/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.css?284" . |
65 | 60 | $wgPayFlowProGatewayCSSVersion ); |
— | — | @@ -112,7 +107,12 @@ |
113 | 108 | require_once( 'includes/payflowUser.inc' ); |
114 | 109 | |
115 | 110 | $payflow_data = payflowUser(); |
116 | | - |
| 111 | + |
| 112 | + // make a log entry if the user has submitted the cc form |
| 113 | + if ( $wgRequest->wasPosted() && $wgRequest->getText( 'process', 0 )) { |
| 114 | + wfDebugLog( 'payflowpro_gateway', $payflow_data[ 'order_id' ] . " Transaction initiated." ); |
| 115 | + } |
| 116 | + |
117 | 117 | // if _cache_ is requested by the user, do not set a session/token; dynamic data will be loaded via ajax |
118 | 118 | if ( $wgRequest->getText( '_cache_', false ) ) { |
119 | 119 | $cache = true; |