【鸿蒙游戏技术分享 第76期】鸿蒙游戏拉不起支付,报错1001860056

关键词

鸿蒙,IAP

问题描述

游戏接入华为应用内支付服务,调用支付createPurcahse接口,报错如下:

CreateBusinessError errCode: 1001860056 errMsg: BusinessError 1001860056: The user is not allowed to make purchase.

问题分析

看IAP支付接口错误码文档,该错误码对应描述如下:

显示支付被风控,再看日志发现以下报错:

HACommonReportUtil external apiiap_game_pre_purchase-2 end error:1002000007 The app to which the product belongs is not released in a specified location.

看意思是商品所属的应用未在指定地区开放,文档描述如下:

问题解决

按照处理步骤,将应用的分布地区修改为中国大陆,再测试支付,问题解决。


更多问题可关注:

鸿蒙游戏官方网站:​​https://developer.huawei.com/consumer/cn/games/​​

公开课:华为开发者学堂

相关推荐
五仁烧饼11 小时前
Unity Addressables 静默资源策略
游戏·unity·addressables
星空真迷人18 小时前
嵌入式鸿蒙并非精简版,核心究竟是什么?
stm32·单片机·嵌入式硬件·物联网·华为·harmonyos·iot
MyBili18 小时前
游戏报错缺少dll、无法启动?GRLPackage 运行库合集一键修复指南
游戏·.net·directx·运行库·xna·openal·vc++ redis
ownkss1 天前
游戏回本周期怎么预测:步骤、指标与复盘重点
游戏·游戏发行·游戏运营·游戏分发
OH_TPC1 天前
【鸿蒙优选三方库】@ohos/ijkplayer:在鸿蒙上像 B 站一样流畅播视频
华为·音视频·harmonyos·鸿蒙
ue星空1 天前
Godot 2D像素游戏移动抖动、模糊问题解决方案
游戏·游戏引擎·godot
2501_919749031 天前
华为鸿蒙经期记录APP—小羊月经
华为·harmonyos·鸿蒙
黑鲨吃西瓜1 天前
鸿蒙通用模块
harmonyos·鸿蒙
腾科IT教育2 天前
HarmonyOS开发|ArkTS UI颜色API通用规则
ui·华为·harmonyos·harmonyos开发·鸿蒙应用开发工程师
风华圆舞2 天前
HarmonyOS 自定义绘制实战 —— 用 ArkGraphics2D 画一个会卷曲翻动的页面网格
harmonyos·arkts·drawing·drawvertices·翻页卷曲·有限差分法线