• Resolved WP-77

    (@admin247365)


    Hi,

    I just noticed that when using PayPal Guest Checkout the form automatically populates the Billing Address fields with the user’s Customer Shipping address that is defined in WooCommerce. The 2 different addresses are already input in WooCommerce user account and Checkout page but Billing Address is not used.
    Can you please assist or point me in the right direction.
    I’m using Version 3.2.4
    WooCommerce, WordPress all current versions.

    Thank you.

    • This topic was modified 4 years, 3 months ago by WP-77.
    • This topic was modified 4 years, 3 months ago by WP-77.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @admin247365,

    The logic for populating the billing and shipping fields for PayPal on the checkout page is as follows:

    1. Customer clicks Continue/Pay button in PayPal window.
    2. PayPal sends response to checkout page
    3. Plugin verifies if the billing fields on checkout page are valid. If valid, then continue to PayPal shipping fields.
    4. If billing fields are not valid, check PayPal response for billingAddress. If no billingAddress, check for shippingAddress. If shippingAddress, then populate billing fields with shipping address as a fallback.

    The billing fields are considered invalid if any of the following are empty:

    1. First and last name
    2. Postal Code
    3. Country code
    4. Address line 1
    5. City
    6. State

    Check to see if any of those fields are empty in your guest checkout and if they are that’s why the address is being populated again. This may be an opportunity for me to add some logic to map the required fields to those that WooCommerce considers required based on the billing country.

    Kind Regards,

    Thread Starter WP-77

    (@admin247365)

    Hi,

    I have been testing using an account that has both Billing and Shipping addresses input and saved in the account data. The addresses are not missing any fields and populate successfully to the checkout page.
    Then I click on the PayPal button and use the guest checkout button labeled “Pay with Debit or Credit Card”.
    Just tried it with a different test account and set 2 diffent names and addresses for Billing/Shipping with same results.
    Also, have disabled caching and eliminated other plugins.

    Thread Starter WP-77

    (@admin247365)

    FYI, more testing information,

    I just removed the check mark for ‘Ship to a different address?’ in WooCommerce checkout page and Billing fields now were populated in PayPal Guest checkout.

    Then checking ‘Ship to a different address?’ again displayed the wrong Name and Address (Shipping Name/Address).

    • This reply was modified 4 years, 3 months ago by WP-77.
    • This reply was modified 4 years, 3 months ago by WP-77.
    • This reply was modified 4 years, 3 months ago by WP-77.
    Plugin Author Payment Plugins

    (@mrclayton)

    @admin247365

    Do you have a website url you can share where I can observe this behavior?

    Kind Regards,

    Thread Starter WP-77

    (@admin247365)

    Is there a way to do it privately?

    Plugin Author Payment Plugins

    (@mrclayton)

    @admin247365 Ya you would contact me via the Help button located on all the Braintree plugin’s settings pages and share the url that way.

    Thread Starter WP-77

    (@admin247365)

    The only Help button on the page shows information on opening a ticket with WooCommerce community. Not sure how that would get to you or be private.

    Plugin Author Payment Plugins

    (@mrclayton)

    @admin247365

    I don’t know what page you’re talking about. I am talking about the Braintree plugin settings pages in your Admin Control Panel. Look at the following image:

    https://imgur.com/KSy5gbI

    It’s the green button on the bottom right.

    Thread Starter WP-77

    (@admin247365)

    Sorry, I had Zendesk blocked in that browser.
    FYI, my testing was done in other browsers and devices so blocking isn’t the cause of the checkout issue.
    Sending URL in a few moments…

    Plugin Author Payment Plugins

    (@mrclayton)

    Update:

    I was able to test the merchants site and here is what’s happening and why it’s not a bug.

    The merchant has pre-populated all of the billing and shipping fields on the WooCommerce checkout page. They then click the PayPal button which launches the pop-up. The click the Debit Credit button which initiates guest checkout.

    The billing address for the guest checkout is pre-populated with the shipping address from the WC shipping address fields. This is happening because PayPal only allows a shipping address to be sent to PayPal from the WC checkout page. At this time they don’t have an option to include a billing address.

    So PayPal chooses the shipping address to pre-populate the billing fields since that’s all it has.

    I will submit a ticket to the PayPal devs to see if they can create a PR for this behavior.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PayPal Guest Checkout – Populates Wrong Address’ is closed to new replies.