protected function getRefundAmount($response)
    {
        $lastCharge = Arr::last($response['charges']['data']);
        $lastRefund = Arr::last($lastCharge['refunds']['data']);

        return abs($lastRefund['amount']);
    }
protected function getRefundAmount($response)
    {
        $lastCharge = Arr::last($response['charges']['data']);
        $lastRefund = Arr::last($lastCharge['refunds']['data']);

        return abs($lastRefund['amount']);
    }
protected function getRefundAmount ( $ response ) { $ lastCharge = Arr :: last ( $ response [ 'charges' ] [ 'data' ] ) ; $ lastRefund = Arr :: last ( $ lastCharge [ 'refunds' ] [ 'data' ] ) ; return abs ( $ lastRefund [ 'amount' ] ) ; }
Get the last refund amount.

@param array $response

@return int
Get the last refund amount .