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

Prevent undefined index error #156

Closed daaquan closed 2 years ago

daaquan commented 2 years ago

Prevent error when use \ReceiptValidator\iTunes\PendingRenewalInfo::offsetGet()

PHP Notice: Undefined index: is_in_billing_retry_period in /var/www/html/aporat/store-receipt-validator/src/iTunes/PendingRenewalInfo.php on line 299

Stafox commented 2 years ago

You can use 'isInBillingRetryPeriod()' Or call 'offsetExists()' before.

daaquan commented 2 years ago

Thanks for your reply. You're quite right I think.