HI,
I am a developer in New Zealand, looking to integrate VISA API into one of the mobile applications.
For that, I am trying to access the "Helloworld" endpoint to make sure connectivity from my development environment to sandbox is working with the required certificates and credentials before I start accessing any VISA APIs.
I am trying two different ways
Create a project by using default CSR provided by VISA
When I select the option to use VISA provided API, I can able to download the key and once the project is created I can see credentials and certificate.
I have used those credentials and certificates to try to access the HelloWorld endpoint like below, returns error Expected input credential was not present. I am not sure what I am doing wrong here.
CORRELATION-ID: 1642744861_794_616235343_l55c013_VDP_WS
Create a project using My own CSR
1. I am created CSR I have used ST: New Zeland and upload
I have received Status Code:400 Bad Request
X-CORRELATION-ID: 2_1642745902_898_74_l55p058m_VDP_ARM
and flowing the error
csridentifier ST (State or Province Name) errorMsg value not valid.
Could you share more details what are those acceptable values for New Zealand ( FYI I have followed this https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#configuring_twoway_ssl_keystore_...)
2. I am created CSR I have used ST: Wellington and upload
I have received Status Code: 500 Internal Server Error
X-CORRELATION-ID: 2_1642745581_375_88_l55p056m_VDP_ARM
and flowing the error
failed_registration
It is difficult to get around as documentation is helping me to solve this issue.
Thanks,
Josna.
Solved! Go to Solution
Thank you for reaching out, @JB1! An agent is looking for a solution for you and will get back to you shortly. In the meantime, if anyone has any ideas that you feel may help, please share them with Josna here. -Jenn
Hi @JB1,
When creating a project, I recommend you to use the default generate a CSR for me option.
The error 400 - 9124 Expected input credential was not present usually occurs when the credentials used are invalid. Please confirm if you are using valid credentials? To access your project credentials, please login to your VDP account > My Account > Dashboard > project app > Credentials
Here's the quick start guide for developers: https://developer.visa.com/pages/working-with-visa-apis/visa-developer-quick-start-guide
There is the VDP Playground, Postman or SOAP UI tool to test the APIs. Below are the user guides for these respective tools.
VDP Playground – https://community.developer.visa.com/t5/Developer-Tools/How-to-test-and-troubleshoot-APIs-with-the-V...
Postman – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_...
SOAP UI – https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl#testing_twoway_ssl_connectivity_...
I have already used the same links from your documentation.
These errors are appearing only when I am running those on corporate VPN. But VPN seems to allow my query
Hi @JB1,
It looks like you are getting error 400, message: expected input credential was not present.
This usually occurs when your certificates are not sent. Or this error can occur when Basic Authentication is not sent in the header with the username and password base64 encoded.
• Keystore is not setup. Certificates are not in the keystore
○ For java keystore (jks) run keytool command and verify all the certificates have been imported on the keystore
§ keytool -list -v -keystore keystore.jks
○ For a p12 execute the following openssl command:
§ openssl pkcs12 -info -in keyStore.p12
• In SOAPUI check File->Settings->SSL Settings and make sure the KeyStore and KeyStore Password are populated in Soap UI
• Check SSL Info Tab in SOAP UI Response and verify you have a Local Certificate 1 , Local Certificate 2 followed by Peer Certificate 1 and Peer Certificate 2
You can also refer to this community forum post, where I've provided instructions on how to fix the error: https://community.developer.visa.com/t5/Two-way-SSL-X-Pay-Token/Always-getting-quot-Expected-input-c...