Bug #4494

BII RMBP: Server - Third Party Account Fund Transfer

Added by Tan Lee Yong about 10 years ago. Updated almost 10 years ago.

Status:Work Completed-End life cycleStart date:June 30, 2014
Priority:NormalDue date:
Assignee:M Nurdin Norazan% Done:

100%

Category:Server API DevelopmentSpent time:-
Target version:-

ThirdPartyFundTransferIntegration.docx (20.8 KB) Ngoh Chee Onn, August 07, 2014 16:22

Screen Shot 2014-08-18 at 6.24.03 PM.png (56.4 KB) M Nurdin Norazan, August 18, 2014 18:27

ThirdPartyFundTransferIntegration.docx (23.4 KB) Ngoh Chee Onn, August 26, 2014 10:38

History

#1 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • Status changed from New - Begin Life Cycle to Finished Development
  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan
  • % Done changed from 0 to 100

Hi Nurdin,

Development done for Server side Third Party Fund Transfer, you may call url below by adapter to get the restful response.

i)Module Third Party Fund Transfer Details Page
Path - http://121.121.18.49:9083/bii-rest/service/thirdPartyServices/processTransferDetails

Request Parameter - Long userId, String locale, String serviceInfoType, String transferType, String sessionId

Response - currency map, from account map, to account map(if transfer type is registered), service info bean and etc

Sample input - 1551, en, FUNORA, open/registered, 20140704140514008131

ii)Module Third Party Fund Transfer Confirm Page
Path - http://121.121.18.49:9083/bii-rest/service/thirdPartyServices/proceedThirdPartyConfirm

Request Parameter - String transferType, String toAccountNumber, String toCurrency, String fromCurrency, String toAmount, String fromAccountNumber, Long userId, String locale, Boolean isTacRequired, String serviceInfoName, String sessionId, Boolean isStandingInstruction, String payMode

Response - debitAmount, fromCurrencyRate, localAmount, toAccountHolderName, etc

Sample input - open, 1234567890, IDR, IDR, 20000, 2003500382, 1551, en, false, Transfer Within BII Account, 20140704140514008131, false, 1

ii)Module Third Party Fund Transfer Result Page
Path - http://121.121.18.49:9083/bii-rest/service/thirdPartyServices/proceedThirdPartyResult

Request Parameter - String transferType, String toAccountNumber, String toCurrency, String fromCurrency, String toAmount, String fromAccountNumber, Long userId, String locale, Boolean isTacRequired, String tac, String serviceInfoCode, String serviceInfoName, String sessionId, String paymentMode, String userAlias, String fromAmount, String localAmount, String toAccountHolderName, String remark, Integer fromCurrencyRate, Integer toCurrencyRate, String cifNo, String transactionName, String effectiveDate, String remoteIPAddress, String terminationDate, String payFrequencyCode, String toAccountEmailAddress, String userAgent, Integer channel
*effectiveDate(only for payment mode = 2 and 3)
*terminationDate, payFrequencyCode(only for payment mode = 3)

Response - isTransactionSuccessful, fromAccountNumberMask, receiptEN, receiptIN, referenceNumber, smsMessage and etc

Sample Input - open, 1234567890, IDR, IDR, 20000, 2003500382, 1551, en, false, "", FUNORA, Transfer Within BII Account, 20140704140514008131, 1, ribuser, 20000, 20000, Tester123, testing only, 1, 1, 12345, third fund transfer, 23/12/2014, 192.168.1.1, 23/12/2016, 3, , mobile, 2

Thank you.

#2 Updated by M Nurdin Norazan about 10 years ago

  • Status changed from Finished Development to Development / Work In Progress
  • % Done changed from 100 to 0

Empty from account map.

#3 Updated by M Nurdin Norazan about 10 years ago

  • Tracker changed from Task to Bug
  • Assignee changed from M Nurdin Norazan to Ngoh Chee Onn

Empty from account map.

#4 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan

Hi nurdin,

Before you getting all the details you must check the response code from the server, if the response code not "00" means that some error on the parameter passing. You try to check the response code you getting from the server isn't "00" or others.

Thank you.

