You should issue it immediately upon receiving payment in any form, whether via cash, credit card, PayPal, or another method.