a function to decrypt has been added to the mix
This commit is contained in:
@@ -33,4 +33,11 @@ class PayController < ApplicationController
|
||||
redirect_to user_pay_index_path
|
||||
end
|
||||
|
||||
def decrypted_bank_acct_num
|
||||
decrypted = Encryption.decrypt_sensitive_value(params[:value_to_decrypt])
|
||||
respond_to do |format|
|
||||
format.json {render :json => {:account_num => decrypted || "No Data" }}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user