We've moved discussions to Discord

Created Stripe plans but getting an empty string error

Im trying to deploy my jumpstart application but am having trouble both locally and on heroku with Stripe. I've setup two plans in Stripe, and then mirror them in the admin (with Plan IDs) but when I navigate to the /subscriptions/new?plan=1 route, I get the following error in the console:

application.source.js:15732 Error connecting controller

IntegrationError: Please call Stripe() with your publishable key. You used an empty string.
    at oa ((index):1)
    at new e ((index):1)
    at Fc ((index):1)
    at extended.connect (application.source.js:20041)
    at Context.connect (application.source.js:15163)
    at Module.connectContextForScope (application.source.js:15350)
    at Router.scopeConnected (application.source.js:15651)
    at ScopeObserver.elementMatchedValue (application.source.js:15572)
    at ValueListObserver.tokenMatched (application.source.js:14895)
    at TokenListObserver.tokenMatched (application.source.js:14832)

Has anyone run into this before? Im a bit stuck as to what is causing this error. 


Also worth noting that I set both public and private Stripe keys in production.yml
I checked to see if my rails console would return credentials and it is blank. I tried to create & save new credentials with rails credentials:edit --environment=development but am having no luck.

rails-console.png 80.3 KB
Notifications
You’re not receiving notifications from this thread.