gnu-taler-payment-for-magento

Adobe Commerce (Magento) plugin to enable payments with GNU Taler
Log | Files | Refs | README

form.html (3008B)


      1 <!--
      2 /**
      3 *
      4 * This file is part of TALER
      5 * Copyright (C) 2024 Taler Systems SA
      6 *
      7 * TALER is free software; you can redistribute it and/or modify it under the
      8 * terms of the GNU General Public License as published by the Free Software
      9 * Foundation; either version 3, or (at your option) any later version.
     10 *
     11 * TALER is distributed in the hope that it will be useful, but WITHOUT ANY
     12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     13 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     14 *
     15 * You should have received a copy of the GNU General Public License along with
     16 * TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     17 *
     18 * @author Nicola Eigel
     19  */
     20 -->
     21 <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
     22     <!-- Checkout possibility of payment method -->
     23     <div class="payment-method-title field choice">
     24         <input type="radio"
     25                name="payment[method]"
     26                class="radio"
     27                data-bind="attr: {'id': getCode()},
     28                value: getCode(),
     29                checked: isChecked,
     30                click: selectPaymentMethod,
     31                visible: isRadioButtonVisible()"
     32         />
     33         <!-- Label of payment method -->
     34         <label class="label" data-bind="attr: {'for': getCode()}">
     35             <span data-bind="text: getTitle()"></span>
     36         </label>
     37 
     38         <!-- Body -->
     39         <div class="payment-method-content">
     40             <!-- Message container -->
     41             <!-- ko foreach: getRegion('messages') -->
     42             <!-- ko template: getTemplate() --><!-- /ko -->
     43             <!--/ko-->
     44 
     45             <!-- Default billing address block -->
     46             <div class="payment-method-billing-address">
     47                 <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
     48                 <!-- ko template: getTemplate() --><!-- /ko -->
     49                 <!--/ko-->
     50             </div>
     51 
     52             <!-- Before place order -->
     53             <div class="checkout-agreements-block">
     54                 <!-- ko foreach: $parent.getRegion('before-place-order') -->
     55                 <!-- ko template: getTemplate() --><!-- /ko -->
     56                 <!--/ko-->
     57             </div>
     58 
     59             <!-- Place order button -->
     60             <div class="actions-toolbar">
     61                 <div class="primary">
     62                     <button data-role="review-save"
     63                             class="action primary checkout"
     64                             type="submit"
     65                             data-bind="
     66                                 click: talerAction,
     67                                 enable: (getCode() == isChecked()),
     68                                 css: {disabled: !isPlaceOrderActionAllowed()}"
     69                             disabled>
     70                         <img data-bind="attr: { src: getLogoUrl(), alt: $t('Place Order'), width: '100' }"/>
     71                     </button>
     72                 </div>
     73             </div>
     74         </div>
     75     </div>
     76 </div>