• Resolved hexmen

    (@hexmen)


    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

    https://wordpress.org/plugins/wp-ecommerce-paypal/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Paterson

    (@scottpaterson)

    Hi hexmen,

    Yes, this is an encoding error. I have found that it is safer to let PayPal handle this situation then the plugin. Please check out my documentation for how to set the encoding on PayPal:

    https://wpplugin.org/documentation/?document=2834

    If you have any other questions just let me know.

    Thanks,
    Scott

    Thread Starter hexmen

    (@hexmen)

    Thank you, that’s done the trick.

    We did look at PayPal looking for encoding options before reporting this issue, but couldn’t spot anything: your instructions were spot on.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to pass charset encoding to PayPal’ is closed to new replies.