Support » Plugin: WooCommerce Paylike Payment Gateway » Test payment in English does not work on Multilingual WC

  • Resolved husarm

    (@husarm)


    Hi,
    I am testing a multilingual (Hungarian and English with WPML) WooCommerce booking system with Paylike and I have the following issue: in Hungarian everything is fine on the website and in Paylike account too. However, when I switch to English on the Checkout page there is no TEST MODE information tex at the Palike payment gateway and I can send the order without payment. The Paylike popup does not come up, nor the page with the “Pay now” button in background. The order is succesfully created in WooCoomerce without payment and is in completed status and there is no information in Paylike account about the missed or failed payment. It seems like the Paylike gateway is completely inactive at the checkout in English.
    Is that only because of the test mode? Should this work fine in live mode in both languages, or is there a problem? If yes, could you please help me where and what do I need to check? I can send you screenshots and I can give you access to the website.

    I am using the latest version of all the plugins: WP 5.7, WooCommerce 5.1.0, Paylike 2.4.0, WPML Multilingual CMS 4.4.10, WPML String Translation 3.1.8

    Thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ionut.calara

    (@ionutcalara)

    Hi @husarm sorry for the delay, I was out of the office for a week, due to holidays. I am going to take a closer look at this and update you when there’s a fix available.

    Thread Starter husarm

    (@husarm)

    Hi, no problem! Thanks a lot.

    Plugin Author ionut.calara

    (@ionutcalara)

    Hi, @husarm I ran multiple tests with multiple languages and currencies and couldn’t find any problem. Could you let me know what translations did you added for paylike and how?
    Also, could you send me a screenshot from the console so I can look to see if there are any errors there, please?

    Thread Starter husarm

    (@husarm)

    Hi @ionutcalara ,
    I added WPML string translations where the base language was English and the Hungarian translation came up amutomatically when I started the translation so just saved it basically. Here is a screenshot aobout the string translations: https://pasteboard.co/JWXOXzh.png
    Here is a screenshot about the Checkout page in Hungarian: https://pasteboard.co/JWXPxvk.png and here is the English version: https://pasteboard.co/JWXQa0A.png
    Please feel free to test the above mentioned web site, it is a test website, so you can check it personally!
    Thank you.

    Plugin Author ionut.calara

    (@ionutcalara)

    It’s not entirely clear what happens, but it looks like for English, the order gets automatically completed. Not sure why that happens. Also the text not showing up is strange. Could you please reach out via https://paylike.io/contact so I can get credentials. I am going to need to clone the website in order to debug it.

    Let me know if that works for you.
    Thank you,
    Ionut.

    Thread Starter husarm

    (@husarm)

    Hi,
    OK, that is fine for me. Thank you.
    I am going to contact you via https://paylike.io/contact
    Monika Huszar

    Plugin Author ionut.calara

    (@ionutcalara)

    Hi @husarm

    In regards to the test data not showing up, that’s due to adding translations for the settings field. In this case, it’s the description. While the test code is added during the initialization, we append it to what comes from the settings, and the multilingual code overwrites it after. There’s no easy fix, but since this is just a development thing, it’s not going to interfere in the live payment part.

    In regards to the order not going to the payment process, It took me a few hours to figure this out because the website is pretty slow locally. The issue is related to the custom order statuses that you are creating, which makes woocommerce consider the order doesn’t need payment.
    If you look under woocommerce/includes/class-wc-order.php at line 1498, you will notice that the default order statuses for which payment is required are pending and failed;
    However under woocommerce-order-status-manager/includes/class-wc-order-status-manager-order-statuses.php at line 384, in that function all the order statuses that come back do not include pending or failed This only happens for English. For Hungarian the statuses are different, and it works.

    I am going to close this ticket, as this is not related to our payment gateway, but feel free to reopen.`

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.