You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving SUBSCRIPTION_CANCELED events from google RTDN, the error Undefined array key \"subscriptionId\" occurs on google-play-billing/src/DeveloperNotifications/SubscriptionNotification.php:66.
Other event subscriptions are not having this issue so seems to be an isolated event. This occurs without having an event listener for the SubscriptionCanceled event.
The real issue seems to be on google's side with not sending a subscriptionID, however, it would be nice to be able to handle this so that we can still respond accordingly.
How to reproduce
Create a google subscription
Cancel subscription from Google Play Store
See error response when receiving SUBSCRIPTION_CANCELED notification
Possible Solution
Return an empty string if the subscription notification does not contain a "subscriptionId" within the create SubscriptionNotification:$attributes['subscriptionId'] ?? ""
Additional Context
No response
The text was updated successfully, but these errors were encountered:
sharondikan
changed the title
Google SUBSCRIPTION_CANCELED notification doesn't include subscriptionId
Google SubscriptionCanceled erroring with Undefined array key "subscriptionId"
Nov 6, 2024
Liap version(s) affected
1.13
Description
When receiving
SUBSCRIPTION_CANCELED
events from google RTDN, the errorUndefined array key \"subscriptionId\"
occurs ongoogle-play-billing/src/DeveloperNotifications/SubscriptionNotification.php:66
.Other event subscriptions are not having this issue so seems to be an isolated event. This occurs without having an event listener for the
SubscriptionCanceled
event.Here's an event payload from google,
The real issue seems to be on google's side with not sending a subscriptionID, however, it would be nice to be able to handle this so that we can still respond accordingly.
How to reproduce
SUBSCRIPTION_CANCELED
notificationPossible Solution
Return an empty string if the subscription notification does not contain a "subscriptionId" within the create SubscriptionNotification:
$attributes['subscriptionId'] ?? ""
Additional Context
No response
The text was updated successfully, but these errors were encountered: