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
Stripe's exceptions return a lot of extra information about the HTTP request, which is awesome when debugging problems.
The HTTP Headers are held in a Stripe\Util\CaseInsensitiveArray collection. This makes it easy to get individual headers, but there's no way to get all of them, either via a ->all() method or by iterating:
foreach ($exception->getHttpHeaders() as $k => $v) {
// This is never entered
}
When handling the exception I would like to record all headers, so getting them would be very handy.
The text was updated successfully, but these errors were encountered:
Stripe's exceptions return a lot of extra information about the HTTP request, which is awesome when debugging problems.
The HTTP Headers are held in a
Stripe\Util\CaseInsensitiveArray
collection. This makes it easy to get individual headers, but there's no way to get all of them, either via a->all()
method or by iterating:When handling the exception I would like to record all headers, so getting them would be very handy.
The text was updated successfully, but these errors were encountered: