use processor class to determine if backoffice processing is supported
[civicrm-core.git] / CRM / Core / Payment / PayPalImpl.php
index 8481a4ec81cc3bcf5c98c1bad65025e1d1bef1cd..8a74b9e6083e84ec0af1a5af8cf13a8bb444445b 100644 (file)
@@ -94,6 +94,16 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     return self::$_singleton[$processorName];
   }
 
+  /**
+   * are back office payments supported - e.g paypal standard won't permit you to enter a credit card associated with someone else's login
+   * @return bool
+   */
+  private function supportsBackOffice() {
+    if ($this->_processorName == ts('PayPal Pro')) {
+      return TRUE;
+    }
+    return FALSE;
+  }
   /**
    * express checkout code. Check PayPal documentation for more information
    *