Index: branches/fundraising/extensions/DonationInterface/payflowpro_gateway/payflowpro.adapter.php |
— | — | @@ -208,6 +208,7 @@ |
209 | 209 | function processResponse( $response ) { |
210 | 210 | //set the transaction result message |
211 | 211 | $this->setTransactionResult( $response['RESPMSG'], 'txn_message' ); |
| 212 | + $this->setTransactionResult( $response['PNREF'], 'gateway_txn_id' ); |
212 | 213 | } |
213 | 214 | |
214 | 215 | function defineStagedVars() { |
Index: branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -294,6 +294,7 @@ |
295 | 295 | function processResponse( $response ) { |
296 | 296 | //set the transaction result message |
297 | 297 | $this->setTransactionResult( "Response Status: " . $response['STATUSID'], 'txn_message' ); //TODO: Translate for GC. |
| 298 | + $this->setTransactionResult( $this->getData( 'order_id' ), 'gateway_txn_id' ); |
298 | 299 | } |
299 | 300 | |
300 | 301 | /** |
Index: branches/fundraising/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -927,6 +927,8 @@ |
928 | 928 | $transaction = array( |
929 | 929 | 'response' => $this->getTransactionMessage(), |
930 | 930 | 'date' => time(), |
| 931 | + 'gateway_txn_id' => $this->getTransactionGatewayTxnID(), |
| 932 | + 'language' => '', |
931 | 933 | ); |
932 | 934 | $transaction += $this->getData(); |
933 | 935 | |
— | — | @@ -1090,6 +1092,14 @@ |
1091 | 1093 | } |
1092 | 1094 | } |
1093 | 1095 | |
| 1096 | + public function getTransactionGatewayTxnID() { |
| 1097 | + if ( array_key_exists( 'gateway_txn_id', $this->transaction_results ) ) { |
| 1098 | + return $this->transaction_results['gateway_txn_id']; |
| 1099 | + } else { |
| 1100 | + return false; |
| 1101 | + } |
| 1102 | + } |
| 1103 | + |
1094 | 1104 | /** |
1095 | 1105 | * Returns the FORMATTED data harvested from the reply, or false if it is not set. |
1096 | 1106 | * @return mixed An array of returned data, or false. |
Index: branches/fundraising/extensions/DonationInterface/activemq_stomp/activemq_stomp.php |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | 'country_2' => $transaction['country2'], |
166 | 166 | 'postal_code_2' => $transaction['zip2'], |
167 | 167 | 'gateway' => $transaction['gateway'], |
168 | | - 'gateway_txn_id' => $transaction['order_id'], //pretty sure. |
| 168 | + 'gateway_txn_id' => $transaction['gateway_txn_id'], |
169 | 169 | 'response' => $transaction['response'], |
170 | 170 | 'currency' => $transaction['currency'], |
171 | 171 | 'original_currency' => $transaction['currency'], |