Not illegal in Australia, where kogan is from. Unfortunately there's no limit on the amount a merchant can charge for payment/card fees. For example, I believe the most popular taxi charge company here (CabCharge) charges a 10% fee when paying by credit card.