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
For example, when a one-time purchase is made, Apple sends a server notification with the type ONE_TIME_CHARGE. When this happens, LIAP's EventFactory class constructs a class name based on the notification type, even if that type isn't supported and the class doesn't actually exist. This ends up filling the logs with errors about these missing classes. This is confusing since unsupported event types ideally shouldn't trigger log-polluting exceptions.
How to reproduce
Trigger a one-time purchase for Apple to send a server notification to your webhook endpoint with the type ONE_TIME_CHARGE
Check your logs
Possible Solution
No response
Additional Context
[2024-06-10 23:55:57] development.ERROR: Class "Imdhemy\Purchases\Events\AppStore\OneTimeCharge" not found {"exception":"[object] (Error(code: 0): Class \"Imdhemy\\Purchases\\Events\\AppStore\\OneTimeCharge\" not found at /var/www/html/vendor/imdhemy/laravel-purchases/src/Events/EventFactory.php:51)
The text was updated successfully, but these errors were encountered:
Liap version(s) affected
1.12.0
Description
For example, when a one-time purchase is made, Apple sends a server notification with the type
ONE_TIME_CHARGE
. When this happens, LIAP'sEventFactory
class constructs a class name based on the notification type, even if that type isn't supported and the class doesn't actually exist. This ends up filling the logs with errors about these missing classes. This is confusing since unsupported event types ideally shouldn't trigger log-polluting exceptions.How to reproduce
ONE_TIME_CHARGE
Possible Solution
No response
Additional Context
[2024-06-10 23:55:57] development.ERROR: Class "Imdhemy\Purchases\Events\AppStore\OneTimeCharge" not found {"exception":"[object] (Error(code: 0): Class \"Imdhemy\\Purchases\\Events\\AppStore\\OneTimeCharge\" not found at /var/www/html/vendor/imdhemy/laravel-purchases/src/Events/EventFactory.php:51)
The text was updated successfully, but these errors were encountered: