readdle / app-store-server-api

Pure PHP library that allows managing customer transactions using the App Store Server API and handling server-to-server notifications using the App Store Server Notifications V2
MIT License
54 stars 20 forks source link

Unable to get data from HTTPRequestFailed Exception #14

Closed soxft closed 8 months ago

soxft commented 8 months ago

Unable to get data from HTTPRequestFailed Exception,

when i use $api->getTransactionInfo($transactionID), when $transactionID is not exists, this request should be 404,

and a HTTPRequestFailed will throw, but we could not get any responseText or statusCode from HTTPRequestFailed, so i cant 'let my program' to handle such errors

pkotets commented 8 months ago

Hi there,

Thanks for pointing this out to me!

I've implemented it in a bit different way in v3.7.0, so closing this issue. Feel free to reopen if you need any additional functionality related to this topic.