public function refund(
        $orderNo,
        $refundNo,
        $totalFee,
        $refundFee = null,
        $opUserId = null,
        $type = self::OUT_TRADE_NO,
        $refundAccount = 'REFUND_SOURCE_UNSETTLED_FUNDS'
    ) {
        $params = [
            $type             => $orderNo,
            'out_refund_no'   => $refundNo,
            'total_fee'       => $totalFee,
            'refund_fee'      => $refundFee ?: $totalFee,
            'refund_fee_type' => $this->merchant->fee_type,
            'refund_account'  => $refundAccount,
            'op_user_id'      => $opUserId ?: $this->merchant->merchant_id,
        ];

        return $this->safeRequest(self::API_REFUND, $params);
    }
public function refund(
        $orderNo,
        $refundNo,
        $totalFee,
        $refundFee = null,
        $opUserId = null,
        $type = self::OUT_TRADE_NO,
        $refundAccount = 'REFUND_SOURCE_UNSETTLED_FUNDS'
    ) {
        $params = [
            $type             => $orderNo,
            'out_refund_no'   => $refundNo,
            'total_fee'       => $totalFee,
            'refund_fee'      => $refundFee ?: $totalFee,
            'refund_fee_type' => $this->merchant->fee_type,
            'refund_account'  => $refundAccount,
            'op_user_id'      => $opUserId ?: $this->merchant->merchant_id,
        ];

        return $this->safeRequest(self::API_REFUND, $params);
    }
public function refund ( $ orderNo , $ refundNo , $ totalFee , $ refundFee = null , $ opUserId = null , $ type = self :: OUT_TRADE_NO , $ refundAccount = 'REFUND_SOURCE_UNSETTLED_FUNDS' ) { $ params = [ $ type => $ orderNo , 'out_refund_no' => $ refundNo , 'total_fee' => $ totalFee , 'refund_fee' => $ refundFee ? : $ totalFee , 'refund_fee_type' => $ this -> merchant -> fee_type , 'refund_account' => $ refundAccount , 'op_user_id' => $ opUserId ? : $ this -> merchant -> merchant_id , ] ; return $ this -> safeRequest ( self :: API_REFUND , $ params ) ; }
Make a refund request.

@param string $orderNo
@param float  $totalFee
@param float  $refundFee
@param string $opUserId
@param string $type
@param string $refundAccount

@return \EntWeChat\Support\Collection
Make a refund request .