commit 20c1818449d024bd36fd7fc146631ecc44858fa3
parent 1c7b743ab810ce13fa7c7a7eb1f31ea1abd6ee1a
Author: Sebastian <sebasjm@taler-systems.com>
Date: Fri, 10 Jul 2026 20:13:30 -0300
fix #11625
Diffstat:
3 files changed, 10 insertions(+), 17 deletions(-)
diff --git a/packages/taler-merchant-webui/src/components/modal/index.tsx b/packages/taler-merchant-webui/src/components/modal/index.tsx
@@ -360,7 +360,6 @@ export function CompareAccountsModal({
interface ValidateBankAccountModalProps {
onCancel: () => void;
origin: Paytos.URI;
- targets: Paytos.URI[];
currency: string | undefined;
exchangeBaseUrl: string;
wireAccountHash: string;
@@ -447,8 +446,6 @@ export function ValidBankAccount({
? `${origin.address.substring(0, 8)}...`
: origin.displayName;
- const qrs = getQrCodesForPayto(Paytos.toFullString(payto));
- const strPayto = Paytos.toFullString(payto);
const [{ showDebugInfo }] = useCommonPreferences();
switch (instructions.subject.type) {
@@ -466,6 +463,13 @@ export function ValidBankAccount({
const sendAmount = Amounts.parseOrThrow(
instructions.subject.credit_amount,
);
+ payto.params["message"] =
+ instructions.subject.type === "SIMPLE"
+ ? instructions.subject.subject
+ : instructions.subject.qr_reference_number;
+ payto.params["amount"] = instructions.subject.credit_amount;
+ const strPayto = Paytos.toFullString(payto);
+ const qrs = getQrCodesForPayto(strPayto);
return (
<ConfirmModal
title={i18n.str`Validate bank account: ${from}`}
@@ -630,13 +634,12 @@ export function ValidBankAccount({
>
PayTo URI standard
</a>
- , you can use this{" "}
- <a href={Paytos.toFullString(payto)}>PayTo URI</a> link
+ , you can use this <a href={strPayto}>PayTo URI</a> link
instead.
</i18n.Translate>
</td>
<td>
- <CopyButton getContent={() => Paytos.toFullString(payto)} />
+ <CopyButton getContent={() => strPayto} />
</td>
</tr>
</tbody>
diff --git a/packages/taler-merchant-webui/src/paths/instance/kyc/list/index.tsx b/packages/taler-merchant-webui/src/paths/instance/kyc/list/index.tsx
@@ -146,20 +146,9 @@ function ShowInstructionForKycRedirect({
</ConfirmModal>
);
}
- const tgs = (e.payto_kycauths ?? [])
- .map((d) => Paytos.fromString(d))
- .filter((d) => {
- if (d.tag !== "ok") {
- // FIXME: maybe this need to be shown to the user more promptly
- console.error("The server replied with a wrong payto:// URI", d);
- }
- return d.tag === "ok";
- })
- .map((d) => d.value);
return (
<ValidBankAccount
origin={uri.value}
- targets={tgs}
onCancel={onCancel}
currency={e.exchange_currency}
exchangeBaseUrl={e.exchange_url}
diff --git a/packages/web-util/.prettierignore b/packages/web-util/.prettierignore
@@ -1 +1,2 @@
src/i18n/strings.ts
+src/tailwind.js