In development environment, I'm able to test stripe payment(using test card).But running rspec feature test, the payment fails and I'm getting the following error.
Support for test mode requests made with versions of TLS lower than 1.2 has been disabled, and support in live mode will be dropped on June 13, 2018. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls.
I'm using capybara(v2.13) along with poltergeist for feature tests. I tried the upgrading steps mentioned in this URL. But still the issue persists.