src/Gateways/Wechat/Gateway.php
protected function preOrder($payload): Collection
    {
        $payload['sign'] = Support::generateSign($payload);

        Events::dispatch(Events::METHOD_CALLED, new Events\MethodCalled('Wechat', 'PreOrder', '', $payload));

        return Support::requestApi('pay/unifiedorder', $payload);
    }
protected function preOrder($payload): Collection
    {
        $payload['sign'] = Support::generateSign($payload);

        Events::dispatch(Events::METHOD_CALLED, new Events\MethodCalled('Wechat', 'PreOrder', '', $payload));

        return Support::requestApi('pay/unifiedorder', $payload);
    }
protected function preOrder ( $ payload ) : Collection { $ payload [ 'sign' ] = Support :: generateSign ( $ payload ) ; Events :: dispatch ( Events :: METHOD_CALLED , new Events \ MethodCalled ( 'Wechat' , 'PreOrder' , '' , $ payload ) ) ; return Support :: requestApi ( 'pay/unifiedorder' , $ payload ) ; }
Schedule an order.

@author yansongda <me@yansongda.cn>

@param array $payload

@throws GatewayException
@throws InvalidArgumentException
@throws InvalidSignException

@return Collection
Schedule an order .