public function execute() { $this->checkDefaultApp($this->aid); if (isset($this->email) && !Validate::email($this->email)) { throw new OpenFBAPIException('Email address "' . $this->email . '" not valid.'); } if (isset($this->phone) && !Validate_US::phoneNumber($this->phone)) { throw new OpenFBAPIException('Phone number "' . $this->phone . '" not valid.'); } $result = Api_Bo_Subscriptions::createAppSubscription($this->uid, $this->nid, $this->aid, $this->planid, $this->ccn, $this->cctype, $this->expdate, $this->firstname, $this->lastname, $this->email, $this->phone); return $result; }