Skip to content

Commit

Permalink
payment paypal cb done
Browse files Browse the repository at this point in the history
  • Loading branch information
FunixG committed Feb 16, 2024
1 parent 9ec7a7f commit df97d9c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export class ShopPaymentCreditCardComponent {
}

createOrder(): void {
if (this.shopService.totalArticlesInBasket() === 0) {
this.notificationService.info("Votre panier est vide. Veuillez ajouter des articles avant de procéder au paiement.", "Paiement");
return;
}

const request = new PacifistaPaymentRequestDTO();
request.creditCard = this.createCardDTO();
request.articles = this.shopService.createArticlesRequestList();
Expand Down

0 comments on commit df97d9c

Please sign in to comment.