Because the module no longer creates a new stripe customer for every order, there is a slight chance that a drupal user's saved stripe customer ID is not valid in stripe.

Scenarios:
Making an order in stripe test mode and then live mode using the same drupal user.
If you change to a different stripe account for your payments.
The customer has been deleted from stripe.

Fix:
Do a check that the saved customer id is valid. If it's invalid based on stripe, just create a new stripe customer and save that ID.

Comments

AndraeRay created an issue. See original summary.

andraeray’s picture

Issue summary: View changes

  • AndraeRay committed 242e8c1 on 7.x-3.x
    Issue #3071714 by AndraeRay: Add fallback incase stripe_customer_id is...

  • AndraeRay committed 6c8645f on 7.x-3.x
    Issue #3071714 follow up: If the user does not have a stripe_id do not...
andraeray’s picture

Status: Active » Fixed

This has been committed to 7.x-3.x-dev and 7.x-3.0-rc3.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.