Implemented payTransaction