card payment

This commit is contained in:
Myat Zin Wai Maw
2019-11-27 15:05:42 +06:30
parent 98b74af6cf
commit fe5dc6bb5a
15 changed files with 93 additions and 78 deletions

View File

@@ -1,6 +1,6 @@
class Api::VerificationsController < ActionController::API
def new
def new
phone_number = params[:phone_number]
#TODO - user generate
@@ -10,9 +10,9 @@ class Api::VerificationsController < ActionController::API
VerifyNumber.send_message(phone_number, @cus.pin_code)
@result = true
end
end
end
def update
def update
phone_number = params[:phone_number]
pin_code = params[:pin_code]
@cus = Customer.find_by_contact_no(phone_number)
@@ -23,4 +23,4 @@ class Api::VerificationsController < ActionController::API
end
end
end
end