[interchange] Selectively display online_check fields, for AuthNet or not

Josh Lavin interchange-cvs at icdevgroup.org
Thu Nov 2 20:08:15 UTC 2017


commit f25850fc740f3ccf42a96e8cebe54a0cdf1cfdf0
Author: Josh Lavin <digory at cpan.org>
Date:   Thu Nov 2 13:07:50 2017 -0700

    Selectively display online_check fields, for AuthNet or not

 dist/strap/include/checkout/payment_info |   31 ++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/dist/strap/include/checkout/payment_info b/dist/strap/include/checkout/payment_info
index d0835d5..0b72e65 100644
--- a/dist/strap/include/checkout/payment_info
+++ b/dist/strap/include/checkout/payment_info
@@ -229,6 +229,8 @@
 		[msg arg.0="[handling cod]"]There will be a %s charge added for COD.[/msg]
 </div>
 <div id="online_check" style="display:none">
+
+[if variable MV_PAYMENT_MODE eq authorizenet]
 	<div class="form-group" style="margin-top:1em">
 		<label for="check_accttype" class="col-sm-3 control-label">[error name=check_accttype std_label="[L]Type of Account[/L]" required=1]</label>
 		<div class="col-sm-9 col-md-6 col-lg-4">
@@ -274,6 +276,35 @@ Business Checking=Business Checking|]
 	<p class="text-info">
 		By clicking the button below, I authorize __COMPANY__ to charge my bank account today (or on the next business day) for [total-cost] for the items listed above.
 	</p>
+[else]
+	<div class="form-group">
+		<label for="check_account" class="col-sm-3 control-label">[error name=check_account std_label="[L]Account #[/L]" required=1]</label>
+		<div class="col-sm-9 col-md-6 col-lg-4">
+			<input class="form-control" type="text" name="check_account" id="check_account" value="[evalue check_account]">
+		</div>
+	</div>
+	<div class="form-group">
+		<label for="check_routing" class="col-sm-3 control-label">[error name=check_routing std_label="[L]Routing #[/L]" required=1]</label>
+		<div class="col-sm-9 col-md-6 col-lg-4">
+			<input class="form-control" type="text" name="check_routing" id="check_routing" value="[evalue check_routing]" maxlength=9>
+			<small class="help-block">(9 digits)</small>
+		</div>
+	</div>
+	<div class="form-group">
+		<label for="check_number" class="col-sm-3 control-label">[error name=check_number std_label="[L]Check #[/L]" required=1]</label>
+		<div class="col-sm-9 col-md-6 col-lg-4">
+			<input class="form-control" type="text" name="check_number" id="check_number" value="[evalue check_number]">
+		</div>
+	</div>
+	<div class="form-group">
+		<label for="check_bank_phone" class="col-sm-3 control-label">[error name=check_bank_phone std_label="[L]Bank Phone[/L]" required=1]</label>
+		<div class="col-sm-9 col-md-6 col-lg-4">
+			<input class="form-control" type="text" name="check_bank_phone" id="check_bank_phone" value="[evalue check_bank_phone]">
+		</div>
+	</div>
+[/else]
+[/if]
+
 </div>
 <div id="purchase_order" style="display:none">
 	<div class="form-group" style="margin-top:1em">



More information about the interchange-cvs mailing list