Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 2x | @if (isApplicable()) {
<ul class="list-unstyled mb-0">
@switch (redirectStatus$ | async) {
@case ('cancel') {
<ish-error-message [error]="{ message: 'shopping_cart.payment.canceled.text' | translate }" />
}
@case ('failure') {
<ish-error-message
[error]="{
message:
('checkout.payment.sorry_message.text' | translate) + ' ' + ('checkout.payment.failed.text' | translate),
}"
/>
}
@case ('unavailable') {
<ish-error-message
[error]="{
message: ('checkout.payment.service.unavailable.text' | translate),
}"
/>
}
}
<!-- container for displaying of fast checkout payment methods -->
@if (paymentMethods$ | async; as paymentMethods) {
@if (paymentMethods.length) {
<li class="d-block text-center pt-1">{{ 'shopping_cart.payment.or.text' | translate }}</li>
@for (paymentMethod of filteredPaymentMethods$ | async; track paymentMethod.id) {
<li class="d-block">
<div class="d-grid mt-2">
<button
class="btn btn-lg btn-block btn-secondary"
type="button"
[disabled]="paymentMethod.isRestricted"
(click)="fastCheckout(paymentMethod.id)"
>
{{ paymentMethod.displayName }}
</button>
</div>
<!-- payment cost information -->
<ish-basket-payment-cost-info
[basket]="basket"
[paymentMethod]="paymentMethod"
[priceType]="priceType$ | async"
/>
</li>
}
@if ('payment.paypal' | ishServerSetting) {
@if (getPayPalPaymentMethod() | async; as paypalPaymentMethod) {
<li>
<ish-payment-paypal adapterType="Buttons" pageType="cart" [selectedPaymentMethod]="paypalPaymentMethod" />
</li>
}
}
}
}
</ul>
}
|