Closed packytagliaferro closed 5 years ago
This is probably because the creation of the stripe customer happens before it tries to create the subscription.
First thing I would check is if the users that do not have any subscriptions are ALSO missing credit card information.
If they are - I'd say Stripe is throwing a Stripe\Errors\Card
exception - perhaps because the card has no funds or maybe some other reason.
Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.
I am using Laravel Cashier in my laravel application to create subscriptions. It seems to work 80% of the time. Some times it adds the Stipe id, card type and the last 4 to the
Users
table but no subscription is added to theSubscriptions
table. I take the card and callsubscribe
from a Vue signup form and Checkout.js (provided by Stripe)signup.vue
The
subscribe
the method is called when you click on a plan (which setsid, name, cost, description
for Checkout.js)in my controller
I am confused because the
stripe_id
and card info is added but not the subscription and it only happens once in a while. Anyone had this issue? Not sure how to debug either since its not failing all the time. So far out of the 80 people signed up 20 had stripe ids but no subscriptions after they selected one and passed the Checkout.js form