Guest User

Untitled

a guest
Jan 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. scope module: 'payola' do
  2. mount StripeEvent::Engine => 'payola/events', as: :payola
  3. post 'payola/buy/:product_class/:permalink' => 'transactions#create', as: :buy
  4. get 'payola/confirm/:guid' => 'transactions#show', as: :confirm
  5. get 'payola/status/:guid' => 'transactions#status', as: :status
  6. post 'payola/subscribe/:plan_class/:plan_id' => 'subscriptions#create', as: :subscribe
  7. get 'payola/confirm_subscription/:guid' => 'subscriptions#show', as: :confirm_subscription
  8. get 'payola/subscription_status/:guid' => 'subscriptions#status', as: :subscription_status
  9. delete 'payola/cancel_subscription/:guid' => 'subscriptions#destroy', as: :cancel_subscription
  10. post 'payola/change_plan/:guid' => 'subscriptions#change_plan', as: :change_subscription_plan
  11. post 'payola/change_quantity/:guid' => 'subscriptions#change_quantity', as: :change_subscription_quantity
  12. post 'payola/update_card/:guid' => 'subscriptions#update_card', as: :update_card
  13. post 'payola/update_customer/:id' => 'customers#update', as: :update_customer
  14. post 'payola/create_card/:customer_id' => 'cards#create', as: :create_card
  15. delete 'payola/destroy_card/:id/:customer_id' => 'cards#destroy', as: :destroy_card
  16. end
  17.  
  18. <%= f.submit "Submit" data: {disable_with: false} %>
Add Comment
Please, Sign In to add comment