message: fix error log, add payment_method to provision script
diff: @@ -70,16 +70,19 @@ def register_agent(args):
  rc = vcx.vcx_provision_agent(c_json)
  if rc == 0:
  - sys.stderr.write("could not register agent, see log\n")
  + sys.stderr.write("could not register agent. Try again with '-v' for more details\n")
  print(json.dumps({
  'provisioned': False,
  - 'provisioned_status': 'Failed: Could not register agent, see log\n'
  + 'provisioned_status': "Failed: Could not register agent. Try again with '-v' for more details"
  },indent=2))
  else:
  pointer = c_int(rc)
  string = cast(pointer.value, c_char_p)
  new_config = json.loads(string.value.decode('utf-8'))
  + if 'payment_method' not in new_config:
  + new_config['payment_method'] = 'null'
  +
  print(json.dumps(new_config, indent=2, sort_keys=True))
  