Visa Direct PullFundsTransactions not working

Solved! Go to solution
AntunesWill
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
API_Products
Visa Developer Support Specialist

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.

 

 




Thanks,

Diana



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

AntunesWill
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?

AntunesWill
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?

API_Products
Visa Developer Support Specialist

Re: Visa Direct PullFundsTransactions not working

Hey @AntunesWill,

 

Question:

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?

 

[Answer]

Great to hear that you are now able to successfully pull and push funds from persons! If you are sandbox testing in SoapUI or Postman, then you will not be able to see those same transactions appear in the Visa Developer Portal. However, if you are asking if you can see pull funds transaction and push funds transaction in VDP,  then you can review this in Code Explorer on the Visa Direct API Reference page here (refer to screenshot example below)  - https://developer.visa.com/capabilities/visa_direct/reference

 

20190717 Visa Direct Code Explorer example.png

 

 

 




Thanks,

Diana



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

swaritsharma
Regular Contributor

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

swarit
Helper

Re: Visa Direct PullFundsTransactions not working

 
AntunesWill
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.

swarit
Helper

Re: Visa Direct PullFundsTransactions not working

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

 

swarit
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?