Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
沙盒支付测试时,服务端进行订单token验证,验证失败,错误码8。由于商品不属于自己,消费或确认失败。
请问沙盒支付测试下是否不能进行token验证?
通常erroCode:8退货是因为用户没有购买或确认产品,因为用户不拥有该产品。
请检查商品是否已经购买,如果已经购买,请通过调用consumeOwnedPurchase接口消费商品并通知华为IAP服务器更新发货状态,在API调用中传递purchaseToken要求。消费完成后,华为IAP服务器将商品状态重置为可购买。然后可以再次购买该产品。
更多详情请参考以下链接: https ://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/api-purchase-confirm-for-order-service-0000001051066054-V5