Merge pull request #12154 from compucorp/122-fix-bug-with-action-links
[civicrm-core.git] / CRM / Core / Payment.php
index a4192ac9fd20b49805b6d0019861e9357e4ba50d..202e3fe729d865bcfdb7dc34bf7f752ca24471cd 100644 (file)
@@ -1542,6 +1542,18 @@ INNER JOIN civicrm_contribution con ON ( con.contribution_recur_id = rec.id )
     return FALSE;
   }
 
+  /**
+   * Checks if payment processor supports recurring contributions
+   *
+   * @return bool
+   */
+  public function supportsRecurring() {
+    if (!empty($this->_paymentProcessor['is_recur'])) {
+      return TRUE;
+    }
+    return FALSE;
+  }
+
   /**
    * Should a receipt be sent out for a pending payment.
    *