code: public function getPayment()
      {
          if (!self::$_payment instanceof Factory)
          {
              self::$_payment = Factory::payment(Yii::$app->params['wechatPaymentConfig']);
          }
  
          return self::$_payment;
      }
docs: 获取 EasyWeChat 微信支付实例
  
  @return Factory