Class: Omnipay::Railtie

Inherits:
Rails::Railtie
  • Object
show all
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 the amount 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.