Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/js/webitects_2_3step.js |
— | — | @@ -159,6 +159,11 @@ |
160 | 160 | 'payment_method': 'card', |
161 | 161 | 'language': language, |
162 | 162 | 'card_type': $( "input[name='cardtype']" ).val().toLowerCase(), |
| 163 | + 'contribution_tracking_id': $( "input[name='contribution_tracking_id']" ).val(), |
| 164 | + 'numAttempt': $( "input[name='numAttempt']" ).val(), |
| 165 | + 'utm_source': $( "input[name='utm_source']" ).val(), |
| 166 | + 'utm_campaign': $( "input[name='utm_campaign']" ).val(), |
| 167 | + 'utm_medium': $( "input[name='utm_medium']" ).val(), |
163 | 168 | 'format': 'json' |
164 | 169 | }; |
165 | 170 | $.ajax( { |
Index: trunk/extensions/DonationInterface/gateway_common/donation.api.php |
— | — | @@ -107,6 +107,11 @@ |
108 | 108 | 'payment_submethod' => $this->defineParam( false ), |
109 | 109 | 'language' => $this->defineParam( false ), |
110 | 110 | 'order_id' => $this->defineParam( false ), |
| 111 | + 'contribution_tracking_id' => $this->defineParam( false ), |
| 112 | + 'numAttempt' => $this->defineParam( false ), |
| 113 | + 'utm_source' => $this->defineParam( false ), |
| 114 | + 'utm_campaign' => $this->defineParam( false ), |
| 115 | + 'utm_medium' => $this->defineParam( false ), |
111 | 116 | ); |
112 | 117 | } |
113 | 118 | |
— | — | @@ -170,6 +175,11 @@ |
171 | 176 | 'payment_submethod' => 'Payment submethod to use', |
172 | 177 | 'language' => 'Language code', |
173 | 178 | 'order_id' => 'Order ID (if a donation has already been started)', |
| 179 | + 'contribution_tracking_id' => 'ID for contribution tracking table', |
| 180 | + 'numAttempt' => 'How many attempts have been made to donate', |
| 181 | + 'utm_source' => 'Tracking variable', |
| 182 | + 'utm_campaign' => 'Tracking variable', |
| 183 | + 'utm_medium' => 'Tracking variable', |
174 | 184 | ); |
175 | 185 | } |
176 | 186 | |