original_string: public function unify(array $params)
      {
          if (empty($params['spbill_create_ip'])) {
              $params['spbill_create_ip'] = ('NATIVE' === $params['trade_type']) ? Support\get_server_ip() : Support\get_client_ip();
          }
  
          $params['appid'] = $this->app['config']->app_id;
          $params['notify_url'] = $params['notify_url'] ?? $this->app['config']['notify_url'];
  
          return $this->request($this->wrap('pay/unifiedorder'), $params);
      }
code: public function unify(array $params)
      {
          if (empty($params['spbill_create_ip'])) {
              $params['spbill_create_ip'] = ('NATIVE' === $params['trade_type']) ? Support\get_server_ip() : Support\get_client_ip();
          }
  
          $params['appid'] = $this->app['config']->app_id;
          $params['notify_url'] = $params['notify_url'] ?? $this->app['config']['notify_url'];
  
          return $this->request($this->wrap('pay/unifiedorder'), $params);
      }
code_tokens: public function unify ( array $ params ) { if ( empty ( $ params [ 'spbill_create_ip' ] ) ) { $ params [ 'spbill_create_ip' ] = ( 'NATIVE' === $ params [ 'trade_type' ] ) ? Support \ get_server_ip ( ) : Support \ get_client_ip ( ) ; } $ params [ 'appid' ] = $ this -> app [ 'config' ] -> app_id ; $ params [ 'notify_url' ] = $ params [ 'notify_url' ] ?? $ this -> app [ 'config' ] [ 'notify_url' ] ; return $ this -> request ( $ this -> wrap ( 'pay/unifiedorder' ) , $ params ) ; }
docstring: Unify order.
  
  @param array $params
  
  @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
  
  @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
docstring_tokens: Unify order .