You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
635 B

  1. Spree::Core::Engine.routes.draw do
  2. resources :orders do
  3. resource :checkout, :controller => 'checkout' do
  4. member do
  5. get :paypal_checkout
  6. get :paypal_payment
  7. get :paypal_confirm
  8. post :paypal_finish
  9. end
  10. end
  11. end
  12. match '/paypal_notify' => 'paypal_express_callbacks#notify', :via => [:get, :post]
  13. match '/paypal_shipping_update' => 'paypal_express_callbacks#shipping_estimate', :via => :post
  14. namespace :admin do
  15. resources :orders do
  16. resources :paypal_payments do
  17. member do
  18. get :refund
  19. get :capture
  20. end
  21. end
  22. end
  23. end
  24. end