Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -780,9 +780,9 @@ |
781 | 781 | //enable if we need this to get the Civi data to display correctly |
782 | 782 | $transaction['optout'] = ($transaction['optout'] == "1") ? '0' : '1'; |
783 | 783 | $transaction['anonymous'] = ($transaction['anonymous'] == "1") ? '0' : '1'; |
784 | | - |
| 784 | + var_dump($transaction); |
785 | 785 | // hook to call stomp functions |
786 | | - wfRunHooks( 'gwStomp', array( &$transaction ) ); |
| 786 | + //wfRunHooks( 'gwStomp', array( &$transaction ) ); |
787 | 787 | } |
788 | 788 | |
789 | 789 | /** |
— | — | @@ -815,7 +815,7 @@ |
816 | 816 | $wgOut->addHTML( '<h3 class="response_message">' . $declinedDefault . $responseMsg . '</h3>' ); |
817 | 817 | } |
818 | 818 | |
819 | | - function fnPayflowSaveContributionTracking( $data ) { |
| 819 | + function fnPayflowSaveContributionTracking( &$data ) { |
820 | 820 | $db = payflowGatewayConnection(); |
821 | 821 | |
822 | 822 | if (!$db) { return true ; } |
— | — | @@ -843,7 +843,8 @@ |
844 | 844 | |
845 | 845 | // Store the contribution data |
846 | 846 | if ($db->insert( 'contribution_tracking', $tracked_contribution ) ) { |
847 | | - return true; |
| 847 | + $data['contribution_tracking_id'] = $db->insertId(); |
| 848 | + return true; |
848 | 849 | } else { return false; } |
849 | 850 | |
850 | 851 | } |