Drupal: "Stripe za Drupal v3 popravek"

This commit is contained in:
Robert 2020-11-16 15:45:16 +01:00
parent 466ae22379
commit 9041a18922

View File

@ -695,76 +695,76 @@
</div>
<div class="col placilo-kartica">
<h5>
<?php if ($language->language == 'sl'): ?>
Kreditna kartica
<?php else: ?>
Credit card
<?php endif; ?>
</h5>
<form id="form-stripe-placilo" method="post">
<!-- <div class="col placilo-kartica">-->
<!-- <h5>-->
<!-- --><?php //if ($language->language == 'sl'): ?>
<!-- Kreditna kartica-->
<!-- --><?php //else: ?>
<!-- Credit card-->
<!-- --><?php //endif; ?>
<!-- </h5>-->
<!---->
<!-- <form id="form-stripe-placilo" method="post">-->
<?php include($_SERVER["DOCUMENT_ROOT"].'/settings_optional.php'); ?>
<input type="hidden" id="stripe-token" name="stripe-token" value="<?php printf($stripe_key); ?>" />
<input type="hidden" name="stripe-robotsko-narocilo" value="" />
<div class="w-clearfix">
<div class="col _3-3-3-12">
<input type="text"
id="stripe-name"
class="input-field w-input"
name="name"
placeholder=" <?php printf ($language->language == 'sl' ? 'Ime uporabnika kartice' : 'Card Holder Name'); ?>" required="required">
</div>
</div>
<div class="w-clearfix">
<div class="col _3-3-3-12">
<input type="text"
id="stripe-card-number"
class="input-field w-input"
name="card-number"
placeholder="<?php printf ($language->language == 'sl' ? 'Številka kartice' : 'Card Number'); ?>" required="required">
</div>
</div>
<div class="w-clearfix">
<div class="col _3-3-3-12 kreditna-mesec-cvc">
<div>
<label><?php printf ($language->language == 'sl' ? 'Mesec / Leto izteka' : 'Expiry Month / Year'); ?></label>
<span id="userEmail-info" class="info"></span>
<select name="month" id="stripe-month" class="input-field w-input">
<?php for($i=1; $i < 13; $i++): ?>
<option value="<?php printf("%02d", $i); ?>"><?php printf("%02d", $i); ?></option>
<?php endfor; ?>
</select>
<select name="year" id="stripe-year" class="input-field w-input">
<?php for($i=0; $i < 10; $i++): ?>
<option value="<?php echo date('y') + $i; ?>"><?php echo date('Y') + $i; ?></option>
<?php endfor; ?>
</select>
</div>
<div>
<label>CVC</label>
<span id="cvv-info" class="info"></span>
<input type="number" maxlength="3" name="cvc" id="stripe-cvc"
class="input-field w-input">
</div>
</div>
</div>
</form>
<div id="stripe-error-message"></div>
</div>
<!---->
<!-- <input type="hidden" name="stripe-robotsko-narocilo" value="" />-->
<!---->
<!-- <div class="w-clearfix">-->
<!-- <div class="col _3-3-3-12">-->
<!-- <input type="text"-->
<!-- id="stripe-name"-->
<!-- class="input-field w-input"-->
<!-- name="name"-->
<!-- placeholder=" --><?php //printf ($language->language == 'sl' ? 'Ime uporabnika kartice' : 'Card Holder Name'); ?><!--" required="required">-->
<!-- </div>-->
<!-- </div>-->
<!---->
<!-- <div class="w-clearfix">-->
<!-- <div class="col _3-3-3-12">-->
<!-- <input type="text"-->
<!-- id="stripe-card-number"-->
<!-- class="input-field w-input"-->
<!-- name="card-number"-->
<!-- placeholder="--><?php //printf ($language->language == 'sl' ? 'Številka kartice' : 'Card Number'); ?><!--" required="required">-->
<!-- </div>-->
<!-- </div>-->
<!---->
<!-- <div class="w-clearfix">-->
<!-- <div class="col _3-3-3-12 kreditna-mesec-cvc">-->
<!-- <div>-->
<!-- <label>--><?php //printf ($language->language == 'sl' ? 'Mesec / Leto izteka' : 'Expiry Month / Year'); ?><!--</label>-->
<!-- <span id="userEmail-info" class="info"></span>-->
<!-- <select name="month" id="stripe-month" class="input-field w-input">-->
<!-- --><?php //for($i=1; $i < 13; $i++): ?>
<!-- <option value="--><?php //printf("%02d", $i); ?><!--">--><?php //printf("%02d", $i); ?><!--</option>-->
<!-- --><?php //endfor; ?>
<!-- </select>-->
<!---->
<!-- <select name="year" id="stripe-year" class="input-field w-input">-->
<!-- --><?php //for($i=0; $i < 10; $i++): ?>
<!-- <option value="--><?php //echo date('y') + $i; ?><!--">--><?php //echo date('Y') + $i; ?><!--</option>-->
<!-- --><?php //endfor; ?>
<!-- </select>-->
<!---->
<!-- </div>-->
<!-- <div>-->
<!-- <label>CVC</label>-->
<!-- <span id="cvv-info" class="info"></span>-->
<!-- <input type="number" maxlength="3" name="cvc" id="stripe-cvc"-->
<!-- class="input-field w-input">-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </form>-->
<!-- <div id="stripe-error-message"></div>-->
<!-- </div>-->
</div>
<div class="col w-clearfix gumbi">
<input type="button" value="<?php printf ($language->language == 'sl' ? 'Oddaj naročilo' : 'Submit order'); ?>" class="submit-btn w-button" onclick="stripePay(event);" id="oddaj-stripe">
<!-- <input type="button" value="--><?php //printf ($language->language == 'sl' ? 'Oddaj naročilo' : 'Submit order'); ?><!--" class="submit-btn w-button" onclick="stripePay(event);" id="oddaj-stripe">-->
<input type="button" value="<?php printf ($language->language == 'sl' ? 'Oddaj naročilo' : 'Submit order'); ?>" data-wait="Prosim počakajte..." class="submit-btn w-button"
id="oddaj-narocilo">
<p class="paragraph">