diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:55:38 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-19 20:55:38 +0530 |
commit | 082498b20d2a73009bb4193cd95ab409159fb972 (patch) | |
tree | 4416c1aa26fa5b3203fb5b0f1544dc7affe8dddf /packages/taler-wallet-core/src/util | |
parent | f7299a1aa0952490629588aa5a853999684b3fb9 (diff) | |
download | wallet-core-082498b20d2a73009bb4193cd95ab409159fb972.tar.xz |
use /paid API for proof of purchase
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/http.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/http.ts b/packages/taler-wallet-core/src/util/http.ts index 72de2ed1d..22566daac 100644 --- a/packages/taler-wallet-core/src/util/http.ts +++ b/packages/taler-wallet-core/src/util/http.ts @@ -151,6 +151,15 @@ export async function readSuccessResponseJsonOrErrorCode<T>( }; } +export function getHttpResponseErrorDetails( + httpResponse: HttpResponse, +): Record<string, unknown> { + return { + requestUrl: httpResponse.requestUrl, + httpStatusCode: httpResponse.status, + }; +} + export function throwUnexpectedRequestError( httpResponse: HttpResponse, talerErrorResponse: TalerErrorResponse, |