is there a way to send an invoice after payment? and store

HI,
is there a way to send an invoice after payment? and store the invoice?
or is there a plugin?
Denis