Visa Developer Community

Helper

Visa Direct PullFundsTransactions not working

Hi, I'm doing some tests regarding the Visa Direct and I'm getting a bad request error without any further information. 

I have sent exactly the same as de demo that we have in the documentation, hereby:

 

{
"acquirerCountryCode":"840",
"acquiringBin":"408999",
"amount":"124.02",
"businessApplicationId":"AA",
"cardAcceptor":{
"address":{
"country":"USA",
"county":"081",
"state":"CA",
"zipCode":"94404"
},
"idCode":"ABCD1234ABCD123",
"name":"Visa Inc. USA-Foster City",
"terminalId":"ABCD1234"
},
"cavv":"0700100038238906000013405823891061668252",
"foreignExchangeFeeTransaction":"11.99",
"localTransactionDateTime":"2019-07-15T17:52:25Z",
"retrievalReferenceNumber":"330000550000",
"senderCardExpiryDate":"2015-10",
"senderCurrencyCode":"USD",
"senderPrimaryAccountNumber":"4895142232120006",
"surcharge":"11.99",
"systemsTraceAuditNumber":"451001",
"nationalReimbursementFee":"11.22",
"cpsAuthorizationCharacteristicsIndicator":"Y",
"addressVerificationData":{
"street":"XYZ St",
"postalCode":"12345"
},
"settlementServiceIndicator":"9",
"colombiaNationalServiceData":{
"countryCodeNationalService":"170",
"nationalReimbursementFee":"20.00",
"nationalNetMiscAmountType":"A",
"nationalNetReimbursementFeeBaseAmount":"20.00",
"nationalNetMiscAmount":"10.00",
"addValueTaxReturn":"10.00",
"taxAmountConsumption":"10.00",
"addValueTaxAmount":"10.00",
"costTransactionIndicator":"0",
"emvTransactionIndicator":"1",
"nationalChargebackReason":"11"
}
}

 

 

The thing is that, if I add the certificate to the request I got 401 Unauthorized, if I don't add it I got 400 bad request.

Any idea how to fix that?

12 REPLIES 12
Visa Dev Moderator

Re: Visa Direct PullFundsTransactions not working

Hey @AntunesWill,

 

To further investigate, please provide the following information:

1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.

 

 

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana

Helper

Re: Visa Direct PullFundsTransactions not working

Hi, I have solved it.

But I have a question about the flow of P2P payments.

To make transfers between persons I need to pull funds from the sender and push funds to the receipter, right?

But in the push funds method we don't  have any relation with the pull funds that was executed before, how is that done?

Helper

Re: Visa Direct PullFundsTransactions not working

And another question, I'm now able to pull and push funds from persons. Is there a way to see those transactions that I'm creating within Visa Developers Portal or something like that?

Re: Visa Direct PullFundsTransactions not working

Hi @AntunesWill , can you please tell me the path of the pull funds transactions method in the downloaded source code for api clients.

 

Thanks

Tags (1)
Helper

Re: Visa Direct PullFundsTransactions not working

 
Helper

Re: Visa Direct PullFundsTransactions not working

Hi,

I was sending the authorization in a wrong way, I just needed to add the basic authentication with the username and ID, and before I was doing it manually.

Helper

Re: Visa Direct PullFundsTransactions not working

@AntunesWill Yeah, In my case jks keystore isn't working in soapUI working with the p12.

 

Helper

Re: Visa Direct PullFundsTransactions not working

@AntunesWill Were you able to download the source code for fund transfer java api client? Or do we need to make our own?

Highlighted
Helper

Re: Visa Direct PullFundsTransactions not working

I'm not using java technology, so I cannot help you with that. But my tests worked in SOAPUI, try to watch the video which the guy helps to get connection using the helloworld method. I don't have the link now but you can find it in the documentation.