-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined array key "product_id" Exception #173
Comments
hi. you should not try to put notification payload into ProductionResponse constructor. The structure looks similar but different. |
In case you get the error on validation stage, could you share Raw validation response from Apple? |
You're right, reviewing this I realize the server is treating V1 notifications as if they were V2, and the payload shouldn't be used to validate. |
Have you solved this? |
I'm getting this exception while it validates an Apple notification, on PendingRenewalInfo.php, line 140.
I'm Printing the payload on the log before validation and it looks like this:
[notification_type] => REVOKE
[password] => xxxxxxxxxxxxxxxxxxxxxxxx
[environment] => PROD
[auto_renew_product_id] => com.learnsafari.spanish_safari_monthSub2
[auto_renew_status] => false
[unified_receipt] => Array
(
[status] => 0
[environment] => Production
[latest_receipt_info] => Array
(
[0] => Array
(
[quantity] => 1
[product_id] => com.learnsafari.spanish_safari_monthSub2
[transaction_id] => 502432905404171488
[purchase_date] => 2023-05-14 23:36:30 Etc/GMT
[purchase_date_ms] => 1684107390000
[purchase_date_pst] => 2023-05-14 16:36:30 America/Los_Angeles
[original_purchase_date] => 2023-05-14 23:36:31 Etc/GMT
[original_purchase_date_ms] => 1684107391000
[original_purchase_date_pst] => 2023-05-14 16:36:31 America/Los_Angeles
[expires_date] => 2023-05-28 23:36:30 Etc/GMT
[expires_date_ms] => 1685316990000
[expires_date_pst] => 2023-05-28 16:36:30 America/Los_Angeles
[web_order_line_item_id] => 502432905404171489
[is_trial_period] => true
[is_in_intro_offer_period] => false
[original_transaction_id] => 502432905404171488
[cancellation_date] => 2023-06-13 00:32:26 Etc/GMT
[cancellation_date_ms] => 1686616346743
[cancellation_date_pst] => 2023-06-12 17:32:26 America/Los_Angeles
[cancellation_reason] => 0
[in_app_ownership_type] => FAMILY_SHARED
[subscription_group_identifier] => 20619207
)
The text was updated successfully, but these errors were encountered: