src/Gateways/Wechat.php
public function refund($order): Collection
    {
        $this->payload = Support::filterPayload($this->payload, $order, true);

        Events::dispatch(Events::METHOD_CALLED, new Events\MethodCalled('Wechat', 'Refund', $this->gateway, $this->payload));

        return Support::requestApi(
            'secapi/pay/refund',
            $this->payload,
            true
        );
    }
public function refund($order): Collection
    {
        $this->payload = Support::filterPayload($this->payload, $order, true);

        Events::dispatch(Events::METHOD_CALLED, new Events\MethodCalled('Wechat', 'Refund', $this->gateway, $this->payload));

        return Support::requestApi(
            'secapi/pay/refund',
            $this->payload,
            true
        );
    }
public function refund ( $ order ) : Collection { $ this -> payload = Support :: filterPayload ( $ this -> payload , $ order , true ) ; Events :: dispatch ( Events :: METHOD_CALLED , new Events \ MethodCalled ( 'Wechat' , 'Refund' , $ this -> gateway , $ this -> payload ) ) ; return Support :: requestApi ( 'secapi/pay/refund' , $ this -> payload , true ) ; }
Refund an order.

@author yansongda <me@yansongda.cn>

@param array $order

@throws GatewayException
@throws InvalidSignException
@throws InvalidArgumentException

@return Collection
Refund an order .