#5 Updated by M Nurdin Norazan about 10 years ago

  • Assignee changed from M Nurdin Norazan to Ngoh Chee Onn
  • % Done changed from 0 to 30

I got this error when try trigger this

{
"errors": [
"Runtime: Failed to parse JSON string\nError 404: Not Found"
],
"info": [
],
"isSuccessful": false,
"warnings": [
]
}

#6 Updated by M Nurdin Norazan about 10 years ago

UPDATED

error on function proceedThirdPartyConfirm

#7 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • File ThirdPartyFundTransferIntegration.docx added
  • Tracker changed from Bug to Task
  • Status changed from Development / Work In Progress to Finished Development
  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan

Hi Nurdin,

Please refer attachment for the latest Third Party Fund Transfer Integration API document.

Thank you.

#8 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • % Done changed from 30 to 100

#9 Updated by M Nurdin Norazan about 10 years ago

  • File Screen Shot 2014-08-18 at 6.24.03 PM.png added
  • Tracker changed from Task to Bug
  • Status changed from Finished Development to Development / Work In Progress
  • Assignee changed from M Nurdin Norazan to Ngoh Chee Onn
  • % Done changed from 100 to 0

Hi Chee Onn

For Third Party Fund Transfer Registered Account Details Page

From screenshot below, there only one fromAccountNumber but compare to response, it given to fromAccountNumber. Please advice.

Response

{
"filteredInterRegisteredAccounts": null,
"fromAccountMap": {
"1": {
"currecyCode": "016",
"accountNo": "2003500382",
"accountNoDisplay": "2003500382 CA IDR",
"accountHolderName": "LELY HERNAWATI",
"isocurrecyCode": "IDR"
},
"0": {
"currecyCode": "016",
"accountNo": "1001328000",
"accountNoDisplay": "1001328000 SA IDR",
"accountHolderName": "LELY HERNAWATI",
"isocurrecyCode": "IDR"
}
},
"loggerErrorParams": null,
"restToAccountsMap": {
"2003020570": {
"accountCurrency": "IDR",
"ibIntraAcctRef": null,
"emailAddress": "",
"accountLimit": 5.0E7,
"lastModTime": "2013-12-10",
"accountHolderName": "Abu Bakar bin Mohamad",
"accountNickname": "Projects Fund",
"accountNumber": "2003020570",
"ibIntraAcctStrcol1": null,
"ibIntraAcctStrcol2": null,
"userId": 1551,
"accountType": "D",
"mobileNumber": null
}
},
"loggerServiceName": null,
"toAccounts": null,
"loggerResponseCode": "00",
"responseHeaders": {
"Content-Language": "en-US",
"Date": "Mon, 18 Aug 2014 09:37:03 GMT",
"Transfer-Encoding": "chunked",
"Content-Type": "text\/plain",
"Connection": "keep-alive",
"Server": "nginx"
},
"serviceName": null,
"restFilteredInterRegisteredAccounts": null,
"responseMessage": null,
"statusCode": 201,
"currencyMap": {
"039": "USD",
"021": "CAD",
"034": "SGD",
"047": "EUR",
"040": "DEM",
"032": "NZD",
"024": "GBP",
"025": "HKD",
"017": "AUD",
"016": "IDR",
"029": "JPY"
},
"isSuccessful": true,
"filteredRegisteredAccounts": null,
"errorParams": null,
"responseTime": 1702,
"serviceInfoBean": {
"offlineMessage": "<p>FUNFRA<\/p>",
"minimumSmsAmount": "1",
"smsCharges": "1",
"serviceInfoCode": "FUNFRA",
"operationStartTime": "0830",
"weekend": true,
"rewardMultiplier": "0.00",
"operationHour": false,
"tableLimit": "0",
"rewardBase": "0",
"smsNote2": null,
"charges": "1",
"smsNote1": null,
"status": "0",
"smsServiceBit": 0,
"operationEndTime": "1500",
"denominator": "1000",
"minLimit": "0",
"serviceType": null,
"smsNote4": null,
"serviceInfoName": "Favorite Transfer Within BII Account",
"smsNote3": null,
"si": false,
"smsNote5": null,
"mainNote3": null,
"mainNote4": null,
"mainNote5": null,
"mainNote6": null,
"futureTransactionFlag": true,
"maxLimit": "6000",
"tacRequired": true,
"mainNote1": "<p>Make a transfer to a favorite BII Bank Savings or Current Account.<\/p>",
"mainNote2": null
},
"toForeignBankCode": null,
"responseCode": "00",
"loggerErrorCode": null,
"restFilteredRegisteredAccounts": null,
"buildToAccountsMap": null,
"responseID": "38",
"telegraphicTransferBankMap": null,
"serviceInfoType": "FUNFRA",
"statusReason": "Created",
"errorCode": null,
"loggerResponseMessage": null,
"toForeignBankAddress3": null,
"toCountryMap": null,
"interBankMap": null,
"foreignBankMap": null,
"registeredAccounts": null,
"toForeignBankAddress2": null,
"toForeignBankOID": null,
"totalTime": 1704,
"toForeignBankCountry": null,
"toForeignBankName": null,
"toForeignBankAddress1": null
}

