PluginProbe
Omise Payments / 3.9
Omise Payments v3.9
7.2.1 7.2.0 trunk 1.2.3 3.0 3.1 3.10 3.11 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.10 4.11 4.12 4.13 4.14 4.15 4.15.1 All 97 releases
omise / templates / payment / form.php

form.php in Omise Payments 3.9, at templates/payment/form.php

45 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php $showExistingCards = $viewData['user_logged_in'] && isset( $viewData['existingCards']['data'] ) && sizeof( $viewData['existingCards']['data'] ) > 0; ?>
2
3 <div id="omise_cc_form">
4 <?php if ( $showExistingCards ) : ?>
5 <h3><?php _e( 'Use an existing card', 'omise' ); ?></h3>
6 <ul class="omise-customer-card-list">
7 <?php foreach ( $viewData['existingCards']['data'] as $row => $card ) : ?>
8 <li class="item">
9 <input <?php echo $row === 0 ? 'checked=checked' : ''; ?> id="card-<?php echo $card['id']; ?>" type="radio" name="card_id" value="<?php echo $card['id']; ?>" />
10 <label for="card-<?php echo $card['id']; ?>">
11 <?php echo '<strong>' . $card['brand'] . '</strong> xxxx' . $card['last_digits']; ?>
12 </label>
13 </li>
14 <?php endforeach; ?>
15 </ul>
16 <?php endif; ?>
17
18 <div>
19 <?php if ( $showExistingCards ) : ?>
20 <input id="new_card_info" type="radio" name="card_id" value="" />
21 <label id="label-new_card_info" for="new_card_info">
22 <h3><?php _e( 'Create a charge using new card', 'omise' ); ?></h3>
23 </label>
24 <?php endif; ?>
25
26 <fieldset id="new_card_form" class="<?php echo $showExistingCards ? 'card-exists' : ''; ?>">
27
28 <?php require_once( 'form-creditcard.php' ); ?>
29
30 <div class="clear"></div>
31
32 <?php if ( $viewData['user_logged_in'] ) : ?>
33 <p class="omise-remember-card">
34 <input type="checkbox" name="omise_save_customer_card" id="omise_save_customer_card" />
35 <label for="omise_save_customer_card" class="inline">
36 <?php _e( 'Remember this card', 'omise' ); ?>
37 </label>
38 </p>
39 <?php endif; ?>
40
41 <div class="clear"></div>
42 </fieldset>
43 </div>
44 </div>
45