标签:
release_check_url := "https://buy.itunes.apple.com/verifyReceipt"
debug_check_url := "https://sandbox.itunes.apple.com/verifyReceipt"
请求数据:
{"receipt-data":"xxxxxxxx"}
苹果的返回值如下:
{
"receipt": {
"original_purchase_date_pst":"2015-06-03 04:00:37 America/Los_Angeles",
"purchase_date_ms":"1433329237329",
"unique_identifier":"secret9f135e2cd8f7dda951a15c01cd2220c60b",
"original_transaction_id":"1000000157783770",
"bvrs":"2.6.0",
"transaction_id":"1000000157783770",
"quantity":"1",
"unique_vendor_identifier":"SECRETCD-89AD-45C4-8937-359CCA9E8F36",
"item_id":"SECRET509",
"product_id":"com.your.iap.product.id",
"purchase_date":"2015-06-03 11:00:37 Etc/GMT",
"original_purchase_date":"2015-06-03 11:00:37 Etc/GMT",
"purchase_date_pst":"2015-06-03 04:00:37 America/Los_Angeles",
"bid":"com.your.app.bundle.id",
"original_purchase_date_ms":"1433329237329"
},
"status": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{
"receipt": {
"original_purchase_date_pst":"2015-06-03 04:00:37 America/Los_Angeles",
"purchase_date_ms":"1433329237329",
"unique_identifier":"secret9f135e2cd8f7dda951a15c01cd2220c60b",
"original_transaction_id":"1000000157783770",
"bvrs":"2.6.0",
"transaction_id":"1000000157783770",
"quantity":"1",
"unique_vendor_identifier":"SECRETCD-89AD-45C4-8937-359CCA9E8F36",
"item_id":"SECRET509",
"product_id":"com.your.iap.product.id",
"purchase_date":"2015-06-03 11:00:37 Etc/GMT",
"original_purchase_date":"2015-06-03 11:00:37 Etc/GMT",
"purchase_date_pst":"2015-06-03 04:00:37 America/Los_Angeles",
"bid":"com.your.app.bundle.id",
"original_purchase_date_ms":"1433329237329"
},
"status": 0
}
|
标签:
原文地址:http://www.cnblogs.com/tianyajuanke/p/5324459.html