Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -1322,6 +1322,12 @@ |
1323 | 1323 | public function defineStagedVars() { |
1324 | 1324 | //OUR field names. |
1325 | 1325 | $this->staged_vars = array( |
| 1326 | + 'fname', |
| 1327 | + 'lname', |
| 1328 | + 'street', |
| 1329 | + 'city', |
| 1330 | + 'state', |
| 1331 | + 'email', |
1326 | 1332 | 'amount', |
1327 | 1333 | 'card_type', |
1328 | 1334 | //'card_num', |
— | — | @@ -1334,6 +1340,36 @@ |
1335 | 1341 | ); |
1336 | 1342 | } |
1337 | 1343 | |
| 1344 | + protected function stage_fname( $type = 'request' ) { |
| 1345 | + // Truncate to 15 characters due to GlobalCollect's field length limit |
| 1346 | + $this->staged_data['fname'] = substr( $this->staged_data['fname'], 0, 15 ); |
| 1347 | + } |
| 1348 | + |
| 1349 | + protected function stage_lname( $type = 'request' ) { |
| 1350 | + // Truncate to 35 characters due to GlobalCollect's field length limit |
| 1351 | + $this->staged_data['lname'] = substr( $this->staged_data['lname'], 0, 35 ); |
| 1352 | + } |
| 1353 | + |
| 1354 | + protected function stage_street( $type = 'request' ) { |
| 1355 | + // Truncate to 50 characters due to GlobalCollect's field length limit |
| 1356 | + $this->staged_data['street'] = substr( $this->staged_data['street'], 0, 50 ); |
| 1357 | + } |
| 1358 | + |
| 1359 | + protected function stage_city( $type = 'request' ) { |
| 1360 | + // Truncate to 40 characters due to GlobalCollect's field length limit |
| 1361 | + $this->staged_data['city'] = substr( $this->staged_data['city'], 0, 40 ); |
| 1362 | + } |
| 1363 | + |
| 1364 | + protected function stage_state( $type = 'request' ) { |
| 1365 | + // Truncate to 35 characters due to GlobalCollect's field length limit |
| 1366 | + $this->staged_data['state'] = substr( $this->staged_data['state'], 0, 35 ); |
| 1367 | + } |
| 1368 | + |
| 1369 | + protected function stage_email( $type = 'request' ) { |
| 1370 | + // Truncate to 70 characters due to GlobalCollect's field length limit |
| 1371 | + $this->staged_data['email'] = substr( $this->staged_data['email'], 0, 70 ); |
| 1372 | + } |
| 1373 | + |
1338 | 1374 | protected function stage_language( $type = 'request' ) { |
1339 | 1375 | $language = strtolower( $this->staged_data['language'] ); |
1340 | 1376 | |
Property changes on: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface |
___________________________________________________________________ |
Modified: svn:mergeinfo |
1341 | 1377 | Merged /trunk/extensions/DonationInterface:r102740 |