This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,41 @@
<div class="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 class="label" data-bind="attr: {'for': getCode()}">
<span data-bind="text: getTitle()"></span>
</label>
</div>
<div class="payment-method-content">
<!-- ko foreach: getRegion('messages') -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!-- /ko -->
<div class="payment-method-billing-address">
<!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!--/ko-->
</div>
<div id="oceanpayment-element" data-bind="afterRender: initOceanpayment"></div>
<p data-bind="i18n: 'Card details are securely collected by Oceanpayment.'"></p>
<div class="actions-toolbar">
<div class="primary">
<!-- ko ifnot: orderPlaced -->
<button class="action primary checkout"
type="submit"
data-bind="click: placeOrder, attr: {title: $t('Place Order')}, enable: (getCode() === isChecked()) && !processing() && isPlaceOrderActionAllowed(), css: {disabled: processing() || !isPlaceOrderActionAllowed()}">
<span data-bind="i18n: 'Place Order and Pay'"></span>
</button>
<!-- /ko -->
<!-- ko if: orderPlaced -->
<button class="action primary checkout"
type="button"
data-bind="click: retryPayment, enable: !processing(), css: {disabled: processing()}">
<span data-bind="i18n: 'Pay Now'"></span>
</button>
<!-- /ko -->
</div>
</div>
</div>
</div>
@@ -0,0 +1,31 @@
<div class="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 class="label" data-bind="attr: {'for': getCode()}">
<span data-bind="text: getTitle()"></span>
</label>
</div>
<div class="payment-method-content">
<!-- ko foreach: getRegion('messages') -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!-- /ko -->
<div class="payment-method-billing-address">
<!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!--/ko-->
</div>
<p data-bind="i18n: 'You will be redirected to Oceanpayment to complete your payment.'"></p>
<div class="actions-toolbar">
<div class="primary">
<button class="action primary checkout"
type="submit"
data-bind="click: placeOrder, attr: {title: $t('Place Order')}, enable: (getCode() === isChecked()), css: {disabled: !isPlaceOrderActionAllowed()}">
<span data-bind="i18n: 'Place Order'"></span>
</button>
</div>
</div>
</div>
</div>