diff --git a/src/app/screens/ConfirmPayment/index.tsx b/src/app/screens/ConfirmPayment/index.tsx
index c92ec43f65..cc4a760477 100644
--- a/src/app/screens/ConfirmPayment/index.tsx
+++ b/src/app/screens/ConfirmPayment/index.tsx
@@ -1,9 +1,10 @@
import BudgetControl from "@components/BudgetControl";
+import Button from "@components/Button";
import ConfirmOrCancel from "@components/ConfirmOrCancel";
import Container from "@components/Container";
import PaymentSummary from "@components/PaymentSummary";
import PublisherCard from "@components/PublisherCard";
-import SuccessMessage from "@components/SuccessMessage";
+import ResultCard from "@components/ResultCard";
import lightningPayReq from "bolt11";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
@@ -30,6 +31,7 @@ function ConfirmPayment() {
const { t: tComponents } = useTranslation("components", {
keyPrefix: "confirm_or_cancel",
});
+ const { t: tCommon } = useTranslation("common");
const navState = useNavigationState();
const paymentRequest = navState.args?.paymentRequest as string;
@@ -82,7 +84,13 @@ function ConfirmPayment() {
);
auth.fetchAccountInfo(); // Update balance.
msg.reply(response);
- setSuccessMessage(t("success"));
+ setSuccessMessage(
+ t("success", {
+ amount: `${invoice.satoshis} (SATS)${
+ showFiat ? ` (${fiatAmount})` : ``
+ }`,
+ })
+ );
} catch (e) {
console.error(e);
if (e instanceof Error) toast.error(`Error: ${e.message}`);
@@ -112,7 +120,7 @@ function ConfirmPayment() {
return (
-
+
{!successMessage ? (
@@ -157,18 +165,22 @@ function ConfirmPayment() {
) : (
-
- {navState.origin && (
-
- )}
+
+
- window.close()}
+
diff --git a/src/app/screens/LNURLPay/index.tsx b/src/app/screens/LNURLPay/index.tsx
index 919382fc34..da27210ab6 100644
--- a/src/app/screens/LNURLPay/index.tsx
+++ b/src/app/screens/LNURLPay/index.tsx
@@ -305,7 +305,9 @@ function LNURLPay() {
isSuccess
message={`${valueSat} (SATS) ${
showFiat ? "(" + fiatValue + ")" : ""
- } ${t("were_sent_to")} ${navState.origin?.name || getRecipient()}`}
+ } ${tCommon("were_sent_to")} ${
+ navState.origin?.name || getRecipient()
+ }`}
/>
{isMessage && (
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index 17f07ce8d4..ef4abbcc1e 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -441,7 +441,6 @@
}
},
"lnurlpay": {
- "were_sent_to": "were sent to",
"amount": {
"label": "Amount"
},
@@ -564,7 +563,7 @@
},
"confirm_payment": {
"title": "Approve Payment",
- "success": "Payment sent!",
+ "success": "Payment of {{amount}} successful!",
"actions": {
"pay_now": "Pay now"
}
@@ -584,6 +583,7 @@
"copied": "Copied!",
"description": "Description",
"description_full": "Full Description",
+ "were_sent_to": "were sent to",
"message": "Message",
"actions": {
"back": "Back",
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index cc50c1a747..bc67d433f9 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -428,7 +428,7 @@
},
"confirm_payment": {
"title": "Aprobar Pago",
- "success": "¡Pago enviado!",
+ "success": "¡Pago de {{amount}} exitoso!!",
"actions": {
"pay_now": "Pagar Ahora"
}
diff --git a/src/i18n/locales/pt_BR/translation.json b/src/i18n/locales/pt_BR/translation.json
index 442ec226ae..7a78e5c83a 100644
--- a/src/i18n/locales/pt_BR/translation.json
+++ b/src/i18n/locales/pt_BR/translation.json
@@ -455,8 +455,7 @@
"email": {
"label": "E-mail"
},
- "success": "Sucesso, pagamento enviado!",
- "were_sent_to": "foram enviados para"
+ "success": "Sucesso, pagamento enviado!"
},
"receive": {
"title": "Receber",
@@ -527,7 +526,7 @@
},
"confirm_payment": {
"title": "Aprovar pagamento",
- "success": "Pagamento enviado!",
+ "success": "Pagamento de {{amount}} bem-sucedido!",
"actions": {
"pay_now": "Pague agora"
}
@@ -583,6 +582,7 @@
"optional": "Opcional",
"feedback": "Feedback",
"copied": "Copiado!",
+ "were_sent_to": "foram enviados para",
"actions": {
"delete": "Remover",
"edit": "Editar",