Are credit card fees for college tuition payments allowable expenses for 529 purposes and early IRA early withdrawal penalty exceptions?

Are credit card fees for college tuition payments allowable expenses for 529 purposes and early IRA early withdrawal penalty exceptions?