others payment

This commit is contained in:
Nweni
2017-06-07 13:02:12 +06:30
parent c18b57eca8
commit 9a23716c23
7 changed files with 49 additions and 35 deletions

View File

@@ -5,13 +5,17 @@ class Origami::PaymentsController < BaseOrigamiController
end
def create
#payment type
#sale status
#point - get [ food amount ]
cash = params[:cash]
card = params[:card]
#process_payment(invoice, action_by)
end
def show
sale_id = params[:sale_id]
if Sale.exists?(sale_id)
@sale_data = Sale.find_by_sale_id(sale_id)
end
end
end