Fixed a few bugs with checkout routine
Added check if merchant key and id is ok.