diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json index cffe73e3f..eb3aa1834 100644 --- a/packages/merchant-backoffice-ui/package.json +++ b/packages/merchant-backoffice-ui/package.json @@ -1,8 +1,8 @@ { "private": true, "name": "@gnu-taler/merchant-backoffice", - "version": "0.0.4", - "license": "MIT", + "version": "0.0.5", + "license": "AGPL-3.0-or-later", "type": "module", "scripts": { "build": "./build.mjs", diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx index 92427f3dc..b82907122 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx @@ -14,6 +14,7 @@ GNU Taler; see the file COPYING. If not, see */ +import { parsePaytoUri, stringifyPaytoUri } from "@gnu-taler/taler-util"; import { useTranslationContext } from "@gnu-taler/web-util/lib/index.browser"; import { h, VNode } from "preact"; import { QR } from "../../../../components/exception/QR.js"; @@ -36,7 +37,13 @@ export function CreatedSuccessfully({ onConfirm, onCreateAnother, }: Props): VNode { - const link = `${entity.response.payto_uri}?message=${entity.response.reserve_pub}&amount=${entity.request.initial_balance}`; + const p = parsePaytoUri(entity.response.payto_uri); + if (p) { + p.params["message"] = entity.response.reserve_pub; + p.params["amount"] = entity.request.initial_balance; + } + + const link = !p ? entity.response.payto_uri : stringifyPaytoUri(p); const { i18n } = useTranslationContext(); return (