Dear team,
I'm newbie here and started my integration with VISA Forex Exchange API SANDBOX.
When i try to Run it on POSTMAN it works fine and Give me the Proper Conversion Rate
But when i tried with SOAP UI which require JKS file it gave me the error 400.
Please give some suggestions over this.
i have attached the screenshot of the configuration in SOAP UI.
Please Provide the solution .
User_id:- 4L2Y80BC6PRBWIWN377J217SCwHTnRhN1ogjbo5e7ePpKuwF0
Password :- qA3kCsRnB53Hz16f24GZjdxXKF1d65Ah3
{"responseStatus": {
"status": 400,
"code": "9123",
"severity": "ERROR",
"message": "Expected input credential was not present",
"info": ""
}}
Hi @Prem_Bendekar,
The problem here is that the x-pay-token is not properly getting generated.
Please make sure all the configuration parameters that are used to build the x-pay-token hash like the shared secret and the api key have been populated in the configuration.ini file of the php sample code.
For example:
apiKey=QZBF9XJOYEVBAGUXNK4W21yTwvsKeGvLacdlxV6M0HkvVYsdsf
sharedSecret=3x$sIOCjPgYJi{fP/pC0Bs3cVSwlc61u+rt}Xrasd
You can debug and step into the following function to make sure the x-pay-token is getting built:
VisaAPIClient:doXPayTokenCall
$sharedSecret = $this->conf ['VDP'] ['sharedSecret'];
$apiKey = $this->conf ['VDP'] ['apiKey'];
$time = time();
$preHashString = $time.$resource_path.$query_string.$requestBodyString;
$xPayToken = "xv2:".$time.":".hash_hmac('sha256', $preHashString, $sharedSecret);
Thanks,
Illana
Hi @Prem_Bendekar,
Apologies for missing that! If you would like to send your keystore and certificates for the technical team to review, please email Developer@visa.com, as the VDP Community Forum is a public forum.
Thanks,
Illana