Thank you for the invitation is right.
Don't thank the person when you receive the invitation, but send them a nice Thank You Card after the event and let them know you were honored to be invited and had a wonderful time.
It is correct English to say "thank someone for something" eg "My wife and I thank you for your kind invitation to your daughter's wedding"
just give them a thank you and get it done with
you say: