admin charge and view in stripe
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">$</div>
|
||||
</div>
|
||||
<input name="enhancerCharge" type="text" class="form-control txtCal" id="inlineFormInputGroup" value="<?=$guest->enhancer_qty * $_SERVER['ENHANCER_TICKET_PRICE']?>">
|
||||
<input name="enhancerCharge" type="text" class="form-control txtCal" id="inlineFormInputGroup" value="<?=$guest->enhancer_qty * $_SERVER['ENHANCER_TICKET_PRICE_SINGLE']?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
@@ -48,9 +48,16 @@
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">$</div>
|
||||
</div>
|
||||
<input name="totalCharge" type="text" class="form-control" id="totalCharge" value="<?=$guest->enhancer_qty * $_SERVER['ENHANCER_TICKET_PRICE']?>" readonly>
|
||||
<input name="totalCharge" type="text" class="form-control" id="totalCharge" value="<?=$guest->enhancer_qty * $_SERVER['ENHANCER_TICKET_PRICE_SINGLE']?>" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (empty($guest->stripe_id)) {?>
|
||||
<div class="form-group form-check">
|
||||
<input type="checkbox" class="form-check-input" id="sendViaStripe" name="sendViaStripe">
|
||||
<label class="form-check-label" for="sendViaStripe">Send invoice via stripe?</label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Checkout</button>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="inputEnhancers">How many enhancers packs are given (10 per pack)?</label>
|
||||
<label for="inputEnhancers">How many enhancers sold (these are single tickets)?</label>
|
||||
<input type="number" class="form-control" id="inputEnhancers" name="enhancerQty" value="0">
|
||||
<input type="hidden" class="form-control" id="inputGuestId" name="guestId" value="0">
|
||||
</div>
|
||||
@@ -79,6 +79,7 @@
|
||||
<a class="dropdown-item" href="/admin/guest/add-card/<?=$guest->id?>">Add Credit Card</a>
|
||||
<?php } else { ?>
|
||||
<a class="dropdown-item" href="/admin/guest/delete-card/<?=$guest->id?>">Delete Credit Card</a>
|
||||
<a class="dropdown-item" href="https://dashboard.stripe.com/customers/<?=$guest->stripe_id?>">View in Stripe</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item" href="/admin/guest/checkout/<?=$guest->id?>">Checkout</a>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user