文档
测试

消耗型内购

POST
https://fax.tongsoft.top/appleIAP/addAppleIAP

接口描述

提供内购数据包,返回内购是否加点以及加点数量的信息

请求参数

参数名
类型
描述
必填
receipt_data
string
数据包
必填
transaction_id
string
校验id
必填
deviceId
string
设备id
必填
bundle_id
string
包名,例如:com.tongsoft.receivefax
必填
order_amount
int
订单对应的点数
必填
userId
string
登录以后的用户id
必填
appType
int
ios fax receive10,ios simple fax 3, ios simple scanner5
必填

响应参数

参数名
类型
描述
必填
status
int
0内部错误,1成功
必填
data
object
返回值对象
必填
product_id
string
订单对应的项目名,例如:receivefax_credit_60
必填
resultType
int
-1代表验证失败,可能是假订单也有可能是apple服务器连接问题需再次提交,0代表添加成功
必填