www.wfpcom.wayforpay.shop Open in urlscan Pro
88.85.72.114  Public Scan

URL: https://www.wfpcom.wayforpay.shop/
Submission: On January 08 via api from US — Scanned from US

Form analysis 1 forms found in the DOM

POST

<form id="checkoutForm" action="" method="post">
  <div class="block-header">
    <span class="prod-name"></span>
    <span class="prod-price"></span>
    <span class="prod-delivery-cost d-none"></span>
    <input type="hidden" id="prodId">
    <input type="hidden" id="inputModId" name="cart_prods[0][id]">
    <input type="hidden" id="inputProdName" name="cart_prods[0][name]">
    <input type="hidden" id="inputProdPrice" name="cart_prods[0][price]">
    <input type="hidden" id="inputProdModPrice" name="cart_prods[0][mod][price]">
    <input type="hidden" id="inputProdQuantity" name="cart_prods[0][quantity]" value="1">
    <input type="hidden" id="inputProdCurrency" name="cart_currency">
    <input type="hidden" id="inputSum" name="sum">
    <input type="hidden" id="inputAllowRegular" name="allowRegular">
    <input type="hidden" id="inputRegularMode" name="regularMode">
    <input type="hidden" id="inputRegularCount" name="regularCount">
  </div>
  <div class="form-block">
    <div class="form-group">
      <label class="control-label" for="fio">ПIБ</label>
      <input type="text" class="form-control required" value="" name="fio" oninput="checkoutForm.inputFio(this)" data-error-empty="Поле не може бути пустим">
    </div>
    <div class="form-group">
      <label class="control-label" for="fio">Телефон</label>
      <input type="text" class="form-control required" value="" name="phone" oninput="checkoutForm.inputPhone(this)" data-error-empty="Поле не може бути пустим">
    </div>
    <div class="form-group row">
      <label for="inputEmail" class="control-label">Email</label>
      <input type="text" class="form-control required" id="inputEmail" name="email" oninput="checkoutForm.inputEmail(this)" data-error-empty="Поле не може бути пустим">
    </div>
    <div class="attention">Вкажіть коректний email, на який буде відправлено посилання на продукт</div>
  </div>
  <div class="form-block border-0">
    <div class="form-title-second">Способи оплати</div>
    <div class="form-group">
      <select name="payment_option" class="form-control" id="selectPaymentOption" onchange="checkoutForm.changePaymentType(this)">
        <option value="onDelivery">При отриманні</option>
      </select>
    </div>
    <div id="paymentInfo">
      <!-- PAYMENT ON DELIVERY -->
      <div class="mt-3 d-none" id="paymentOnDelivery">
        <div class="row"> Оплата при отриманні замовлення </div>
      </div>
    </div>
  </div>
  <div class="form-block border-0 position-relative">
    <div class="minPriceInfo d-none">Мінімальна сума замовлення - <span class="minPriceValue"></span> <span class="minPriceCurrency"></span></div>
    <style>
      #promoWidget {
        font-size: 14px;
        margin-top: 10px;
      }

      #promoWidget #orderPromoCode {
        margin-top: 5px;
      }

      #promoWidget .info {
        color: #808080;
        font-size: 13px;
        font-weight: normal;
        line-height: 1.3;
        white-space: normal;
      }

      #promoWidget .form-group {
        margin-bottom: 5px;
      }

      #promoWidget a {
        color: var(--color-text);
      }
    </style>
    <div id="promoWidget" class="w-100" style="display:none;">
      <div id="iHavePromo" class="" style="display:none;">
        <a href="">
            <img src="/img/promo.png">
            <span style="text-decoration:underline;">Я маю промокод</span>
        </a>
      </div>
      <div class="row" id="orderPromoCode" style="display:none;">
        <div class="p-0 col-12">
          <div id="inputPromoCode-block" class="row">
            <div class="col-9 form-group pl-0" style="height:max-content;">
              <label for="inputPromoCode" class="control-label">Промокод</label>
              <input type="text" class="form-control" id="inputPromoCode" placeholder="Введіть промокод">
            </div>
            <div class="col-3 form-group">
              <button id="setPromoCode" class="btn btn-primary w-auto mt-0">Ok</button>
            </div>
          </div>
          <div id="usedPromoCode-block" class="row" style="display: none;">
            <div class="col-12 pl-0 form-group text-center">
              <img src="/img/promoUsed.png" style="width: 20px;">
              <span style="line-height: 20px;">Застосовано промокод</span>
            </div>
          </div>
        </div>
        <div class="pl-md-4 info mb-3 col-12"> Знижки за промокодами діють тільки при оплаті онлайн через WayForPay </div>
      </div>
    </div>
    <script>
      var PromoCode = (function() {
        let errorTranslates = {
          NotAllowedUsedFor: 'Не вірне значення поля usedFor',
          PromoIsNotActive: 'Акція не активна',
          PromoIsEnded: 'Акція закінчилась',
          PromoLimitExceeded: 'Превищено ліміт використання промокоду',
          PromoIsNotFound: 'Промокод не знайдено',
          InsufficientPrice: 'Мінімальна сума замовлення',
        };
        let _minPrice = 0;
        let _amount = 0;
        let _currency = 0;
        let _useFor = 'order';
        let _useForItems = [];
        let _hasPromoCode = false;
        let _isInitEvents = false;
        let _isBeginState = true;
        let cartCurrency = '';

        function init() {
          hidePromoCode();
          _hasPromoCode = false;
          hideIHavePromoCode();
          if (isRequiredConditions()) {
            let prodModId = +$('#checkoutForm #inputModId').val();
            cartCurrency = $('#checkoutForm #inputProdCurrency').val();
            $.ajax({
              url: '/promo-code/has-order-promo-codes',
              type: 'post',
              dataType: 'json',
              data: {
                useFor: 'order',
                currency: cartCurrency,
                prodModIds: [prodModId],
                _csrf: 'DOYIx5vWW4ab-cln6PTz88VcegDzGD4xzjBpYMPnkgWVagKpOZEPkzUZPCPSfD5R5dI_9jf5hxbp0-CSiCLM0w=='
              }
            }).done(function(data) {
              if (data.status) {
                showIHavePromoCode();
                $('#promoWidget').show();
                if (!_isInitEvents) {
                  initEvents();
                  _isInitEvents = true;
                }
                _hasPromoCode = true;
              }
            });
          }
        }

        function isRequiredConditions() {
          return $('#selectPaymentOption').val() === 'online';
        }

        function showIHavePromoCode() {
          if (_isBeginState) {
            $('#iHavePromo').fadeIn();
          }
        }

        function hideIHavePromoCode() {
          $('#iHavePromo').fadeOut(0);
        }

        function showPromoCode() {
          if (_hasPromoCode) {
            if (isRequiredConditions() && !_isBeginState) {
              hideIHavePromoCode()
              $('#orderPromoCode').fadeIn();
              cartCurrency = $('#inputProdCurrency').val();
            } else {
              hidePromoCode();
            }
          }
        }

        function hidePromoCode() {
          $('#orderPromoCode').fadeOut(0);
          resetPromoCode()
        }

        function resetPromoCode() {
          _minPrice = 0;
          _amount = 0;
          _currency = 0;
          _useFor = 'order';
          _useForItems = [];
          let inputPromoCodeEl = $('#inputPromoCode');
          inputPromoCodeEl.val('');
          $('#priceToPayPromo').remove();
          let totalSumCheckout = $('#checkoutForm .priceToPay');
          totalSumCheckout.css({
            fontWeight: '',
            textDecoration: '',
            fontSize: ''
          });
          let modalCart = $('#checkoutModal');
          modalCart.removeData('promoCode');
          modalCart.removeData('totalSumPromo');
          $('#usedPromoCode-block').fadeOut(0, function() {
            $('#inputPromoCode-block').fadeIn();
            $('.info').fadeIn();
          });
          inputPromoCodeEl.siblings('.help-block').remove();
          inputPromoCodeEl.closest('.form-group').removeClass('has-error');
        }

        function setPromoCode() {
          let code = $('#inputPromoCode').val().toUpperCase();
          if (code) {
            let prodPrice = parseFloat($('#inputProdPrice').val()) || 0;
            $.ajax({
              url: '/promo-code/use',
              type: 'post',
              dataType: 'json',
              data: {
                code: code,
                price: prodPrice,
                _csrf: 'DOYIx5vWW4ab-cln6PTz88VcegDzGD4xzjBpYMPnkgWVagKpOZEPkzUZPCPSfD5R5dI_9jf5hxbp0-CSiCLM0w=='
              }
            }).done(function(data) {
              if (data.status) {
                _amount = data.amount;
                _currency = data.currency;
                _useFor = data.useFor;
                _useForItems = data.useForItems && data.useForItems instanceof Array ? data.useForItems.map(function(item) {
                  return +item;
                }) : [];
                _minPrice = data.minPrice
                removeError();
                let prodSum = parseFloat($('#inputSum').val()) || 0;
                let totalSumPromo = getTotalSumPromo();
                if (+prodSum > +totalSumPromo) {
                  $('#inputPromoCode-block, .info').fadeOut(0, function() {
                    $('#usedPromoCode-block').fadeIn();
                  });
                  let totalSumCheckout = $('#checkoutForm .priceToPay');
                  totalSumCheckout.css({
                    fontWeight: 'normal',
                    textDecoration: 'line-through',
                    fontSize: '14px'
                  });
                  totalSumCheckout.after('<span id="priceToPayPromo" style="text-align:right;padding-left:10px;">' + totalSumPromo + ' ' + cartCurrency + '</span>');
                  let modalCart = $('#checkoutModal');
                  modalCart.data('promoCode', code);
                  modalCart.data('totalSumPromo', Math.round(parseFloat(totalSumPromo) * 100) / 100);
                } else {
                  let msg = (errorTranslates['PromoIsNotFound'] || 'PromoIsNotFound');
                  setError(msg);
                }
              } else if (data.error) {
                if (data.message) {
                  let msg = (errorTranslates[data.message] || data.message);
                  if (data.message === 'InsufficientPrice' && data.minPrice) {
                    msg += ' ' + data.minPrice + ' ' + cartCurrency;
                  }
                  setError(msg);
                }
              }
            });
          }
        }

        function recalculateSum() {
          let priceToPayPromoEl = $('#priceToPayPromo');
          if (priceToPayPromoEl.length) {
            let totalSumCheckout = $('#checkoutForm .priceToPay');
            let prodSum = parseFloat($('#inputSum').val()) || 0;
            let totalSumPromo = getTotalSumPromo();
            priceToPayPromoEl.remove();
            if (+prodSum > +totalSumPromo) {
              totalSumCheckout.after('<span id="priceToPayPromo" style="text-align:right;padding-left:10px;">' + totalSumPromo + ' ' + cartCurrency + '</span>');
              let modalCart = $('#checkoutModal');
              modalCart.data('totalSumPromo', +(+totalSumPromo).toFixed(2));
            }
          }
        }

        function getTotalSumPromo() {
          let deliverySum = 0;
          if ($('input[name="delivery_option"]:checked').val() === 'delivery') {
            let deliverySumText = checkoutForm.getDeliveryCost();
            deliverySum = (deliverySumText && !isNaN(deliverySumText)) ? parseFloat(deliverySumText) : 0;
          }
          let totalSumPromo = parseFloat($('#inputSum').val()) || 0;
          if (_useFor === 'order') {
            if (_minPrice && _minPrice > totalSumPromo) {
              resetPromoCode();
            } else {
              if (_currency === '%') {
                totalSumPromo = Math.round((+(totalSumPromo - (totalSumPromo * (_amount / 100))).toFixed(3)) * 100) / 100;
              } else {
                totalSumPromo -= _amount;
              }
            }
          } else if (_useForItems.length) {
            let itemId = +$('#prodId').val();
            if (_useForItems.includes(itemId)) {
              if (_currency === '%') {
                totalSumPromo = Math.round((+(totalSumPromo - (totalSumPromo * (_amount / 100))).toFixed(3)) * 100) / 100;
              } else {
                totalSumPromo -= _amount;
              }
            }
          }
          totalSumPromo += deliverySum;
          return (Math.round(totalSumPromo * 100) / 100).toFixed(2);
        }

        function setError(msg) {
          removeError();
          let inputPromoCode = $('#inputPromoCode');
          inputPromoCode.after('<span class="help-block" style="top:initial;bottom:initial;">' + msg + '</span>');
          inputPromoCode.closest('.form-group').addClass('has-error');
        }

        function removeError() {
          let inputPromoCode = $('#inputPromoCode');
          inputPromoCode.siblings('.help-block').remove();
          inputPromoCode.closest('.form-group').removeClass('has-error');
        }

        function initEvents() {
          $('#iHavePromo a').on('click', function() {
            $('#iHavePromo').fadeOut(function() {
              showPromoCode();
            });
            _isBeginState = false;
            return false;
          });
          $('#checkoutModal').on('hidden.bs.modal', function() {
            _isBeginState = true;
            hidePromoCode();
            showIHavePromoCode();
          });
          $('#selectPaymentOption').on('change', showPromoCode);
          $('#setPromoCode').on('click', function() {
            setPromoCode();
            return false;
          });
          $('#inputPromoCode').on('input', function() {
            let value = $(this).val().trim().toUpperCase();
            $(this).val(value);
            removeError();
          });
        }
        return {
          init: init,
          recalculateSum: recalculateSum,
        };
      })();
    </script>
    <script>
      window.addEventListener('load', function() {
        $('#checkoutModal').on('shown.bs.modal', function() {
          PromoCode.init();
        });
        $(document).on('checkoutForm:setDeliveryCost', function() {
          PromoCode.recalculateSum();
        });
      });
    </script>
    <button class="btn btn-primary checkout toPay" onclick="checkoutForm.submit(event, this)">Оплатити <span class="priceToPay"></span></button>
  </div>
