1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!--
- /**
- * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use this file except in compliance with the License.
- * A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- * express or implied. See the License for the specific language governing
- * permissions and limitations under the License.
- */
- -->
- <!-- ko if: (isPwaVisible) -->
- <!-- ko if: (isAmazonAccountLoggedIn) -->
- <div class="payment-method amazon-payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
- <div class="payment-method-title field choice">
- <input type="radio"
- name="payment[method]"
- class="radio"
- data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
- <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
- </div>
- <div class="payment-method-content">
- <!-- ko foreach: getRegion('messages') -->
- <!-- ko template: getTemplate() --><!-- /ko -->
- <!--/ko-->
- <div class="amazon-widget-container">
- <div id="walletWidgetDiv" class="amazon-widget amazon-widget--payment" data-bind="afterRender: initPaymentWidget"></div>
- </div>
- <div class="checkout-agreements-block">
- <!-- ko foreach: $parent.getRegion('before-place-order') -->
- <!-- ko template: getTemplate() --><!-- /ko -->
- <!--/ko-->
- </div>
- <div class="actions-toolbar">
- <div class="primary">
- <button class="action primary checkout"
- type="submit"
- data-bind="
- click: placeOrder,
- attr: {title: $t('Place Order')},
- css: {disabled: isPlaceOrderDisabled()},
- enable: (getCode() == isChecked())
- "
- disabled>
- <span data-bind="i18n: 'Place Order'"></span>
- </button>
- </div>
- </div>
- </div>
- </div>
- <!--/ko-->
- <!--/ko-->
|