<?php 
    /**
    *
    * copyright (c) 2013-2022 Heliac Technologies
    * license http://opensource.org/licenses/gpl-license.php GNU GPL v3 
    *
    * linee guida per l'utilizzo del logo https://www.geecom.org/?alias=linee-guida-per-luso-del-logo-geecom
    */
?>
    <div id="enabled-accounts-section" class="">
        <input type=text class="d-none" id="chiavePubblica" value="<?= $impostazioniPagamenti["chiavePubblicaStripe"] ?>">
        <input type=text class="d-none" id="secret">
        
        <div class="row mt-3">
                <div class="col-lg-6">
        	        <div class="card card-body">
				<form id="payment-form" class="sr-payment-form">
				    <div class="sr-form-row">
				      <label for="card-element mb-3">Inserisci i dati della tua carta</label>
				      <div class="sr-input sr-card-element border p-2" id="card-element"></div>
				    </div>
				    <div class="sr-form-row">
					<div class="sr-field-error" id="card-errors" role="alert"></div>
					<button class="btn btn-primary mt-3" id="submit">
					    <div class="spinner d-none" id="spinner"></div>
					    <span id ="button-text">Paga</span><span id="order-amount"></span>
					</button>
				    </div>
				</form>
        	        </div>
	        </div>
        </div>

        <div class="sr-result d-none">
          <p>Pagamento completato<br /></p>
          <pre>
            <code></code>
          </pre>
        </div>
    </div>