woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
229 stars 197 forks source link

Express Checkout (GPay / Apple Pay) address_1 and adress_2 is not passed during AJAX #2806

Open ChadReitsma opened 6 months ago

ChadReitsma commented 6 months ago

Hey guys, I'm not sure if this is related to: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/1198

Seems as if GPay isn't sending the address_1 and address_2 fields to /?wc-ajax=wc_stripe_get_shipping_options when I try to use Express Checkout. Some of our shipping plugins require the full address in order to determine a delivery distance. We can't just use the Postal-Code, we need (at least) address_1

Does anyone know of a fix or workaround?

Cheers, Chad

Screenshots Testing with Browser Stack + My address (blurred for privacy) AJAX POST / Form Data does not contain the address_1 and address_2 fields!

stripe-gpay-checkout-missing-fields

Brianmitchtay commented 4 months ago

I see the same on my testing site.

I also know that Apple Pay explicitly truncates some address information until after payment has been taken. Could Google Pay be the same?

There has been some discussion in w3c/payment-request about the spec for this kind of address negotiation, where @diegocurbelo has shared https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2806#issuecomment-1965607300