在App Purchase验证证书问题 [英] In App Purchase Verify certificate problem

查看:116
本文介绍了在App Purchase验证证书问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到的回复如下。

{"status":21002, "exception":"java.lang.NullPointerException"} 

我只使用Base64对收据进行编码。

I am encoding the receipt using Base64 only.

我在沙盒中测试它。

会出现什么问题?任何人都可以帮助我吗?

What will be the problem? Can anyone help me?

推荐答案

VIP值得注意的是21002也是您在尝试验证交易时收到的消息通过root的iTu​​nes黑客软件启动,如Urus应用程序。

VIP Worth noting that 21002 is also the message you get back when trying to verify a transaction that was initiated via rooted iTunes hack software like the Urus app.

我们验证服务器端的所有交易,因此不依赖于设备,获得21002响应的唯一交易都不是实时支付。

We verify all transactions server side, so are not device dependant, the only transactions that get the 21002 response are ALL not real payments.

一种简单的方法来查看它以查看返回的交易ID Urus给出了com.urus.iap.XXXXXXX(x是随机数),其他包括将包名称作为已完成的交易ID返回,这与您从各种iTunes服务器获得的ID非常不同。

an easy way to spot it to look at the transaction id returned Urus gives com.urus.iap.XXXXXXX (x being random numbers), other ones include returning the pack name as the completed transaction id, all very different to the id's you get from the various iTunes servers.

我不能建议每个人都验证服务器 - 在你可以控制,测试和证明的环境中,不能被操纵(除非你被黑客攻击)。如果这不是一个选项,那么不要支付21002响应。

I can't recommend more that everyone verifies server-side in an environment you can control, test and prove, that cant be manipulated (unless your hacked). If this is not an option, then do not pay out on a 21002 response.

在java环境中验证21002的json响应将是:
json:{status:21002,exception:java.lang.ClassCastException}

verifying in a java environment the json response for the 21002 will be: json: {"status":21002,"exception":"java.lang.ClassCastException"}

这篇关于在App Purchase验证证书问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