From 8532bdc172ba9f69b718681b91fa2c0999a24d52 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 23 May 2025 18:25:09 -0400 Subject: [PATCH] More UI updates to Guest Pay --- guest/guest_pay_invoice_stripe.php | 27 ++++++++++++++++----------- js/guest_pay_invoice_stripe.js | 3 --- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/guest/guest_pay_invoice_stripe.php b/guest/guest_pay_invoice_stripe.php index 5c24fcff..4d6127bd 100644 --- a/guest/guest_pay_invoice_stripe.php +++ b/guest/guest_pay_invoice_stripe.php @@ -129,17 +129,26 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent - - + 0) { ?> + + Discount + + + + + + 0) { ?> + + Paid + + + + + -
- 0){ echo "Discount: " . numfmt_format_currency($currency_format, $invoice_discount, $invoice_currency_code); } ?> - -
- 0) { ?> Already paid: @@ -155,10 +164,6 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent -
-
diff --git a/js/guest_pay_invoice_stripe.js b/js/guest_pay_invoice_stripe.js index ab8a60d5..d867a575 100644 --- a/js/guest_pay_invoice_stripe.js +++ b/js/guest_pay_invoice_stripe.js @@ -23,9 +23,6 @@ async function initialize() { elements = stripe.elements({ clientSecret }); - const linkAuthenticationElement = elements.create("linkAuthentication"); - linkAuthenticationElement.mount("#link-authentication-element"); - const paymentElementOptions = { layout: "tabs", };