忘记
现在IOS后台验证接口返回的结构变了 ,而Hbuilder恢复订单返回的没有了transactionIdentifier这些参数,是不是因为IOS结构改了所以没获取到呢?
Hbuilder结构
[
{
"payment":{
"productid":"com.fyts.knowledgeBaseyiyue12",
"quantity":"1",
"username":"426d34befc6c4cf194847f9e7b5d7789"
},
"transactionReceipt":"xxxx",
"transactionState":"2"
}
]
IOS后台的结构
{
"receipt":{
"receipt_type":"Production",
"adam_id":xxx,
"app_item_id":xxx,
"bundle_id":"com.xxxse",
"application_version":"2404",
"download_id":xxx,
...
"in_app":[
{
"quantity":"1",
"product_id":"com.x.x",
"transaction_id":"xxx",
"original_transaction_id":"xxx",
"purchase_date":"2021-08-10 13:07:10 Etc/GMT",
"purchase_date_ms":"xxx",
"purchase_date_pst":"2021-08-10 06:07:10 America/Los_Angeles",
"original_purchase_date":"2021-08-10 13:07:10 Etc/GMT",
"original_purchase_date_ms":"xxx",
"original_purchase_date_pst":"2021-08-10 06:07:10 America/Los_Angeles",
"is_trial_period":"false",
"in_app_ownership_type":"PURCHASED"
}
]
},
"environment":"Production",
"latest_receipt_info":[
{
"quantity":"1",
"product_id":"com.x.x",
"transaction_id":"xxx",
"original_transaction_id":"xxx",
"purchase_date":"2021-08-10 13:07:10 Etc/GMT",
"purchase_date_ms":"xxx",
"purchase_date_pst":"2021-08-10 06:07:10 America/Los_Angeles",
"original_purchase_date":"2021-08-10 13:07:10 Etc/GMT",
"original_purchase_date_ms":"xxx",
"original_purchase_date_pst":"2021-08-10 06:07:10 America/Los_Angeles",
"is_trial_period":"false",
"in_app_ownership_type":"PURCHASED"
}
],
"latest_receipt":"xxx",
"status":0
}
2021-08-12 10:06
161 个评论
要回复文章请先登录或注册
呱呔213
PrescottPS
j***@return2017.top
5178008pp
j***@163.com
有智慧的码农
时光知味
top
忘记
2***@qq.com