replace @shop and shop_details with current_shop
This commit is contained in:
@@ -10,7 +10,7 @@ class Api::Payment::CallbackController < Api::ApiController
|
||||
if trade_status == "PAY_SUCCESS"
|
||||
merch_order_id = params[:Request][:merch_order_id]
|
||||
|
||||
status, filename, sale_receipt_no, printer_name = Payment.pay(getCloudDomain, cash, sale_id, member_info, type, tax_type, path, latest_order_no, shop_detail, current_user, 'kbzpay', merch_order_id)
|
||||
status, filename, sale_receipt_no, printer_name = Payment.pay(getCloudDomain, cash, sale_id, member_info, type, tax_type, path, latest_order_no, current_shop, current_user, 'kbzpay', merch_order_id)
|
||||
render json: JSON.generate({:status => status, :message => "Can't Rebate coz of Sever Error ", :filename => filename, :receipt_no => sale_receipt_no, :printer_name => printer_name})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user