If there is a pli in the word it means there is no cost for something or that praise is being given. If there is a ple the word refers to things that complete each other.
Jane complimented me on my writing and handed me a voucher for a complimentary meal.
Bob and Jane complemented each other perfectly and made a lovely couple.