card payment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user