示例#1
0
 /**
  * Check whether a method is present ( & supported ) by the payment processor object.
  *
  * @param string $method
  *   Method to check for.
  *
  * @return bool
  */
 public function isSupported($method = 'cancelSubscription')
 {
     if ($this->_paymentProcessor['payment_processor_type'] != 'PayPal') {
         // since subscription methods like cancelSubscription or updateBilling is not yet implemented / supported
         // by standard or express.
         return FALSE;
     }
     return parent::isSupported($method);
 }