HarmonyOS鸿蒙Next中华为应用内支付服务器接口请求报错The AppAtId is not in whitelist
HarmonyOS鸿蒙Next中华为应用内支付服务器接口请求报错The AppAtId is not in whitelist
问题描述
集成 华为应用内支付服务 SDK,支付成功收到回调通知,在做服务器 purchaseToken 校验的时候,报错 “responseCode”:“6”,“responseMessage”:“The AppAtId is not in whitelist”
问题解决
找到华为技术支持(可 提单),对方让我检查 AGC 后台 IAP 服务开关和支付公钥是否已经配置,如果未配置,需要找到下图所示位置,打开开关并配置公钥。