</form>

Text Content

Test
 * Переваги
 * Оплата
 * Про нас
 * Контакти


 * Переваги→
 * Оплата→
 * Про нас→
 * Контакти→

UA

павіап


Дніпро
Пакрва

+0975668543


Ми у соцмережах

Lorem ipsum dolor sit amet
In delectus ea consectetur quod aut.
Saepe fugiat quo aut atque in veritatis ullam. Ex possimus rerum in vitae ut.
Voluptatibus corrupti molestiae consequuntur.
Dolorem deleniti rerum quia pariatur velit. Non enim quas earum in.
Reiciendis quasi ut enim animi voluptatibus id.
Labore accusamus sit temporibus. Corrupti commodi ad vitae error. Quos eaque aut
minima architecto.
Quod ut ipsa explicabo explicabo.
Provident eveniet dignissimos praesentium sed facilis. Totam ipsa illum ratione
quae ut.
Voluptates aut expedita molestiae.
Dolores voluptatem totam ea mollitia sed consequatur. Iusto ullam ut magni
maiores.
Кнопка

Дніпро
Пакрва

+0975668543


Створено за допомогою WayForPay

ДОСТАВКА



ОПЛАТА ТА ПОВЕРНЕННЯ

Ви можете сплатити будь-яким зручним для вас способом
Оплата при отриманні


Повернення здійснюються згідно із Законом «Про захист прав споживачів»

ПРО НАС



КОНТАКТИ

павіап


Дніпро
Пакрва

+0975668543



ОФОРМЛЕННЯ ЗАМОВЛЕННЯ


ПIБ
Телефон
Email
Вкажіть коректний email, на який буде відправлено посилання на продукт
Способи оплати
При отриманні
Оплата при отриманні замовлення
Мінімальна сума замовлення -
Я маю промокод
Промокод
Ok
Застосовано промокод
Знижки за промокодами діють тільки при оплаті онлайн через WayForPay
Оплатити