show-payment-methods.php
48 lines
| 1 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" |
| 2 | crossorigin="anonymous"> |
| 3 | |
| 4 | <div class="container mt-3 mb-3"> |
| 5 | <div class="row justify-content-center"> |
| 6 | <div class="col-md-6"> |
| 7 | <div class="card shadow"> |
| 8 | <div class="card-body"> |
| 9 | <form class="row" method="post" action="<?php echo esc_url( $form_action_url ); ?>"> |
| 10 | <!-- Form title --> |
| 11 | <div class="mb-3"> |
| 12 | <span><b>Available Payment Methods</b></span> |
| 13 | </div> |
| 14 | |
| 15 | <div class="mb-3"> |
| 16 | <label class="radio-label"> |
| 17 | <input type="radio" name="payment_method" value="CARD" class="radio-input"> |
| 18 | <span class="radio-text">Card</span> |
| 19 | </label> |
| 20 | </div> |
| 21 | |
| 22 | <?php foreach ($available_payment_methods as $type) : ?> |
| 23 | <div class=" mb-3"> |
| 24 | <label class="radio-label"> |
| 25 | <input type="radio" name="payment_method" value="<?php echo esc_attr( $type->paymentMethodType ); ?>" class="radio-input" required> |
| 26 | |
| 27 | <span class="radio-text"><?php echo esc_html( $type->logo->logoName ); ?></span> |
| 28 | </label> |
| 29 | </div> |
| 30 | <?php endforeach; ?> |
| 31 | |
| 32 | <input type="hidden" name="payment_data" value="<?php echo esc_attr( $payment_data ); ?>"> |
| 33 | |
| 34 | <div class="col align-self-center"> |
| 35 | <button type="submit" class="btn btn-success"> |
| 36 | Submit |
| 37 | </button> |
| 38 | <button type="button" class="btn btn-danger" onclick="window.location.href='<?php echo esc_url( $cancel_url ); ?>'"> |
| 39 | Cancel |
| 40 | </button> |
| 41 | </div> |
| 42 | </form> |
| 43 | </div> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 |