Module: WepayRails

Defined in:
lib/wepay-rails.rb,
lib/api/charge_methods.rb,
lib/api/account_methods.rb,
lib/api/checkout_methods.rb,
lib/api/preapproval_methods.rb,
lib/helpers/controller_helpers.rb,
lib/generators/wepay_rails/install/install_generator.rb

Defined Under Namespace

Modules: Api, Exceptions, Generators, Helpers, Payments Classes: Configuration, Engine

Class Method Summary collapse

Class Method Details

.routes(rails_router) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/wepay-rails.rb', line 36

def routes(rails_router)
  rails_router.instance_exec do
    namespace :wepay do
      resources :ipn
      resources :authorize
      resources :checkout
      resources :finalize
      resources :preapproval
      resources :charge
    end
    match '/preapproval/success'  => 'wepay/preapproval#success'
    match '/preapproval/charge'   => 'wepay/charge#new'
    match '/charge/success'       => 'wepay/charge#success'
  end
end