Closed mr3abd closed 5 years ago
Do you get an error message in your Heroku logs? What is the result of Authy::PhoneVerification.start
that you store as @response
?
Do you have your Authy API key saved correctly in your environment variables in Heroku?
When reviewing my code I get the issue Haven't API in environment variables in Heroku how to call API in production ?
Do you have an authy.rb
file in config/initializers/
? Does it have something like:
Authy.api_key = ENV["AUTHY_API_KEY"]
If so, you need to set your Authy API key in the Heroku environment. To do so, run the following in your application directory:
heroku config:set AUTHY_API_KEY=YOUR_AUTH_API_KEY
Make sure you use your own Authy API key in the above.
Let me know if that helps.
So nice!
it's worked ^^
That's great to hear! Good luck with the rest of your app!
Hello,
I know when test Sent SMS in Heroku here Post user data(Phone and country code) here msayefdev.herokuapp.com/api/v1/host/sign_up can't receive SMS but working in localhost:3000
that my code
Can help me ?