Clay

Joined

30 Experience
0 Lessons Completed
0 Questions Solved

Activity

Hi - When I call current_user.subscribe, it returns "NameError (uninitialized constant Stripe::PaymentMethod)". I've looked through the gem source files, and I don't see why I am receiving this error. Everything else working up until this point.

I'm confused because the wiki uses the createToken method in step 5, but the gem readme indicates you shouldn't use the createToken method, but instead use createPaymentMethod.

In case anyone else runs into this issue with Rails 6 and Webpacker, I needed to replace: sources_from_pack_manifest with sources_from_manifest_entries.

Posted in Recording Building a Rails Based Accounting System

Love the idea as well. Did you make the video Pooja? If so, can you share the link?

Thanks,
Clay

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.