From f1c25e678e9ad7376bf640da0ab0c6d058efd92b Mon Sep 17 00:00:00 2001 From: cnohall Date: Tue, 10 Sep 2024 15:37:53 +0900 Subject: [PATCH] change the payment screen --- .../ninja2020/gateways/blockonomics/pay.blade.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/resources/views/portal/ninja2020/gateways/blockonomics/pay.blade.php b/resources/views/portal/ninja2020/gateways/blockonomics/pay.blade.php index 34e1e480db65..baf8bc44ac71 100644 --- a/resources/views/portal/ninja2020/gateways/blockonomics/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/blockonomics/pay.blade.php @@ -4,12 +4,11 @@
-
+

The invoice will be marked as paid automatically once the payment is confirmed. -
+
-->
Invoice #{{$invoice_number}}
To pay, send exactly this BTC amount
@@ -104,9 +103,9 @@ console.log('Payment status:', data.status); const isPaymentUnconfirmed = data.status === 0; const isPaymentPartiallyConfirmed = data.status === 1; - const isPaymentConfirmed = data.status === 2; - const shouldSubmitForm = isPaymentUnconfirmed || isPaymentConfirmed || isPaymentPartiallyConfirmed; - if (shouldSubmitForm) { + // TODO: Do we need to handle Payment confirmed status? + // This usually takes too long to happen, so we can just wait for the unconfirmed status? + if (isPaymentUnconfirmed || isPaymentPartiallyConfirmed) { document.querySelector('input[name="txid"]').value = data.txid || ''; document.getElementById('server-response').submit(); } @@ -164,7 +163,7 @@ transform: translateY(-50%); cursor: pointer; } - .progress-message { + /* .progress-message { display: none; margin: 90px 0; max-width: 400px; @@ -174,7 +173,7 @@ #link { color: #007bff; text-decoration: underline; - } + } */