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
I was integrating the SDK and was glad to see support for granular response code handling. However, it appears this isn’t actually used due to the call to ->returnApiResponse():
This forces the implementing app to manually check isSuccessful() and handle errors without context, which can be cumbersome.
I understand that removing ->returnApiResponse() would be a breaking change, but doing so would also unlock better type safety and IDE support by allowing response models to be proper return types.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
I was integrating the SDK and was glad to see support for granular response code handling. However, it appears this isn’t actually used due to the call to
->returnApiResponse()
:PayPal-PHP-Server-SDK/src/Controllers/PaymentsController.php
Lines 123 to 133 in 671a2b2
This forces the implementing app to manually check
isSuccessful()
and handle errors without context, which can be cumbersome.I understand that removing
->returnApiResponse()
would be a breaking change, but doing so would also unlock better type safety and IDE support by allowing response models to be proper return types.The text was updated successfully, but these errors were encountered: