Fixing Mac App Store error 100 when purchasing app

Follow the instructions above and I got it fixed. No idea why it happened in the first place.

To save you sometimes, just copy and paste those lines below in Terminal. Logout, login back and try purchasing an app again.

rm ~/Library/Caches/;
rm ~/Library/Preferences/;
rm ~/Library/Preferences/;
rm ~/Library/Cookies/