- if ($this->_isPaymentExpress) {
- $this->handlePaymentExpress();
- return;
- }
- $objects = $ids = $input = [];
- $this->_component = $input['component'] = self::getValue('m');
- $input['invoice'] = self::getValue('i', TRUE);
- // get the contribution and contact ids from the GET params
- $ids['contact'] = self::getValue('c', TRUE);
- $ids['contribution'] = self::getValue('b', TRUE);
-
- $this->getInput($input);
-
- if ($this->_component == 'event') {
- $ids['event'] = self::getValue('e', TRUE);
- $ids['participant'] = self::getValue('p', TRUE);
- $ids['contributionRecur'] = self::getValue('r', FALSE);
- }
- else {
- // get the optional ids
- //@ how can this not be broken retrieving from GET as we are dealing with a POST request?
- // copy & paste? Note the retrieve function now uses data from _REQUEST so this will be included
- $ids['membership'] = self::retrieve('membershipID', 'Integer', 'GET', FALSE);
- $ids['contributionRecur'] = self::getValue('r', FALSE);
- $ids['contributionPage'] = self::getValue('p', FALSE);
- $ids['related_contact'] = self::retrieve('relatedContactID', 'Integer', 'GET', FALSE);
- $ids['onbehalf_dupe_alert'] = self::retrieve('onBehalfDupeAlert', 'Integer', 'GET', FALSE);
- }
+ try {
+ if ($this->_isPaymentExpress) {
+ $this->handlePaymentExpress();
+ return;
+ }
+ $objects = $ids = $input = [];
+ $this->_component = $input['component'] = self::getValue('m');
+ $input['invoice'] = self::getValue('i', TRUE);
+ // get the contribution and contact ids from the GET params
+ $ids['contact'] = self::getValue('c', TRUE);
+ $ids['contribution'] = self::getValue('b', TRUE);
+
+ $this->getInput($input);
+
+ if ($this->_component == 'event') {
+ $ids['event'] = self::getValue('e', TRUE);
+ $ids['participant'] = self::getValue('p', TRUE);
+ $ids['contributionRecur'] = self::getValue('r', FALSE);
+ }
+ else {
+ // get the optional ids
+ //@ how can this not be broken retrieving from GET as we are dealing with a POST request?
+ // copy & paste? Note the retrieve function now uses data from _REQUEST so this will be included
+ $ids['membership'] = self::retrieve('membershipID', 'Integer', 'GET', FALSE);
+ $ids['contributionRecur'] = self::getValue('r', FALSE);
+ $ids['contributionPage'] = self::getValue('p', FALSE);
+ $ids['related_contact'] = self::retrieve('relatedContactID', 'Integer', 'GET', FALSE);
+ $ids['onbehalf_dupe_alert'] = self::retrieve('onBehalfDupeAlert', 'Integer', 'GET', FALSE);
+ }