Need to pass charset encoding to PayPal
-
Hello,
I noticed this while using product names with £ signs in them (e.g. “One session £8.00”), the £ sign gets garbled in transit to PayPal.
The fix is to send over the “charset” as an additional parameter, as documented at PayPal’s developer site:
Setting the Character Set – charset
Use the charset HTML variable to specify the character set and character encoding for the billing information/log-in page on the PayPal website. In addition, this variable sets the same values for information that you send to PayPal in your HTML button code.
For example, the following INPUT tag sets the encoding to UTF-8:
<INPUT TYPE=”hidden” name=”charset” value=”utf-8″>
I’ve verified and confirmed the fix by adding the missing input tag to the DOM via developer tools before hitting the button, and it works fine. Please can you add the required input tag to the markup generated by the plugin.
Thanks
- The topic ‘Need to pass charset encoding to PayPal’ is closed to new replies.