Support » Plugin: WooCommerce » Encoding issue for Paypal redirect

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Contributor Claudio Sanches

    (@claudiosanches)

    Hey please turn off the “Use form submission method” option.
    With the option disabled all works fine.

    The option: http://i.imgur.com/lcjI5Ja.png

    I just fix this in the next release already okay for form submission too.

    Thread Starter Simon Lam

    (@simon-lam)

    Hi Claudio,

    Thanks for your reply. Actually, we didn’t use form submission method. It’s pretty weird for this case.

    How do you think if I give you the admin and pass to try and test on the development site? Thanks!

    Thread Starter Simon Lam

    (@simon-lam)

    Besides, when will the new release available??

    Thread Starter Simon Lam

    (@simon-lam)

    Hi Claudio,

    The update version doesn’t solve the problem after I test. It will still generate this bundle of codes and can’t proceed to PayPal checkout. that’s it’s not going to redirect to the PayPal page at all. Is it solvable?? Please take a look, let me know if any further information you needed for further investigation. thanks!

    {“result”:”success”,”redirect”:”https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_cart&business=payment%40mylifestyle.hk&no_note=1&currency_code=HKD&charset=UTF-8&rm=1&upload=1&return=http%253A%252F%252Fproject.varomatic.com%252Fmylifestyle%252Fcheckout%252Forder-received%252F2557%253Fkey%253Dwc_order_54115192b76db%2526%2523038%253Butm_nooverride%253D1&cancel_return=http%253A%252F%252Fproject.varomatic.com%252Fmylifestyle%252Fcart%252F%253Fcancel_order%253Dtrue%2526%2523038%253Border%253Dwc_order_54115192b76db%2526%2523038%253Border_id%253D2557%2526%2523038%253Bredirect%2526%2523038%253B_wpnonce%253D4cfd377883&page_style=&paymentaction=sale&bn=WooThemes_Cart&invoice=MLS-2557&custom=a%3A2%3A%7Bi%3A0%3Bi%3A2557%3Bi%3A1%3Bs%3A22%3A%22wc_order_54115192b76db%22%3B%7D&notify_url=http%3A%2F%2Fproject.varomatic.com%2Fmylifestyle%2Fwc-api%2FWC_Gateway_Paypal%2F&first_name=1&last_name=1&company=&address1=1&address2=&city=1&state=%E9%A6%99%E6%B8%AF%E5%B3%B6&zip=1&country=HK&email=lamchanching%40gmail.com&night_phone_b=1&day_phone_b=1&no_shipping=1&tax_cart=0&item_name_1=%E5%A4%A9%E7%84%B6%E6%B8%9B%E8%82%A5%E5%A5%BD%E5%B9%AB%E6%89%8BMetaSlim%C2%AE%E7%87%92%E8%84%82CLA%E6%9E%9C%E9%85%B8%E7%B2%BE%E8%8F%AF%E4%B8%B8+%28+%E9%81%B8%E6%93%87%E5%84%AA%E6%83%A0%3A+A.+1%E7%93%B6+-+80%E7%B2%92%E8%A3%9D+Webber+Naturals%C2%AE+MetaSlim%E7%87%92%E8%84%82C…&quantity_1=1&amount_1=228&item_name_2=%E5%8A%A0%E6%8B%BF%E5%A4%A7+Webber+Naturals%C2%AE+%E8%A3%9C%E7%9C%BC%E8%91%89%E9%BB%83%E7%B4%A0%E7%B2%BE%E8%8F%AF%E4%B8%B8+%28+%E9%81%B8%E6%93%87%E5%84%AA%E6%83%A0%3A+A.+1%E7%93%B6+-+Webber+Naturals%C2%AE+30%E7%B2%92%E8%A3%9D+FloraGLO%E2%84%A2%E8%A3%9C%E7%9C%BC%E8…&quantity_2=1&amount_2=168&item_name_3=%E4%BD%BF%E7%94%A8+%E6%9C%AC%E5%9C%B0%E9%81%8B%E9%80%81+%E9%85%8D%E9%80%81&quantity_3=1&amount_3=40.00&lc=zh-hant”}

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    Have you tried with other payment methods?

    Thread Starter Simon Lam

    (@simon-lam)

    Hi Claudio,

    Thanks for your prompt reply. The client is now using bank transfer, COD and PayPal. Other payment methods are all working fine and it only happens to PayPal as it need to pass the form to PayPal. We noted that this doesn’t happen to English checkout for PayPal.

    WPML team had tested and figured out this is encoding problem should be caused from wooCommerce itself. The following is the thread about this bug:

    http://wpml.org/forums/topic/urgent-the-chinese-checkout-page-for-is-not-redirecting-to-paypal/page/2/

    After report the issue to PayPal support team, they got the follow comment, I hope all these could be helpful for fixing this bug. Thanks!

    “If their payment team confirm that it is encoding problem, please make sure the all characters that pass to PayPal is UTF-8 and urlencode by PHP and make sure that ‘Language Encoding’ in your account is UTF-8.”

    Thank you very much! Hope these information help.

    Thread Starter Simon Lam

    (@simon-lam)

    Dear Claudio,

    Just wonder if there is a new progress for this issue? Do feel free to let me know if anything I can help. Thanks!

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    You should not have problems like this in the latest version of WooCommerce.

    Thread Starter Simon Lam

    (@simon-lam)

    Hi Claudio,

    Thanks for your reply but the problem still exist after upgrade. Please find the screenshots here with the version and the outcome.

    I can provide you the development environment for your testing if necessary, thanks!

    https://www.dropbox.com/sh/8j1u6ti93ljea2i/AACd8RwSmdhpJbVepUtbxosHa?dl=0

    I have the same problem! For some of my products i get: “Data does not match input character set or default encoding. For more information, please contact the merchant.”

    For example, i have two products:
    Первоцветы (Разноцветные) – works just fine
    Первоцветы (Пастельные) – gets error

    I cannot get the pattern for this problem, seems completely random. Please help!

    I have the same problem! in Thai it return

    {“result”:”success”,”redirect”:”https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_cart

    Thread Starter Simon Lam

    (@simon-lam)

    Hi Bonadventure and Nanospace,

    Yes, it seems happen to non-English languages and the error pattern is unpredictable. If this problem is unsolvable, I think I really need to consider whether using wooCommerece as I’m afraid clients will come back to complain for this. This will definitely affect their business and content management.

    For me this problem mainly happens to PayPal payment gateway, I will probably try other PayPal plugins, see if can be fix this problem. Hope wooCommerce team can solve it as soon as possible cos multi-languages has been very common for shopping cart now.

    I notice that when I use http://www.percederberg.net/tools/text_converter.html to convert non-English language from plain text non encoding to WWW Form HTTP Post

    with

    “Air Jacket เคส iPhone 6 บางเฉียบ โชว์ตัวเครื่อง กันรอยขีดข่วน รุ่น UPYC – 83 สี ดำใส Smoke”

    the result is

    Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8%94%E0%B8%82%E0%B9%88%E0%B8%A7%E0%B8%99++%E0%B8%A3%E0%B8%B8%E0%B9%88%E0%B8%99+UPYC+-+83+%E0%B8%AA%E0%B8%B5+%E0%B8%94%E0%B8%B3%E0%B9%83%E0%B8%AA+Smoke

    but with the same product name wooCommerce return WWW form HTTP post =

    item_name_1=Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8...

    then when I put this return WWW form HTTP post back to http://www.percederberg.net/tools/text_converter.html to recode it show and error “Conversion Error: URIError: URI malformed”

    This might cause problem with paypal that don’t understand the information

    I think this might help solve the bug or issue about this encoding problem

    Thank you

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    @nanospace in what language are you testing?
    Can you show me how are your endpoints and slugs of your pages?

    @claudio

    Hello Claudio Sanches,

    I am using Thai Language to create product name this page –> http://realgaddshop.com/?p=10372

    As I mention before once I add product to cart and check out by Paypal (http://realgaddshop.com/checkout/) it’s show encoding message

    {"result":"success","redirect":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_cart&business=order%40realgadd.com&no_note=1&currency_code=THB&charset=UTF-8&rm=1&upload=1&return=http%253A%252F%252Frealgaddshop.com%252Fcheckout%252Forder-received%252F10401%253Fkey%253Dwc_order_5447d9e3cf02f%2526%2523038%253Butm_nooverride%253D1&cancel_return=http%253A%252F%252Frealgaddshop.com%252Fcart%252F%253Fcancel_order%253Dtrue%2526%2523038%253Border%253Dwc_order_5447d9e3cf02f%2526%2523038%253Border_id%253D10401%2526%2523038%253Bredirect%2526%2523038%253B_wpnonce%253D638f4c9368&page_style=&paymentaction=sale&bn=WooThemes_Cart&invoice=RG-10401&custom=a%3A2%3A%7Bi%3A0%3Bi%3A10401%3Bi%3A1%3Bs%3A22%3A%22wc_order_5447d9e3cf02f%22%3B%7D&notify_url=http%3A%2F%2Frealgaddshop.com%2Fwc-api%2FWC_Gateway_Paypal%2F&first_name=%E0%B8%9A%E0%B8%B8%E0%B8%8D%E0%B8%A2%E0%B8%87&last_name=%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%A2%E0%B8%A4%E0%B8%97%E0%B8%98%E0%B8%B4%E0%B9%8C&company=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99&address1=612%2F229+aspace+asoke+dindang&address2=%E0%B8%94%E0%B8%B4%E0%B8%99%E0%B9%81%E0%B8%94%E0%B8%87&city=%E0%B8%81%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B9%80%E0%B8%97%E0%B8%9E&state=Bangkok+%28%26%233585%3B%26%233619%3B%26%233640%3B%26%233591%3B%26%233648%3B%26%233607%3B%26%233614%3B%26%233617%3B%26%233627%3B%26%233634%3B%26%233609%3B%26%233588%3B%26%233619%3B%29&zip=10400&country=TH&email=benzth%40gmail.com&night_phone_b=0909829779&day_phone_b=0909829779&no_shipping=1&tax_cart=0&item_name_1=Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8...&quantity_1=1&amount_1=990&item_number_1=700867225836test"}

    I notice the “item_name_1” value is not right WWW form HTTP post

    I Think it’s should be

    Air+Jacket+%E0%B9%80%E0%B8%84%E0%B8%AA+iPhone+6+%E0%B8%9A%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%89%E0%B8%B5%E0%B8%A2%E0%B8%9A+%E0%B9%82%E0%B8%8A%E0%B8%A7%E0%B9%8C%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87+%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%A3%E0%B8%AD%E0%B8%A2%E0%B8%82%E0%B8%B5%E0%B8%94%E0%B8%82%E0%B9%88%E0%B8%A7%E0%B8%99++%E0%B8%A3%E0%B8%B8%E0%B9%88%E0%B8%99+UPYC+-+83+%E0%B8%AA%E0%B8%B5+%E0%B8%94%E0%B8%B3%E0%B9%83%E0%B8%AA+Smoke++(test)

    please let me know if you need more information.

    Thank you

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Encoding issue for Paypal redirect’ is closed to new replies.