src/Gateways/Wechat/Gateway.php
protected function preOrder($endpoint, $payload): Collection
    {
        $payload['sign'] = Support::generateSign($payload, $this->config->get('key'));

        Log::debug('Pre Order:', [$endpoint, $payload]);

        return Support::requestApi($endpoint, $payload, $this->config->get('key'));
    }
protected function preOrder($endpoint, $payload): Collection
    {
        $payload['sign'] = Support::generateSign($payload, $this->config->get('key'));

        Log::debug('Pre Order:', [$endpoint, $payload]);

        return Support::requestApi($endpoint, $payload, $this->config->get('key'));
    }
protected function preOrder ( $ endpoint , $ payload ) : Collection { $ payload [ 'sign' ] = Support :: generateSign ( $ payload , $ this -> config -> get ( 'key' ) ) ; Log :: debug ( 'Pre Order:' , [ $ endpoint , $ payload ] ) ; return Support :: requestApi ( $ endpoint , $ payload , $ this -> config -> get ( 'key' ) ) ; }
Preorder an order.

@author yansongda <me@yansongda.cn>

@param string $endpoint
@param array  $payload

@return Collection
Preorder an order .