original_string: public function toBalance(array $params)
      {
          $base = [
              'mch_id' => null,
              'mchid' => $this->app['config']->mch_id,
              'mch_appid' => $this->app['config']->app_id,
          ];
  
          if (empty($params['spbill_create_ip'])) {
              $params['spbill_create_ip'] = get_server_ip();
          }
  
          return $this->safeRequest('mmpaymkttransfers/promotion/transfers', array_merge($base, $params));
      }
code: public function toBalance(array $params)
      {
          $base = [
              'mch_id' => null,
              'mchid' => $this->app['config']->mch_id,
              'mch_appid' => $this->app['config']->app_id,
          ];
  
          if (empty($params['spbill_create_ip'])) {
              $params['spbill_create_ip'] = get_server_ip();
          }
  
          return $this->safeRequest('mmpaymkttransfers/promotion/transfers', array_merge($base, $params));
      }
code_tokens: public function toBalance ( array $ params ) { $ base = [ 'mch_id' => null , 'mchid' => $ this -> app [ 'config' ] -> mch_id , 'mch_appid' => $ this -> app [ 'config' ] -> app_id , ] ; if ( empty ( $ params [ 'spbill_create_ip' ] ) ) { $ params [ 'spbill_create_ip' ] = get_server_ip ( ) ; } return $ this -> safeRequest ( 'mmpaymkttransfers/promotion/transfers' , array_merge ( $ base , $ params ) ) ; }
docstring: Send MerchantPay to balance.
  
  @param array $params
  
  @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
  
  @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
docstring_tokens: Send MerchantPay to balance .