Please enable JavaScript.
Coggle requires JavaScript to display documents.
Epayment Echeck Implementation Service (DB SP 1 call (If "DEBIT',…
Epayment Echeck Implementation Service
epay.vb
ecTran
runECTran of main.vb
ecTranDirect of midTier.vb
Encrypt secured fields like
ABANumber/ BankAccount/Check Type.
call "
ecTranNew
"-
ecStoredProcStep1
of web.config
if ResultCode of DB SP call above is ok,
if ecInput.TranType = "LOOKUP_BY_TOKEN"
If
ECInfoUpdated
and
containerName
of DB Call doesn't equal to the "
tranContainerName
" in Web.config, which is "EPAY_TEST_local_1"
ABANumber/BankAccount/Check Type
need to be decrypted and re-encrypted.
connect to ACHD, if "PayProcConnect"
of DB SP call output
if ecInput.TranType = DEBIT
perform IDVerification by using IDVerifyWSClient if SSN is present and service is enabled in web.config
Call PaymentGatewayClient.ACHSale
if ecInput.TranType = "CREDIT"
call PaymentGatewayClient.ACHCredit
If ecInput.TranType = "VALIDATE"
call PaymentGatewayClient.ACHVerify
CALL 2nd SP,
updateECTran
,
ecStoredProcStep2
of
web.confg
, if
PayProcConnect
= 1 Or
ECInfoUpdated
= 1
DB SP 2 Call
updateECTran
trans_type is "
SAVE_EC
select * from security_privilege where PRIVILEGE_CODE = 'V'
Call SP "addVaultValues"
Vault1
=
ABANumber,
Vault2
=
BankAccount,
Vault3
=
CheckType,
VaultID
=
TokenNumber
updateTransAction
if PRIVILEGE_CODE = 'B' or 'C'
Credit or debit.
Call SP AddValutValues
there is a situation, when vault entry is added , but token was not passed in as input, this situation is handled here.
Call SP updateTransAction.
UPDATE [ECHECK_TRANS] direct call
if PRIVILEGE_CODE = 'EV'
Validate.
Call SP updateTransAction
DB SP 1 call
call SP
getAdmin
, and save the value to
admin.
call SP
parseUserID
, by tokenize the user name value passed in from
getAdmin
.
This will check whether the user is admin or not.
call SP
getUser
for authentication.
if
isValid
is not 1, call
addTransaction
to store the message.
call SP
getUserSettings
for authorization. purpose.
if
isValid
is not 1, call
addTransaction
to store the message.
call SP
getECheckSettingsMP
to retrieve the echeck configuration.
This is a big function
if
isValid
is not 1, call
addTransaction
to store the message.
check ABANumber and BankAccount is valid or not, this is hardcoded in .net and isValid is passed in as "1" for
ECValid
if "DEBIT', CREDIT or SAVE_EC, call GetVaultValues. to getvault values, which will be used in .net to decrypt.
If "DEBIT', "CREDIT",
set
PayProcConnect
= 1 to mark it there is a need to call vendor
add intial ECHECK_TRANS record by calling "
addECheckTrans
"
If "VALIDATE"
set
PayProcConnect
= 1 to mark it there is a need to call vendor
IF 'SAVE_EC"
Call
addVaultValues
IF look up
call
getVaultValues
to get info,
admin
value checked before will be used to determine whether is panreadable.
If delete token
call delVaultValues to delete the value from vault.