Index: branches/fundraising/deployment/payments_1.17/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php |
— | — | @@ -1536,6 +1536,7 @@ |
1537 | 1537 | 'street', |
1538 | 1538 | 'city', |
1539 | 1539 | 'state', |
| 1540 | + 'zip', |
1540 | 1541 | 'email', |
1541 | 1542 | 'amount', |
1542 | 1543 | 'card_type', |
— | — | @@ -1574,6 +1575,11 @@ |
1575 | 1576 | $this->staged_data['state'] = substr( $this->staged_data['state'], 0, 35 ); |
1576 | 1577 | } |
1577 | 1578 | |
| 1579 | + protected function stage_zip( $type = 'request' ) { |
| 1580 | + // Truncate to 10 characters due to GlobalCollect's field length limit |
| 1581 | + $this->staged_data['zip'] = substr( $this->staged_data['zip'], 0, 10 ); |
| 1582 | + } |
| 1583 | + |
1578 | 1584 | protected function stage_email( $type = 'request' ) { |
1579 | 1585 | // Truncate to 70 characters due to GlobalCollect's field length limit |
1580 | 1586 | $this->staged_data['email'] = substr( $this->staged_data['email'], 0, 70 ); |