customer create

This commit is contained in:
Nweni
2019-11-19 09:16:55 +06:30
parent 5dc93ef2f8
commit aad153a4ef
11 changed files with 109 additions and 30 deletions

View File

@@ -0,0 +1,12 @@
if @shop
json.status true
json.id @shop.id
json.logo @shop.logo
json.name @shop.name
json.shop_code @shop.shop_code
json.cloud_url @shop.cloud_url
json.cloud_token @shop.cloud_token
else
json.status false
json.message "Record Not Found"
end

View File

@@ -0,0 +1,7 @@
if @result && @cus
json.status true
json.sent_pin true
else
json.status false
json.message "Customer Not Found"
end

View File

@@ -0,0 +1,7 @@
if @result && @cus
json.status true
json.message "Pin code verification succeeded"
else
json.status false
json.message "Customer Not Found Or Pin Code Verification Failed"
end