Needing Help! Diff between crediting a customer Vs accepting a payment

I’m at work and I’m stumped. I’m a new staff accountant at my company and we collect payments from multiple customers . We offered to take care of marketing expenses for one customer and instead of submitting a payment I’ve been requested to apply a credit against their open invoices instead. Could you tell me what the difference is between applying a credit vs collecting the payment? Does the credit method prevent revenue being earned? How can I apply a credit to ensure that revenue is recognized? I’m trying to see which has the best benefit because I’m not sure..thanks so much!