aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

Cannot get web_order_line_item_id if it's null #93

Closed lancasterSano closed 5 years ago

lancasterSano commented 5 years ago

I have an issue with library, it is used for validating receipts in production. When web_order_line_item_id is null, I can't get it.

TypeError: Return value of ReceiptValidator\iTunes\PurchaseItem::getWebOrderLineItemId() must be of the type string, null returned in /data/projects/walking/vendor/aporat/store-receipt-validator/src/iTunes/PurchaseItem.php:224
Stafox commented 5 years ago

Just FYI. web_order_line_item_id can not be null for production transactions.