- if ($this->contributionRecurID) {
- try {
- $this->_paymentProcessorObj = CRM_Financial_BAO_PaymentProcessor::getPaymentProcessorForRecurringContribution($this->contributionRecurID);
- }
- catch (CRM_Core_Exception $e) {
- CRM_Core_Error::statusBounce(ts('There is no valid processor for this subscription so it cannot be edited.'));
- }
- catch (CiviCRM_API3_Exception $e) {
- CRM_Core_Error::statusBounce(ts('There is no valid processor for this subscription so it cannot be edited.'));
- }
- $this->_subscriptionDetails = CRM_Contribute_BAO_ContributionRecur::getSubscriptionDetails($this->contributionRecurID);
- }
-