IOS internal purchase and subscription

Time:2020-7-6

 

 

About verification:

//Sandbox static final string TestUrl =“ https://sandbox.itunes.apple.com/verifyReceipt “;
//Official static final string product =“ https://buy.itunes.apple.com/verifyReceipt “;

The content returned by requesting Apple address is

conten-type = application/json

The requested Apple content is string param = “{receive data \”: \ “+ Base64 +” \ “} returned by the client;

{
    “receipt”: {
        “receipt_type”: “ProductionSandbox”,
        “adam_id”: 0,
        “app_item_id”: 0,
        “bundle_ id”: ” com.rtjk.xshl “, / / the package name of the current product. Be sure to verify that the returned package name is consistent with this package name
        “application_version”: “2018101001”,
        “download_id”: 0,
        “version_external_identifier”: 0,
        “receipt_creation_date”: “2018-10-19 10:50:48 Etc/GMT”,
        “receipt_creation_date_ms”: “1539946248000”,
        “receipt_creation_date_pst”: “2018-10-19 03:50:48 America/Los_Angeles”,
        “request_date”: “2018-10-31 01:58:21 Etc/GMT”,
        “request_date_ms”: “1540951101844”,
        “request_date_pst”: “2018-10-30 18:58:21 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 “:” 6honglio “, / / corresponding to the product ID, make a mapping of the amount by yourself. It is suggested that the naming should be regular for the specific amount
                “transaction_ ID “:” 1000000460004095 “, / / it must be verified by de duplication. One order number can only be paid once
                “original_transaction_id”: “1000000460004095”,
                “purchase_date”: “2018-10-19 10:50:48 Etc/GMT”,
                “purchase_date_ms”: “1539946248000”,
                “purchase_date_pst”: “2018-10-19 03:50:48 America/Los_Angeles”,
                “original_purchase_date”: “2018-10-19 10:50:48 Etc/GMT”,
                “original_purchase_date_ms”: “1539946248000”,
                “original_purchase_date_pst”: “2018-10-19 03:50:48 America/Los_Angeles”,
                “is_trial_period”: “false”
            }
        ]
    },
“Status”: 0, / / indicates that the current request returns to normal
    “environment”: “Sandbox”
}

 

quote:

https://www.cnblogs.com/qiyer/

https://www.cnblogs.com/qiyer/p/7442680.html

https://blog.csdn.net/woyixinyiyi/article/details/83574563

Recommended Today

Implementation example of go operation etcd

etcdIt is an open-source, distributed key value pair data storage system, which provides shared configuration, service registration and discovery. This paper mainly introduces the installation and use of etcd. Etcdetcd introduction etcdIt is an open source and highly available distributed key value storage system developed with go language, which can be used to configure sharing […]