- if (!customer.isLoggedIn()) {
-     serviceUrl = urlBuilder.createUrl('/guest-carts/:quoteId/payment-information', {
-         quoteId: quote.getQuoteId()
-     });
-     payload = {
-         cartId: quote.getQuoteId(),
-         email: quote.guestEmail,
-         paymentMethod: paymentData,
-         billingAddress: quote.billingAddress()
-     };
- } else {
-     serviceUrl = urlBuilder.createUrl('/carts/mine/payment-information', {});
-     payload = {
-         cartId: quote.getQuoteId(),
-         paymentMethod: paymentData,
-         billingAddress: quote.billingAddress()
-     };
- }
-