diff options
Diffstat (limited to 'packages/taler-util/src/taleruri.ts')
-rw-r--r-- | packages/taler-util/src/taleruri.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts index 6c0dc7b86..09c70682a 100644 --- a/packages/taler-util/src/taleruri.ts +++ b/packages/taler-util/src/taleruri.ts @@ -22,6 +22,7 @@ export interface PayUriResult { orderId: string; sessionId: string; claimToken: string | undefined; + noncePriv: string | undefined; } export interface WithdrawUriResult { @@ -147,6 +148,7 @@ export function parsePayUri(s: string): PayUriResult | undefined { const c = pi?.rest.split("?"); const q = new URLSearchParams(c[1] ?? ""); const claimToken = q.get("c") ?? undefined; + const noncePriv = q.get("n") ?? undefined; const parts = c[0].split("/"); if (parts.length < 3) { return undefined; @@ -163,6 +165,7 @@ export function parsePayUri(s: string): PayUriResult | undefined { orderId, sessionId: sessionId, claimToken, + noncePriv, }; } |