callback kbzpay
This commit is contained in:
@@ -28,7 +28,7 @@ class Api::Payment::MobilepaymentController < Api::ApiController
|
||||
new_total = Sale.get_rounding_adjustment(saleObj.grand_total)
|
||||
rounding_adj = new_total-saleObj.grand_total
|
||||
saleObj.update_attributes(grand_total: new_total,old_grand_total: saleObj.grand_total,rounding_adjustment:rounding_adj)
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -41,7 +41,7 @@ class Api::Payment::MobilepaymentController < Api::ApiController
|
||||
@cash ={"change_amount"=>sale_payment[3],"balance_amount"=>sale_payment[4] ,"receipt_url"=>''}
|
||||
end
|
||||
@out = true,@cash
|
||||
|
||||
|
||||
else
|
||||
@out =false,"Something wrong!"
|
||||
sale_payment = SalePayment.new
|
||||
@@ -53,8 +53,4 @@ class Api::Payment::MobilepaymentController < Api::ApiController
|
||||
|
||||
end
|
||||
|
||||
def kbz_pay
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user