出现此特定错误的原因是什么?以及用户ID到底应该是什么。
2015-01-09 15:17:29.187 com.rosettmobile.clienteling [8909:2575054]请求UR2编码:: square-commerce-v1:// payment / create?data =%7B%22state%22:% 22Useful%20information%22%22callback_url%22:%22rosettaclienteling:%5C / 5C%/我的%5C /回调%5C /路径%22%22merchant_id%22:%22brandyn.brosemer @ rosetta.com%22,%22amount_money %22:%7B%22amount%22:100,%22currency_code%22:%22USD%22%7D,%22options%22:%7B%22clear_default_fees%22:真,%22supported_tender_types%22:%5B%22CREDIT_CARD%22%图5D%7D,%22client_id%22:%22I4C8ySW_Z5UUoP7GYAilpg%22%22sdk_version%22:%221%22%7D
(lldb)po参数 { data =“{\”status \“:\”error \“,\”error_code \“:\”user_id_mismatch \“,\”state \“:\”有用信息\“}”; }
答案 0 :(得分:0)
上述请求中merchant_id
参数的值不正确(商家ID与其电子邮件地址不同)。您可以通过向Retrieve Merchant端点(merchant_id
)发送GET请求来获取商家https://connect.squareup.com/v1/me
。返回的JSON对象的id
字段是商家的merchant_id
。