Index: trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -701,7 +701,7 @@ |
702 | 702 | //are frequently packaged togther in the same place, whether the transaction passed or failed. |
703 | 703 | $this->setTransactionResult( $this->getResponseErrors( $formatted ), 'errors' ); |
704 | 704 | |
705 | | - //if we're still okay (hey, even if we're not), get relevent dataz. |
| 705 | + //if we're still okay (hey, even if we're not), get relevent data. |
706 | 706 | $pulled_data = $this->getResponseData( $formatted ); |
707 | 707 | $this->setTransactionResult( $pulled_data, 'data' ); |
708 | 708 | |
— | — | @@ -1484,6 +1484,38 @@ |
1485 | 1485 | } |
1486 | 1486 | } |
1487 | 1487 | |
| 1488 | + /** |
| 1489 | + * Returns false if FORMACTION does not exist or string if it does exist |
| 1490 | + * |
| 1491 | + * @return false|string |
| 1492 | + */ |
| 1493 | + public function getTransactionDataFormAction() { |
| 1494 | + |
| 1495 | + $data = $this->getTransactionData(); |
| 1496 | + |
| 1497 | + if ( is_array( $data ) && array_key_exists( 'FORMACTION', $data ) ) { |
| 1498 | + return $data['FORMACTION']; |
| 1499 | + } else { |
| 1500 | + return false; |
| 1501 | + } |
| 1502 | + } |
| 1503 | + |
| 1504 | + /** |
| 1505 | + * Returns false if language does not exist or string if it does exist |
| 1506 | + * |
| 1507 | + * @return false|string |
| 1508 | + */ |
| 1509 | + public function getTransactionDataLanguage() { |
| 1510 | + |
| 1511 | + $data = $this->getTransactionData(); |
| 1512 | + |
| 1513 | + if ( is_array( $data ) && array_key_exists( 'language', $data ) ) { |
| 1514 | + return $data['language']; |
| 1515 | + } else { |
| 1516 | + return false; |
| 1517 | + } |
| 1518 | + } |
| 1519 | + |
1488 | 1520 | public function setFormClass( $formClassName ) { |
1489 | 1521 | //I'm adding this because Captcha needs it, and we're gonna fire the hook inside. Nothing else really needs it as far as I know. |
1490 | 1522 | $this->form_class = $formClassName; |