Originally Posted by
osansun
Shall I consider disputing the airline tickets charges on my credit-card?
Why would you do that ? You paid the airline to fly you to SJO and back. They did that. As others have pointed out, it's your responsibility to know the customs and immigration laws of the country you're visiting.
Lesson learned, move on.