payment api

This commit is contained in:
Min Zeya Phyo
2017-04-18 11:01:10 +06:30
parent 6a84a34a9f
commit dbad900cd4
30 changed files with 751 additions and 32 deletions

View File

@@ -31,7 +31,7 @@ class Api::OrdersController < ActionController::API
@order.guest = params[:guest_info]
@order.table_id = params[:table_id]
@order.new_booking = true
@order.employee_name = "Test User"
@order.employee_name = current_login_employee.name
#Create Table Booking or Room Booking
@@ -41,7 +41,7 @@ class Api::OrdersController < ActionController::API
end
@status = @order.generate
# rescue Exception => error
# @status = false
# @error_messages = "Exception has occurs on System"