updated charge order to accept json and validate order with try/except