• Resolved Elia

    (@prettyboyelias)


    Hi there,

    I don’t understand how PayPal determines which region to show in the Guest checkout via “Debit or Credit card”.

    For example, we have a customer from Italy. She has browser Language set in English.

    She tries to make a guest purchase via “Debit or Credit card” option.

    PayPal shows relevant payment options for Italy (which is great) https://gyazo.com/0afdd62f27466e8e3953975f6defda36

    But if she chooses to pay via “Debit or Credit card” the plugin suggests that she is from US https://gyazo.com/1c002d80df3fc681c2ae6cc0d5c4c4f4

    This hurts our sales a lot. Since the user has to change her country manually.

    Can you somehow pass that the user comes from Italy therefore show the country in the Billing address as Italy (in this case) ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @prettyboyelias,

    By default, the integration already passes the WooCommerce checkout form fields to PayPal to prevent these forms from appearing, as you can see in this example video:
    https://drive.google.com/uc?export=view&id=1TSDmU5MaF71BBPCSKsBRkhiEYJevYEs-

    One of the next updates will also add a feature to switch between different behaviors: https://github.com/woocommerce/woocommerce-paypal-payments/pull/733#issuecomment-1190365709

    It would be good to figure out why no details are passed to PayPal from your site, for example, by performing the troubleshooting steps as described here including disabling all other plugins except for WooCommerce and PayPal Payments: https://woocommerce.com/document/woocommerce-paypal-payments/#troubleshooting
    Depending on your region, there is also the PayPal Card Processing which comes with multiple benefits, including guest checkouts with no need to provide additional details: https://woocommerce.com/document/woocommerce-paypal-payments/#paypal-card-processing-acdc

    Kind regards,
    Niklas

    Thread Starter Elia

    (@prettyboyelias)

    Hi Niklas, thank you for the quick reply!

    I never knew that the region field is even existing. Unfortunately, we don’t use that field in the checkout

    We want to increase conversion rate, therefore, we just use 4 fields:

    1. Name
    2. Last name
    3. Email
    4. Create password

    Also we don’t have the PayPal Card Processing…

    So my question is.

    Can you somehow detect geolocation of the user and show the relevant country in the Billing address?

    At the moment the system doesn’t understand the country where I come from. It only uses the language of the browser. Which is inaccurate thing to do. For example, I could be in Italy, but the browser in English and the form suggest that I’m in USA.

    Thank you

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @prettyboyelias,

    There is a feature to override the button language/country, but it’s not a priority for now: https://github.com/woocommerce/woocommerce-paypal-payments/issues/600
    If you’re interested in being able to manually set a default language and/or country, I suggest leaving feedback on the GitHub issue above.

    As of right now, the PayPal JavaScript SDK will take the locale code passed in the query parameter, if any. If this is not provided(e.g. when you remove the billing country field), it will check PayPal cookie locale setting. If no PayPal cookie is present, it will use Browser language as fallback.
    This logic is happening automatically on PayPal’s end and is not actively controlled through the plugin.
    So no, geolocation via IP is not possible.

    Kind regards,
    Niklas

    Thread Starter Elia

    (@prettyboyelias)

    Thank you, Niklas!

    Yes, I’m particularly interested in the correct country detection without letting users to choose their country in the checkout.

    Especially for those who doesn’t have a PayPal account. So they can pay buy Card

    “PayPal JavaScript SDK will take the locale code passed in the query parameter”

    Can we automatically pass it using WooCommerce? I think this is our only chance to correctly detect the country

    I’m just thinking how to fix this problem. I need it to correctly identify the country. So customers won’t have to choose their country on the this form https://gyazo.com/1c002d80df3fc681c2ae6cc0d5c4c4f4

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @prettyboyelias,

    The billing fields are already sent to PayPal and are meant to determine the selection. But when the billing country field is disabled in WooCommerce, nothing would be sent, causing PayPal to automatically determine a selection.

    The best way to prevent the user from being required to the country in the iframe, is to select it in the WooCommerce billing country field before. In theory, you could geolocate the user and apply this to the WooCommerce billing country, which in return would be applied to the smart card fields.
    There may be other ways with a filter that changes the API request, but I’m not sure if that could work and it’s not something we provide a complete solution for in any case.

    Kind regards,
    Niklas

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translation question’ is closed to new replies.