Skip to content

Instantly share code, notes, and snippets.

@danielVargas
Created June 20, 2018 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielVargas/d9a5e4e9e0bf24b72687fc1356209c5e to your computer and use it in GitHub Desktop.
Save danielVargas/d9a5e4e9e0bf24b72687fc1356209c5e to your computer and use it in GitHub Desktop.
Rutas para WebPay
Rails.application.routes.draw do
##
##
## Tus rutas ##
## ...
##
#WebPay
post '/webpay/webpay_final_url', :to => 'webpay#webpay_final_url', :as => :webpay_result
post '/webpay/webpay_return_url', :to => 'webpay#webpay_return_url', :as => :webpay_return_url
get 'webpay/success', :to => 'payments#webpay_success', :as => :webpay_success
get 'webpay/error', :to => 'payments#webpay_error', :as => :webpay_error
get 'webpay/nullify', :to => 'payments#webpay_nullify', :as => :webpay_nullify
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment