IAP成功后验证Apple收据时,original_transaction_id不会出现

问题描述

我的应用程序中有自动更新的IAP计划,用户必须购买该计划才能收听完整的歌曲。在用户进行应用内购买并通知应用成功交易后,便会发生此问题,然后对应用中的appStoreReceipt进行验证。

我有base64编码的字符串(可以在个人中共享),并且在验证收据后添加响应,此外,我还包括主共享密钥和应用程序特定的共享密钥。

我还提出了有关Apple反馈帮助的错误,但是自上周以来他们一直没有回复我。

我希望有人能帮助我解决这个问题。

This is the response after validation of receipt:

<pre>ReceiptValidator\iTunes\ProductionResponse Object
(
    [result_code:protected] => 0
    [bundle_id:protected] => com.allaccess
    [app_item_id:protected] => 1479910471
    [original_purchase_date:protected] => Carbon\Carbon Object
        (
            [date] => 2020-06-04 17:28:14.000000
            [timezone_type] => 1
            [timezone] => +00:00
        )

    [request_date:protected] => Carbon\Carbon Object
        (
            [date] => 2020-08-25 15:40:51.000000
            [timezone_type] => 1
            [timezone] => +00:00
        )

    [receipt_creation_date:protected] => Carbon\Carbon Object
        (
            [date] => 2020-06-04 17:28:14.000000
            [timezone_type] => 1
            [timezone] => +00:00
        )

    [receipt:protected] => Array
        (
            [receipt_type] => Production
            [adam_id] => 1479910471
            [app_item_id] => 1479910471
            [bundle_id] => com.allaccess
            [application_version] => 1.0.1
            [download_id] => 28071597429667
            [version_external_identifier] => 836208084
            [receipt_creation_date] => 2020-06-04 17:28:14 Etc/GMT
            [receipt_creation_date_ms] => 1591291694000
            [receipt_creation_date_pst] => 2020-06-04 10:28:14 America/Los_Angeles
            [request_date] => 2020-08-25 15:40:50 Etc/GMT
            [request_date_ms] => 1598370050555
            [request_date_pst] => 2020-08-25 08:40:50 America/Los_Angeles
            [original_purchase_date] => 2020-06-04 17:28:14 Etc/GMT
            [original_purchase_date_ms] => 1591291694000
            [original_purchase_date_pst] => 2020-06-04 10:28:14 America/Los_Angeles
            [original_application_version] => 1.0.1
            [in_app] => Array
                (
                )

        )

    [latest_receipt:protected] => 
    [latest_receipt_info:protected] => Array
        (
        )

    [purchases:protected] => Array
        (
        )

    [pending_renewal_info:protected] => Array
        (
        )

    [raw_data:protected] => Array
        (
            [receipt] => Array
                (
                    [receipt_type] => Production
                    [adam_id] => 1479910471
                    [app_item_id] => 1479910471
                    [bundle_id] => com.allaccess
                    [application_version] => 1.0.1
                    [download_id] => 28071597429667
                    [version_external_identifier] => 836208084
                    [receipt_creation_date] => 2020-06-04 17:28:14 Etc/GMT
                    [receipt_creation_date_ms] => 1591291694000
                    [receipt_creation_date_pst] => 2020-06-04 10:28:14 America/Los_Angeles
                    [request_date] => 2020-08-25 15:40:50 Etc/GMT
                    [request_date_ms] => 1598370050555
                    [request_date_pst] => 2020-08-25 08:40:50 America/Los_Angeles
                    [original_purchase_date] => 2020-06-04 17:28:14 Etc/GMT
                    [original_purchase_date_ms] => 1591291694000
                    [original_purchase_date_pst] => 2020-06-04 10:28:14 America/Los_Angeles
                    [original_application_version] => 1.0.1
                    [in_app] => Array
                        (
                        )

                )

            [status] => 0
            [environment] => Production
        )

    [is_retryable:protected] => 
)

在这里,没有original_transaction_id。自上个月以来,我一直面临这个问题。

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)