/**
  *
  * @return waPayment
  */
 protected function init()
 {
     if (!$this->app_id && $this->app_adapter) {
         $this->app_id = $this->app_adapter->getAppId();
     }
     if (!$this->app_id) {
         $this->app_id = wa()->getApp();
     }
     if ($this->key) {
         $this->setSettings($this->getAdapter()->getSettings($this->id, $this->key));
     }
     $this->merchant_id =& $this->key;
     return $this;
 }
 protected function init()
 {
     $this->app_id = 'shop';
     parent::init();
 }