Incomplete address when using Express Checkout

[ad_1]

Hi @barnabas1

What could be the problem? How can I debug such an issue?

This issue isn’t related to or caused by the Stripe plugin. Here is how the checkout process works within WooCommerce:

  1. A customer fills out their billing and shipping address info or they use a wallet payment method like Apple Pay which populates the address info for them.
  2. The checkout form submits and WooCommerce uses ajax to submit the data to the server.
  3. In file class-wc-checkout.php, WooCommerce performs the following actions
    • Validate the checkout data including billing and shipping address. If any required fields are missing data, WooCommerce will return an error message
    • If all required fields have valid values, create the WC_Order object.
    • Passes the WC_Order to the payment gateway so payment can be processed.
    • Once the payment gateway responds with a success result, WooCommerce redirects to the thank you page.

If you go to stripe.com > payments you can see all the data passed to Stripe and I am confident the address data will have been passed in it’s complete form. If the Stripe plugin wasn’t providing all of the address data, the WooCommerce validations would prevent the payment processing step from happening.

You likely have some plugin that’s either changing the order’s data after the checkout process, or it’s holding a stale version of the WooCommerce order and it’s saving that stale object which is overriding the address data.

Kind Regards

Hello @mrclayton,

Indeed, you are right, Stripe has all all the customer’s data.

Thank you for the thorough explanation, it’s crystal clear now in my head. Much appreciated.

Best regards,

Barnabas

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer