Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

2.2 KB
Raw Blame
@await Component.InvokeAsync("Widget", new { widgetZone = "checkout_payment_method_top" })
@*v-cloak - see the note in Partials/ConfirmOrder*@
<div v-if="vmorder.PaymentMethod" v-cloak class="payment-method">
    <div v-if="vmorder.DisplayLoyaltyPoints" class="use-loyalty-points">
        <label class="form-check">
            <input v-if="vmorder.LoyaltyPointsEnoughToPayForOrder" id="UseLoyaltyPoints" name="UseLoyaltyPoints" type="checkbox" value="true" class="form-check-input" onchange="vmorder.vPaymentMethod.toggleUseLoyaltyPoints(this);"/>
            <input v-else id="UseLoyaltyPoints" name="UseLoyaltyPoints" type="checkbox" class="form-check-input" value="true"/>
            <span class="form-check-label"></span>
            <span class="custom-control-description">
                @Loc["Checkout.UseLoyaltyPoints"].ToString().Replace("{0}", "{{vmorder.LoyaltyPointsBalance}}").Replace("{1}", "{{vmorder.LoyaltyPointsAmount}}")
            </span>
        </label>
    </div>
    <div v-if="vmorder.PaymentMethods !== []" class="list-inline col-12 mt-2 mb-2 px-0" id="payment-method-block">
        <div v-for="(paymentMethod, index) in vmorder.PaymentMethods" class="col-12 method-name px-0">
            <label class="form-check flex-row">
                <input :id="'paymentmethod_' + index" type="radio" name="paymentmethod" :value="paymentMethod.PaymentMethodSystemName" :checked="paymentMethod.Selected" class="form-check-input">
                <span class="form-check-label"></span>
                <img v-if="paymentMethod.LogoUrl !== null" :src="paymentMethod.LogoUrl" :alt="paymentMethod.Name"/>
                <span v-if="paymentMethod.Description !== null" class="custom-control-description ps-1">
                    {{paymentMethod.Description}}
                    <template v-if="paymentMethod.Fee !== null">
                        {{paymentMethod.Fee}}
                    </template>
                </span>
            </label>
        </div>
    </div>
    <div v-else class="message-error alert alert-danger my-3">
        @Loc["Checkout.NoPaymentMethods"]
    </div>
</div>
@await Component.InvokeAsync("Widget", new { widgetZone = "checkout_payment_method_bottom" })