Tipping at the immigration offer

I was really surprised and shocked when the immigration office demanded a tip to stamp my passport! Never in any country I have seen this type of a behaviour from an immigration officer. Be prepared for this.