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 332x                                                                
<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">
    <li class="d-block text-center p-2">{{ 'shopping_cart.payment.or.text' | translate }}</li>
    <li *ngFor="let paymentMethod of paymentMethods" class="d-block">
      <button
        (click)="fastCheckout(paymentMethod.id)"
        class="btn btn-lg btn-block btn-secondary"
        [disabled]="paymentMethod.isRestricted"
      >
        {{ paymentMethod.displayName }}
      </button>
      <!-- payment cost information -->
      <ish-basket-payment-cost-info
        [basket]="basket"
        [paymentMethod]="paymentMethod"
        [priceType]="priceType$ | async"
      />
    </li>
  </ng-container>
</ul>