Method: Rack::Payment::Methods#rack_payment
- Defined in:
- lib/rack-payment/methods.rb
#rack_payment(env_instance_variable = ) ⇒ Object
Returns the instance of Rack::Payment your application is using.
This assumes that this is available via env
If you override the Rack::Payment#env_instance_variable, you will need to pass that string as an option to #rack_payment
28 29 30 |
# File 'lib/rack-payment/methods.rb', line 28 def rack_payment env_instance_variable = Rack::Payment::DEFAULT_OPTIONS['env_instance_variable'] _request_env[env_instance_variable] end |