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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.