I am getting an issue while calling the API from curl using PHP and getting the same response (status":400,"code":"9124","severity":"ERROR","message":"Expected input credential was not present","info":"") again and again. I have also sent the JSON request of data as described on the "visa reference page" while requesting the API but the issue is still the same.
I have also go through your articles solution but that didn't work for me. I have also used the sample "Hello World" code to check the authentication for the API call and that's worked perfectly at my end. But, when I have called another VISA API it's not working, and getting the same response as I mentioned above. I have tried with the postman, but the same response is coming everywhere.
Kindly, assist me to fix this issue and guide me for the visa API configuration for payment.
Looking forward to your response.
The ERROR 400 - 9124 Expected input credential was not present error usually occurs when the client certificate is not sent.
I recommend using our VDC Playground tool to quickly test your project credentials and certificates first. You can find the guide on Getting Started with VDC Playground from this blog post here - https://developer.visa.com/pages/visa-developer-center-playground
Can you please let us know which API you are trying to call? Thanks.
Thank you for connecting with us.
Sure, We will go with the VDC Playground tool as per your suggestion for testing the project credentials for the same and we are working on the visa direct fund transfer API as you can see in the below screenshot.
We would need to create a mini online banking service from VISA using PHP, where users can transfer money from one account to another, can generate the QR code for payment, and can add the money to the website wallet from the visa card, using the CyberSource process. Can you please suggest to me what kind of API can we used to cover these functionalities and can make it a secure transaction?
Kindly, suggest me to configure the Visa API and also regarding the mini online banking service. It will really help me to integrate the work and can cover all functionality.
Looking forward to hearing from you.
Are you still getting 9124 error code when testing with the Playground tool? Can you please attach a screenshot of your Playground tool setup?
Here's my setup for reference.
Thank you for the information. Yes, we have tested on the Playground tool and set up the configuration as per your feedback.
We are getting the same response as you can see in the below screenshot.
We are getting the response on the tool, but when I used the same credentials in PHP to call the API by using Curl, it's not working and the response that I am getting is "Expected input credential was not present". Please assist me with the same so that we can configure it in the PHP code and call the API as well without using any tool and start the visa integration for the mini online banking process with CyberSource.
Looking forward to your response.
Thank you for confirming that you are getting a response from the API call when using the Playground tool. Since you are getting a response, this means your project credentials and certificates are all good.
I am unfamiliar with PHP, but I do have a tutorial on how to run a simple "Hello World" API and Two-Way SSL in Java . Please check it out and see if it helps.
We have checked this sample code in PHP and it's working fine at our end too. But when I called another API at the same time it's not working the same as the sample code does.
I am still looking for a solution to this issue. I have tried both methods to call API but this not work for me.
Thank you so much for your reference and guide.