iframe-methods.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
  8. <div class="payment-method-title field choice">
  9. <input type="radio"
  10. name="payment[method]"
  11. class="radio"
  12. data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
  13. <label class="label" data-bind="attr: {'for': getCode()}"><span data-bind="text: getTitle()"></span></label>
  14. </div>
  15. <div class="payment-method-content">
  16. <!-- ko foreach: getRegion('messages') -->
  17. <!-- ko template: getTemplate() --><!-- /ko -->
  18. <!--/ko-->
  19. <div class="payment-method-billing-address">
  20. <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
  21. <!-- ko template: getTemplate() --><!-- /ko -->
  22. <!--/ko-->
  23. </div>
  24. <div class="checkout-agreements-block">
  25. <!-- ko foreach: $parent.getRegion('before-place-order') -->
  26. <!-- ko template: getTemplate() --><!-- /ko -->
  27. <!--/ko-->
  28. </div>
  29. <div class="actions-toolbar" data-bind="visible: !isInAction()">
  30. <div class="primary">
  31. <button data-role="review-save"
  32. type="submit"
  33. data-bind="click: placePendingPaymentOrder, attr: {title: $t('Continue')}, css: {disabled: !isPlaceOrderActionAllowed()}"
  34. class="button action primary checkout">
  35. <span data-bind="i18n: 'Continue'"></span>
  36. </button>
  37. </div>
  38. </div>
  39. <div data-bind="visible: isInAction()">
  40. <div id="iframe-warning" class="message notice">
  41. <div><!-- ko i18n: 'Please do not refresh the page until you complete payment.' --><!-- /ko --></div>
  42. </div>
  43. <!-- ko if: isPaymentReady() -->
  44. <iframe data-bind="attr: {id: getCode() + '-iframe', src: getActionUrl()}, event: {load: iframeLoaded}"
  45. data-container="paypal-iframe"
  46. class="paypal iframe"
  47. scrolling="no"
  48. frameborder="0"
  49. border="0"
  50. height="610"
  51. width="100%"
  52. >
  53. </iframe>
  54. <!-- /ko -->
  55. </div>
  56. </div>
  57. </div>