#10 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • Status changed from Development / Work In Progress to Finished Development
  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan
  • % Done changed from 0 to 100

Hi Nurdin,

For the screen shot you shown is the rib demo data, that is not real and from account number is the user account number it would not be the same for difference user. For our design, the drop down list only for any data more that 1, we will not show the drop down for the input if the only 1 data.

Thank you.

#11 Updated by M Nurdin Norazan about 10 years ago

Hi Chee Onn

TQ for your clarification. For favourite interbank fund transfer, is it ok if array key is string instead numeric ?

http://stackoverflow.com/questions/25378959/json-how-to-parse-it-properly#25379084

Please advice. TQ

#12 Updated by M Nurdin Norazan about 10 years ago

  • Assignee changed from M Nurdin Norazan to Ngoh Chee Onn

#13 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan

Hi Nurdin,

For the any array response, you may use jquery method below to loop it and get the key data and the value data.

var test = result.invocationResult.restFilteredInterRegisteredAccounts;
$.each(test, function(index, item) {
alert("index ="+index);
alert("item="+item);
});

Thank you.

#14 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

Hi Nurdin,

Add in request TAC services for this module, please refer attachment document in yellow highlighted for the changes.

Thank you.

#15 Updated by M Nurdin Norazan about 10 years ago

  • Tracker changed from Task to Bug
  • Status changed from Finished Development to Development / Work In Progress
  • Assignee changed from M Nurdin Norazan to Ngoh Chee Onn

Hi Chee Onn

I got this error when invoking proceedThirdPartyTransferResult

{"responseID":"30","errors":["Ecma Error: ReferenceError: \"serviceInfoOpen\" is not defined. (%2FUsers%2FMNurdin%2FDocuments%2Feclipse%2Fbii-mobile%2Fadapters%2FBIIThirdPartyAccountFundTransferAdapter\/BIIThirdPartyAccountFundTransferAdapter-impl.js#143)"],"isSuccessful":false,"warnings":[],"info":[]}

Thanks

#16 Avatar?id=1966&size=24 Updated by Ngoh Chee Onn about 10 years ago

  • Assignee changed from Ngoh Chee Onn to M Nurdin Norazan

Hi Nurdin,

Please ensure the which URL you invoke, inside my document only got processOpenThirdPartyResult and processFavThirdPartyResult, i didn't know about proceedThirdPartyTransferResult.

If you are refer to "processOpenThirdPartyResult", it no issue on my side. The error you showing to me is the serviceInfoOpen variable not define, means that your adapter cannot found any variable with name "serviceInfoOpen". Please ensure the serviceInfoBean passing inside the adapter you create as below.

function proceedThirdPartyResultOpen(serviceInfoOpen) {
path = "bii-rest/service/thirdPartyServices/processOpenThirdPartyResult";

var input = {
method : 'post',
returnedContentType : 'json',
path : path,
body:{
contentType:'application/json; charset=UTF-8',
content:
JSON.stringify({
"serviceInfoBean":serviceInfoOpen,
})
}
};
return WL.Server.invokeHttp(input);
}

Thank you.

#17 Updated by Tan Lee Yong almost 10 years ago

  • Status changed from Development / Work In Progress to Work Completed-End life cycle

Also available in: Atom PDF