search account no,security code check,find order,payment create

This commit is contained in:
Myat Zin Wai Maw
2020-01-11 10:37:09 +06:30
parent d43266bd7d
commit 45326750db
10 changed files with 290 additions and 154 deletions

View File

@@ -222,7 +222,7 @@ class SalePayment < ApplicationRecord
account_no: account_no, amount: amount}.to_json,
:headers => {
'Content-Type' => 'application/json',
'Accept' => 'application/json; version=3'
'Accept' => 'application/json; version=4'
}, :timeout => 10
)
rescue Errno::ECONNREFUSED
@@ -336,7 +336,7 @@ class SalePayment < ApplicationRecord
:body => params,
:headers => {
'Content-Type' => 'application/json',
'Accept' => 'application/json; version=3'
'Accept' => 'application/json; version=4'
},
:timeout => 10
)
@@ -1043,7 +1043,6 @@ class SalePayment < ApplicationRecord
.group("sale_payments.sale_payment_id")
return query
end
private
def generate_custom_id
if self.sale_payment_id.nil?