receipt-data凭证请求后返回的内容字段翻译

     "receipt_type":"Production", //凭证类型 沙箱或正式

        "adam_id":1111111111, //APPID

        "app_item_id":1111111111,  //APPID

        "bundle_id":"com.xxxx.www", //包名

        "application_version”:”1.0.2”,//应用版本号

       "download_id":333333333333333, //应用下载交易的唯一标识符。

        "version_external_identifier":834324799,//版本外部的标识,沙箱环境下其值为:0正式环境其值为一个数字,会变,原因未知

        "receipt_creation_date":"2020-05-05 08:44:20 Etc/GMT", //receipt创建日期(ms)

        "receipt_creation_date_ms":"1588668260000”,//receipt创建日期的时间戳 转行可得到北京时间 (毫秒)

        "receipt_creation_date_pst":"2020-05-05 01:44:20 America/Los_Angeles",//receipt创建日期的时间戳 美国洛杉矶时

        "request_date":"2020-05-05 08:44:21 Etc/GMT", //该凭证请求验证的时间  格林威治时间(与北京时间相差8小时)

        "request_date_ms":"1588668261849",//该凭证请求验证的时间戳 转行可得到北京时间)(毫秒)

        "request_date_pst":"2020-05-05 01:44:21 America/Los_Angeles",//该凭证请求验证的时间  美国洛杉矶时间

        "original_purchase_date":"2020-03-25 14:06:44 Etc/GMT", //原始购买的格林威治时间(与北京时间相差8小时)

        "original_purchase_date_ms":"1585145204000", //(原始购买时间进行时间戳转行可得到北京时间)(毫秒)

        "original_purchase_date_pst":"2020-03-25 07:06:44 America/Los_Angeles", //原始购买时间,美国洛杉矶时间

        "original_application_version":"1.0.2", //原始应用版本号

        "preorder_date":"2020-03-05 17:07:05 Etc/GMT", //预计购买的格林威治时间(与北京时间相差8小时

        "preorder_date_ms":"1583428025000", //预计购买时间时间戳 转行可得到北京时间)(毫秒)

        "preorder_date_pst":"2020-03-05 09:07:05 America/Los_Angeles", //预计购购时间 美国洛杉矶时间

        "in_app":[

            {

                "quantity":"1",  //购买商品的数量

                "product_id":"com.xxx.01",//商品ID

                "transaction_id":"100000000000000",  //交易的标识

                "original_transaction_id":"100000000000000",  //原始交易ID

                "purchase_date":"2020-05-05 08:44:19 Etc/GMT", //购买的格林威治时间(与北京时间相差8小时)

                "purchase_date_ms":"1588668259000", //购买时间毫秒(进行时间戳转行可得到北京时间)(毫秒)

                "purchase_date_pst":"2020-05-05 01:44:19 America/Los_Angeles",  //购买时间,美国洛杉矶时间

                "original_purchase_date":"2020-05-05 08:44:19 Etc/GMT",//原始购买的格林威治时间(与北京时间相差8小时)

                "original_purchase_date_ms":"1588668259000",//(原始购买时间进行时间戳转行可得到北京时间)(毫秒)

                "original_purchase_date_pst":"2020-05-05 01:44:19 America/Los_Angeles",//原始购买的格林威治时间(与北京时间相差8小时)

                "is_trial_period":"false" //是否是免费试用

            }

        ]

    },

    "status”:0,//验证状态0表示成功,其他表示不成功

    "environment":"Production" //支付环境 沙箱或正式环境

苹果的注释

responseBody.Receipt

The decoded version of the encoded receipt data sent with the request to the App Store.

Technology

App Store Receipts 1.0+

On This Page

Properties

Topics

Properties

adam_id

number

See app_item_id.

app_item_id

number

Generated by App Store Connect and used by the App Store to uniquely identify the app purchased. Apps are assigned this identifier only in production. Treat this value as a 64-bit long integer.

application_version

string

The app’s version number. The app's version number corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in macOS) in the Info.plist. In production, this value is the current version of the app on the device based on the receipt_creation_date_ms. In the sandbox, the value is always "1.0".

bundle_id

string

The bundle identifier for the app to which the receipt belongs. You provide this string on App Store Connect. This corresponds to the value of CFBundleIdentifier in the Info.plist file of the app.

download_id

integer

A unique identifier for the app download transaction.

expiration_date

string

The time the receipt expires for apps purchased through the Volume Purchase Program, in a date-time format similar to the ISO 8601.

expiration_date_ms

string

The time the receipt expires for apps purchased through the Volume Purchase Program, in UNIX epoch time format, in milliseconds. If this key is not present for apps purchased through the Volume Purchase Program, the receipt does not expire. Use this time format for processing dates.

expiration_date_pst

string

The time the receipt expires for apps purchased through the Volume Purchase Program, in the Pacific Time zone.

in_app

[responseBody.Receipt.In_app]

An array that contains the in-app purchase receipt fields for all in-app purchase transactions.

original_application_version

string

The version of the app that the user originally purchased. This value does not change, and corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in macOS) in the Info.plist file of the original purchase. In the sandbox environment, the value is always "1.0".

original_purchase_date

string

The time of the original app purchase, in a date-time format similar to ISO 8601.

original_purchase_date_ms

string

The time of the original app purchase, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.

original_purchase_date_pst

string

The time of the original app purchase, in the Pacific Time zone.

preorder_date

string

The time the user ordered the app available for pre-order, in a date-time format similar to ISO 8601.

preorder_date_ms

string

The time the user ordered the app available for pre-order, in UNIX epoch time format, in milliseconds. This field is only present if the user pre-orders the app. Use this time format for processing dates.

preorder_date_pst

string

The time the user ordered the app available for pre-order, in the Pacific Time zone.

receipt_creation_date

string

The time the App Store generated the receipt, in a date-time format similar to ISO 8601.

receipt_creation_date_ms

string

The time the App Store generated the receipt, in UNIX epoch time format, in milliseconds. Use this time format for processing dates. This value does not change.

receipt_creation_date_pst

string

The time the App Store generated the receipt, in the Pacific Time zone.

receipt_type

string

The type of receipt generated. The value corresponds to the environment in which the app or VPP purchase was made.

Possible values: Production, ProductionVPP, ProductionSandbox, ProductionVPPSandbox

request_date

string

The time the request to the verifyReceipt endpoint was processed and the response was generated, in a date-time format similar to ISO 8601.

request_date_ms

string

The time the request to the verifyReceipt endpoint was processed and the response was generated, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.

request_date_pst

string

The time the request to the verifyReceipt endpoint was processed and the response was generated, in the Pacific Time zone.

version_external_identifier

integer

An arbitrary number that identifies a revision of your app. In the sandbox, this key's value is “0”.

https://developer.apple.com/documentation/appstorereceipts/responsebody/receipt


参考

blog.csdn.net/wjsshhx/article/details/73088094

你可能感兴趣的:(receipt-data凭证请求后返回的内容字段翻译)