public function get_fees($type = 'all')
{
$fees = array();
if (!empty($this->fees) && is_array($this->fees)) {
foreach ($this->fees as $fee_id => $fee) {
if ('all' != $type && !empty($fee['type']) && $type != $fee['type']) {
continue;
}
$fee['id'] = $fee_id;
$fees[] = $fee;
}
}
return apply_filters('give_get_payment_fees', $fees, $this->ID, $this);
}