Nanny tax

Does nanny tax only apply if you pay your nanny in cash? What if I buy my nanny groceries or other items in exchange for watching my kids. Is that considered tax evasion?