woocommerce / woocommerce-gateway-stripe

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

Custom checkout fields not getting included in checkout form data submitted by GPay/Apple Pay #2969

Open tarunparswani26 opened 4 months ago

tarunparswani26 commented 4 months ago

Describe the bug Encountered an issue with our Smart Coupons plugin affecting custom fields on the checkout page. When utilizing GPay/Apple Pay, the Checkout form data does not include information from these custom fields.

Upon inspecting the getOrderData function (ref), it appears that the function generates a checkout form data with predefined, hardcoded fields. Unfortunately, there is no mechanism to extend or add additional data, similar to WooCommerce checkout on the PHP side.

Also, incorporating additional data through JS code in the AJAX call is not feasible due to the use of iframes for rendering GPay/Apple Pay payment buttons.

Do let me know if any further details are needed for this.

thuautp commented 2 months ago

also reported in 8099290-zen