All files / src/app/pages/basket/shopping-basket-payment shopping-basket-payment.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 412x                                                                                
<ul *ngIf="isApplicable()" class="list-unstyled mb-0">
  <ish-error-message
    *ngIf="redirectStatus === 'cancel'"
    [error]="{ message: 'shopping_cart.payment.canceled.text' | translate }"
  />
  <ish-error-message
    *ngIf="redirectStatus === 'failure'"
    [error]="{
      message: ('checkout.payment.sorry_message.text' | translate) + ' ' + ('checkout.payment.failed.text' | translate)
    }"
  />
 
  <!-- container for displaying of fast checkout payment methods -->
  <ng-container *ngIf="paymentMethods$ | async as paymentMethods">
    <ng-container *ngIf="paymentMethods.length">
      <li class="d-block text-center pt-1">{{ 'shopping_cart.payment.or.text' | translate }}</li>
      <li *ngFor="let paymentMethod of filteredPaymentMethods$ | async" class="d-block">
        <div class="d-grid mt-2">
          <button
            type="button"
            (click)="fastCheckout(paymentMethod.id)"
            class="btn btn-lg btn-block btn-secondary"
            [disabled]="paymentMethod.isRestricted"
          >
            {{ paymentMethod.displayName }}
          </button>
        </div>
        <!-- payment cost information -->
        <ish-basket-payment-cost-info
          [basket]="basket"
          [paymentMethod]="paymentMethod"
          [priceType]="priceType$ | async"
        />
      </li>
      <li *ngIf="'preferences.PayPalCheckoutPreferences' | ishServerSetting">
        <ish-payment-paypal [pageType]="'cart'" (selectPaypalPaymentMethod)="setBasketPayment($event)" />
      </li>
    </ng-container>
  </ng-container>
</ul>