Add plan details to gateway
This commit is contained in:
Focuslinkstech
2024-05-17 10:59:41 +01:00
parent 6b8501313d
commit fded62b39d
5 changed files with 82 additions and 201 deletions

View File

@ -820,4 +820,11 @@ class Package
$ui->assign('whatsapp', urlencode("```$invoice```"));
$ui->assign('in', $in);
}
public static function tax($price, $tax_rate = 1)
{
// Convert tax rate to decimal
$tax_rate_decimal = $tax_rate / 100;
$tax = $price * $tax_rate_decimal;
return $tax;
}
}