woocommerce / woocommerce-gateway-stripe

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

PRB - $0 subscription sign up leads to failed payments because of unattached customer #3506

Closed james-allan closed 1 month ago

james-allan commented 1 month ago

Describe the bug When a customer signs up to a $0 initial payment (ie free trial) using a PRB (Google Pay or Apple Pay), the resulting set up intent results in a failure and the subscription's future payments will fail.

To Reproduce Steps to reproduce the behavior:

  1. Create a virtual free trial subscription.
    • It needs to be virtual because free trial subscriptions which require shipping are not compatible with PRBs.
  2. Go to the product's page.
  3. Attempt to sign up to the product using a PRB (Google Pay or Apple Pay)
  4. Note the payment succeeds
  5. Check your Stripe Dashboard, you will see the following log for the set up intent
  6. Note that there's no saved payment method resulting from that sign up and a renewal fails.

Image

Additional context 8776809-zd-a8c