Example #1
0
 function createNewCustomer()
 {
     /*
      * Customer Object
      */
     $customer_object = new Evin_Customer();
     /*
      * Subscription ID will be first order ever placed by customer.
      * Customer Cannot have more than 1 subscription ID.
      */
     if ($this->one_off == 1) {
     }
     $customer_object->hash_password = Evin_Utility::createRandomTempPassword($this->email);
     $customer_object->subscription_id = $this->order_id;
     $customer_object->bill_first_name = $this->bill_first_name;
     $customer_object->bill_last_name = $this->bill_last_name;
     $customer_object->bill_address = $this->bill_address;
     $customer_object->bill_city = $this->bill_city;
     $customer_object->bill_state = $this->bill_state;
     $customer_object->bill_zip = $this->bill_zip;
     $customer_object->bill_country = $this->bill_country;
     $customer_object->ship_first_name = $this->ship_first_name;
     $customer_object->ship_last_name = $this->ship_last_name;
     $customer_object->ship_address = $this->ship_address;
     $customer_object->ship_city = $this->ship_city;
     $customer_object->ship_state = $this->ship_state;
     $customer_object->ship_zip = $this->ship_zip;
     $customer_object->ship_country = $this->ship_country;
     $customer_object->cc_type = $this->cc_type;
     $customer_object->cc = $this->cc;
     $customer_object->exp_month = $this->exp_month;
     $customer_object->exp_year = $this->exp_year;
     $customer_object->cvv = $this->cvv;
     $customer_object->cc_type = $this->cc_type;
     $customer_object->phone = $this->phone;
     $customer_object->email = $this->email;
     /*
      * Create Customer Model
      */
     $model = new Application_Models_MongoDB();
     $model->customer_object = $customer_object;
     $model->createCustomer();
 }