a function to decrypt has been added to the mix

This commit is contained in:
cktricky
2014-03-16 15:26:33 -04:00
parent 3a5818c493
commit 87f9c825ba
3 changed files with 61 additions and 2 deletions
+7
View File
@@ -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