Error Message: "...incorrectly formatted item amount"

davidxmartins
New Community Member

This form has been working fine until today, suddenly, without having changed anything, when one tries to use it this error message shows up: "The link you have used to enter the PayPal system contains an incorrectly formatted item amount."

 

Can't find usefull help anywhere. Would appreciate if someone could tell me what has gone wrong.

 

Here's the code:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

  <input type="hidden" name="cmd" value="_donations">
  <input type="hidden" name="business" value="myemail[at]gmail.com">

  <label class="input-container">
    <input type="checkbox" name="amount" class="checkbutton" value="5,00" data-alertOnHover="Com €5.00 ajuda a pagar a deslocação de um animal." data-alertAfter="O seu donativo será de €"><span>€05.00</span></label>
  <label class="input-container">
    <input type="checkbox" name="amount" class="checkbutton" value="20,00" data-alertOnHover="€20.00 alimentam um cão durante duas semanas." data-alertAfter="O seu donativo será de €"><span>€20.00</span></label>
  <label class="input-container">
    <input type="checkbox" name="amount" class="checkbutton" value="40,00" data-alertOnHover="€40.00 pagam despesas médicas como a vacinação." data-alertAfter="O seu donativo será de €"><span>€40.00</span></label>
  <label class="input-container">
    <input type="checkbox" name="amount" class="checkbutton" value="80,00" data-alertOnHover="Com €80,00 podemos pagar uma esterilização." data-alertAfter="O seu donativo será de €"><span>€80.00</span></label>
  <span class="input-container">
    <input type="number" class="textBox" name="amount" placeholder="€ Outro" data-alertOnHover="Introduza o montante que gostaria de doar..." data-alertAfter="O seu donativo será de €" size="20">
  </span>

  <input type="hidden" name="item_name" value="Donation">
  <input type="hidden" name="item_number" value="Donation">
  <input type="hidden" name="currency_code" value="EUR">
  <input type="hidden" name="lc" value="PT">
  <input type="hidden" name="bn" value="Louzanimales_Donation_WPS_PT">
  <input type="hidden" name="return" value="http://www.louzanimales.pt/agradecimentos.htm">

  <br style="clear: both;" />
  <input class="donation-button" type="submit" value="Enviar Donativo">

</form>

 

<script>
    var defaultTxt = $('#alert').text();
    var checked;
    $('input.checkbutton').change(function() {
      if ($(this).is(":checked")) {
        $(".textBox").val("");
        $('#alert').text($(this).attr("data-alertAfter") + $(this).val());
        checked = $(this);
      }
      else
      {
        $('#alert').text(defaultTxt);
        checked = undefined;
      }
      $('input.checkbutton').not(this).prop('checked', false);
    });
    $('.input-container').hover(
      function() {
        $('#alert').text($(this).children('input').attr("data-alertOnHover"));
      },
      function() {
        if (checked)
            $('#alert').text($(checked).attr("data-alertAfter") + $(checked).val());
        else
            $('#alert').text(defaultTxt);
      }
    );
    $(".textBox").focus(function() {
      checked = undefined;
        $(".checkbutton").prop("checked", false)
    }).blur(function() {
      if ($(this).val() != "") {
        checked = $(this);
        $('#alert').text($(this).attr("data-alertAfter") + $(this).val())
      }
    });
</script>

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.