Closed srmklive closed 1 month ago
Thanks for submitting a PR!
In order to review and merge PRs most efficiently, we require that all PRs grant maintainer edit access before we review them. For information on how to do this, see the relevant GitHub documentation. Additionally, GitHub doesn't allow maintainer permissions from organization accounts. Please resubmit this PR from a personal GitHub account with maintainer permissions enabled.
This PR adds a method hasValidDefaultPaymentMethod which checks whether the user has a valid default payment method stored on Stripe.
Currently in cashier, we can check whether a user has a default payment method through: