Rails 5.0.0.beta4 introduced a deprecation warning on routes containing dynamic :action and :controller segments:
DEPRECATION WARNING: Using a dynamic :action s
It works like this:
get 'stripe(/:action)', controller: 'stripe', action: :action, as: "stripe"