Index: trunk/extensions/DonationInterface/gateway_common/DonationData.php |
— | — | @@ -1265,6 +1265,7 @@ |
1266 | 1266 | 'zip2', |
1267 | 1267 | 'gateway', |
1268 | 1268 | 'gateway_txn_id', |
| 1269 | + 'recurring', |
1269 | 1270 | 'payment_method', |
1270 | 1271 | 'payment_submethod', |
1271 | 1272 | 'response', |
Index: trunk/extensions/DonationInterface/activemq_stomp/activemq_stomp.php |
— | — | @@ -221,6 +221,7 @@ |
222 | 222 | 'postal_code_2' => $transaction['zip2'], |
223 | 223 | 'gateway' => $transaction['gateway'], |
224 | 224 | 'gateway_txn_id' => $transaction['gateway_txn_id'], |
| 225 | + 'recurring' => $transaction['recurring'], |
225 | 226 | 'payment_method' => $transaction['payment_method'], |
226 | 227 | 'payment_submethod' => $transaction['payment_submethod'], |
227 | 228 | 'response' => $transaction['response'], |
— | — | @@ -234,6 +235,11 @@ |
235 | 236 | //The code there should also be fixed. |
236 | 237 | 'date' => ( int ) $transaction['date'], |
237 | 238 | ); |
| 239 | + |
| 240 | + //optional key |
| 241 | + if ( !$message['recurring'] ) { |
| 242 | + unset( $message['recurring'] ); |
| 243 | + } |
238 | 244 | |
239 | 245 | return $message; |
240 | 246 | } |