[help] [Stripe gem] Got stuck on upskills course and completely lost. InvalidRequestError in Users::RegistrationsController#create

My very first Rails site and I feel am completely lost on this error. I'm using Rails 5 and Stripe 1.48.0 and cannot figure out what I am doing wrong here. I have read all the other questions on this topic and I seem to be doing everything correctly. Please help.

I'm getting

Stripe::InvalidRequestError in Users::RegistrationsController#create
This customer has no attached payment source
Extracted source (around line #12):
customer = Stripe::Customer.create(description: email, plan: plan_id, card: stripe_card_token)

My code is [here](https://www.reddit.com/r/learnprogramming/comments/657ql6/ruby_on_rails_stripe_gem_invalidrequesterror_in/)


Leave a Comment