'Persist the response we returened for an incoming transaction, and
should return for subsequent transactions with the same transaction_id
and origin.
Args:
txn
transaction_id (str)
origin (str)
code (int)
response_json (str)'

def set_received_txn_response(self, transaction_id, origin, code, response_dict):

    return self._simple_insert(table='received_transactions', values={'transaction_id': transaction_id, 'origin': origin, 'response_code': code, 'response_json': buffer(encode_canonical_json(response_dict)), 'ts': self._clock.time_msec()}, or_ignore=True, desc='set_received_txn_response')
