lucideus-repo/UnSAFE_Bank

Adding Account number details in the Fund transfer

Opened this issue · 1 comments

Hi,

I would like to add additional field (account number) to Fund transfer data details.

I checked "handleBankFundTransferThunk.ts" in the " web/src/app/thunks/BankTransfer/" and I can see that additional fields are possible when under "data" structure, like:

const handleBankFundTransfer = (
token: string,
alias: string,
amount: string,
accountNumber: string,
remarks: string,
otpRespose: string
) => (dispatch: Dispatch) => {
axios
.post(routes.api.fundTransfer.payBankTransfer, {
requestBody: {
timestamp: "325553",
device: {
deviceid: "UHDGGF735SVHFVSX",
os: "ios",
host: "lucideustech.com"
},
data: {
alias: alias,
amount: amount,
account_number: accountNumber,
remarks: remarks,
otp_response: otpRespose
}
}

I can see that there are other files related to payment handling:

web/src/app/slices/BankTransferSlice.ts
web/src/app/components/Pages/FundTransfer/BankTransferPage.tsx
web/src/app/store/ReduxState.ts

When ever I tried to modify all files and add "accountNumber" field, I can't rebuild containers, because of errors.
Tried several combinations, but unsuccessful.

Can you just point me where in the structure additional details needs to be added so "accountNumber" field can be included in the Fund transfer details?

Thanks,
Miha

Hi all,

I figure it out how account No can be added to the data structure.
If you want I can post modified files.

Thanks,
Miha