I've been using paypal buttons for years, using IPN to process the payment.
Some of these buttons have stopped working a couple of days ago. They produce an error as can be seen on the following image : (screenshot)
These buttons have been created using Paypal online tools and their HTML code refers to some paypal UR3ZPGJAT7M data that is edited on the paypal site (and that should hopefully be correct ?)(Note : UR3ZPGJAT7M is an edited value).
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="UR3ZPGJAT7M">
<table>
<tr><td><input type="hidden" name="on0" value="Expédition">Expédition</td></tr><tr><td><select name="os0">
<option value="Expédition en France">Expédition en France €25,00 EUR</option>
<option value="Expédition en Europe">Expédition en Europe €27,00 EUR</option>
<option value="Reste du Monde">Reste du Monde €30,00 EUR</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="EUR">
<input type="image" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal, le réflexe sécurité pour payer en ligne">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
As can be seen in the screenshot, the feedback url contains the following query string : "&code=AMOUNT_ERROR"
I tried to change the amount value in the paypal online button edit form that defines the UR3ZPGJAT7M code. I tried various values for the decimal separator :
but all fail.
I have looked around but couldnt find any solution for this issue. Paypal support doesnt answer at all.
How can i fix this ?
[EDIT]
Paypal seems to have problems with special characters within the value fields by default. By adding the declaration for UTF-8 the form validation seems to work flawless. This did the trick for me:
<input type="hidden" name="charset" value="utf-8">
Another workaround could be the character cleanup of the values attribute like:
value="my_value_1">