{
Request to
{
myMessage ? ' receive' : ' pay'
- } {cryptoUtils.msatToCurrentCryptoUnit(props, payloadObj.amtMsat)} {props.selectedCryptoUnit}
+ }
{cryptoUtils.msatToCurrentCryptoUnit(props, invoiceObj?.millisatoshis)} {props.selectedCryptoUnit}
{
- myMessage ? checkPayreq(payloadObj.id)
+ myMessage ? checkMyPayreq(payloadObj.c)
?
Paid
-
:
Pending
-
-
- : checkPayreq(payloadObj.id) ?
+ : checkPayreq(payloadObj.c) ?
Paid
:
-
+
+
-
}
{
fontSize: '10px'
}}
>
- ID
- {payloadObj.id}
+ Payreq:
+
+ {`${payloadObj?.c?.substring(
+ 0,
+ 5
+ )}...${payloadObj?.c?.substring(
+ payloadObj?.c?.length - 5,
+ payloadObj?.c?.length
+ )}: `}
+
+ {
+ let copyText = document.getElementById(
+ "payreq" + payloadObj.c
+ );
+ copyText.select();
+ copyText.setSelectionRange(0, 99999);
+ document.execCommand("copy");
+ NotificationManager.info("Copied to clipboard");
+ }}
+ />
+ {}}
+ />
+
+
+
+ Expiry in:
+ {invoiceTimeLeft > 0 ? secondsToDhms(invoiceTimeLeft) : (EXPIRED)}
);
case "payreq_pay":
- satisfyPayreq(payloadObj.id);
- return (
+ registerPaidPayreq(payloadObj.c);
+ return(