苹果appstore支付,票据内容详解

iOS6格式小票凭证验证结果(非订阅)
{
"receipt": {
"original_purchase_date_pst": "2019-07-17 19:01:20 America/Los_Angeles",      //原始购买时间,美国洛杉矶时间
"purchase_date_ms": "1563415280644",                                                              //购买时间毫秒(进行时间戳转行可得到北京时间)
"unique_identifier": "5e31a30d27be905f459fdca00aab2ebcf7045d22",                 //唯一标识符
"original_transaction_id": "1000000548076202",                                                   //原始交易ID
"bvrs": "0",                                                                                                              //iPhone程序的版本号
"transaction_id": "1000000548076202",                                                                //交易的标识
"quantity": "1",                                                                                                        //购买商品的数量
"unique_vendor_identifier": "DD2CA653-2F36-445F-99CB-8C403E4B4536",     //开发商交易ID
"item_id": "1471296882",                                                                                       //App Store用来标识程序的字符串
"version_external_identifier": "0",                                                                           //识别购买时使用的App版本,为任意数字
"bid": "com.wusheng.wssgz",                                                                                 //iPhone程序的bundle标识
"is_in_intro_offer_period": "false",                                                                          //是否在享受折扣价
"product_id": "Sg.WSsgZ.ws.803",                                                                         //商品的标识 
"purchase_date": "2019-07-18 02:01:20 Etc/GMT",                                               //购买的格林威治时间(与北京时间相差8小时)
"is_trial_period": "false",                                                                                        //是否是免费试用
"purchase_date_pst": "2019-07-17 19:01:20 America/Los_Angeles",                  //购买时间,美国洛杉矶时间
"original_purchase_date": "2019-07-18 02:01:20 Etc/GMT",                                //原始购买的格林威治时间(与北京时间相差8小时)
"original_purchase_date_ms": "1563415280644"                                                 //(原始购买时间进行时间戳转行可得到北京时间)
},
"status": 0                                                                                                            //校验状态码
}

 (校验票据时重点校验部分为红色标注部分)

状态码详解

 

苹果appstore支付,票据内容详解

 

 

订阅类票据解释


订阅产品票据
{
"auto_renew_status": 1, //是否打开了自动订阅
"status": 0, //校验状态
"auto_renew_product_id": "ceshipay30", //自动续订产品的标识符
"receipt": { //票据
"original_purchase_date_pst": "2018-11-14 01:29:02 America/Los_Angeles",
"quantity": "1",
"unique_vendor_identifier": "049830A1-1121-41F1-A81B-3A1D40CB66C5",
"bvrs": "1",
"expires_date_formatted": "2018-11-16 04:17:58 Etc/GMT",
"is_in_intro_offer_period": "false",
"purchase_date_ms": "1542341578185",
"expires_date_formatted_pst": "2018-11-15 20:17:58 America/Los_Angeles",
"is_trial_period": "false",
"item_id": "1442170568",
"unique_identifier": "b88bbeff4048f8deb9a5eab3e31a96c3f53d4455",
"original_transaction_id": "1000000472480206",
"expires_date": "1542341878185", //过期时间
"transaction_id": "1000000473637200",
"web_order_line_item_id": "1000000041303036",
"version_external_identifier": "0",
"bid": "ceshi.pay.com",
"product_id": "ceshipay30",
"purchase_date": "2018-11-16 04:12:58 Etc/GMT",
"original_purchase_date": "2018-11-14 09:29:02 Etc/GMT",
"purchase_date_pst": "2018-11-15 20:12:58 America/Los_Angeles",
"original_purchase_date_ms": "1542187742000"
},
"latest_receipt_info": { //最新票据
"original_purchase_date_pst": "2018-11-14 01:29:02 America/Los_Angeles",
"unique_identifier": "b88bbeff4048f8deb9a5eab3e31a96c3f53d4455",
"original_transaction_id": "1000000472480206",
"expires_date": "1542341878000",   ////过期时间
"transaction_id": "1000000473637200",
"quantity": "1",
"product_id": "ceshipay30",
"bvrs": "1",
"bid": "ceshi.pay.com",
"unique_vendor_identifier": "049830A1-1121-41F1-A81B-3A1D40CB66C5",
"web_order_line_item_id": "1000000041303036",
"original_purchase_date_ms": "1542187742000",
"expires_date_formatted": "2018-11-16 04:17:58 Etc/GMT",
"purchase_date": "2018-11-16 04:12:58 Etc/GMT",
"is_in_intro_offer_period": "false",
"purchase_date_ms": "1542341578000",
"expires_date_formatted_pst": "2018-11-15 20:17:58 America/Los_Angeles",
"is_trial_period": "false",
"purchase_date_pst": "2018-11-15 20:12:58 America/Los_Angeles",
"original_purchase_date": "2018-11-14 09:29:02 Etc/GMT",
"item_id": "1442170568"
}
}

苹果appstore支付,票据内容详解

上一篇:React Native报错:This error often happens when you’re running the packager (local dev server) from a wrong folder


下一篇:Android面试常问基础知识点