fix error when payment failed, plus add transaction_id to transaction, modify specs for the same