苹果支付返回结构变化

验单返回数据格式

  • 老版本IOS返回
{
    "receipt": {
        "original_purchase_date_pst": "2016-12-03 01:11:01 America/Los_Angeles",
        "purchase_date_ms": "1480756261254",
        "unique_identifier": "96f51b28f628493709966f33a1fe7ba",
        "original_transaction_id": "1000000255766",
        "bvrs": "82",
        "transaction_id": "1000000255766",
        "quantity": "1",
        "unique_vendor_identifier": "FE358-1362-40FD-870F-DF788AC5",
        "item_id": "11822945",
        "product_id": "rjkf_itemid_1",
        "purchase_date": "2016-12-03 09:11:01 Etc/GMT",
        "original_purchase_date": "2016-12-03 09:11:01 Etc/GMT",
        "purchase_date_pst": "2016-12-03 01:11:01 America/Los_Angeles",
        "bid": "com.xxx.xxx",
        "original_purchase_date_ms": "1480756261254"
    },
    "status": 0
}

  • 新版IOS返回(7.0以后)
{
    "status": 0,
    "environment": "Sandbox",
    "receipt": {
        "receipt_type": "ProductionSandbox",
        "adam_id": 0,
        "app_item_id": 0,
        "bundle_id": "com.xxx.xxx",
        "application_version": "84",
        "download_id": 0,
        "version_external_identifier": 0,
        "receipt_creation_date": "2016-12-05 08:41:57 Etc/GMT",
        "receipt_creation_date_ms": "1480927317000",
        "receipt_creation_date_pst": "2016-12-05 00:41:57 America/Los_Angeles",
        "request_date": "2016-12-05 08:41:59 Etc/GMT",
        "request_date_ms": "1480927319441",
        "request_date_pst": "2016-12-05 00:41:59 America/Los_Angeles",
        "original_purchase_date": "2013-08-01 07:00:00 Etc/GMT",
        "original_purchase_date_ms": "1375340400000",
        "original_purchase_date_pst": "2013-08-01 00:00:00 America/Los_Angeles",
        "original_application_version": "1.0",
        "in_app": [
            {
                "quantity": "1",
                "product_id": "rjkf_itemid_1",
                "transaction_id": "10000003970",
                "original_transaction_id": "10000003970",
                "purchase_date": "2016-12-05 08:41:57 Etc/GMT",
                "purchase_date_ms": "1480927317000",
                "purchase_date_pst": "2016-12-05 00:41:57 America/Los_Angeles",
                "original_purchase_date": "2016-12-05 08:41:57 Etc/GMT",
                "original_purchase_date_ms": "1480927317000",
                "original_purchase_date_pst": "2016-12-05 00:41:57 America/Los_Angeles",
                "is_trial_period": "false"
            }
        ]
    }
}
posted @ 2023-03-16 09:46  快乐的提千万  阅读(249)  评论(0编辑  收藏  举报