Class: Omnipay::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Omnipay::Railtie
- Defined in:
- lib/omnipay/railtie.rb
Overview
Custom helpers for rails applications Define the method : ActionController#redirect_to_payment(uid, opts={})
-
uid
: the gateway’s uid -
opts
: the options expected by Gateway#payment_redirection. The host is automatically determined, but theamount
in cents, and other mandatory options depending on the adapter, have to be specified.
Called in a controller, this method redirects the visitor to the payment provider.