Forex api error

Prem_Bendekar
Regular Visitor

Forex api error

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": ""
}}ssl_certificate.pngForex_soap_raw.pngforex_Soap.png

 

6 REPLIES 6
I_Doroteo3
Visa Developer Support Specialist

Re: Forex api error

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

Prem_Bendekar
Regular Visitor

Re: Forex api error

hi i_Doroteo3,
Thanks for Your Reply
Actually here i am using the two Way SSL Not the X-pay Token
as i mentioned i have created JKS keystore for this .
i think its not correct.
So guide me over this.
Also please suggest me how to attach the files in the Reply
i want to share my Keystore and certificates


I_Doroteo3
Visa Developer Support Specialist

Re: Forex api error

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

Prem_Bendekar
Regular Visitor

Re: Forex api error

i Dont have the permission to access email Developer@visa.com from my company's Mail'Id
is there any other Way to send it.
I_Doroteo3
Visa Developer Support Specialist

Re: Forex api error

Hi @Prem_Bendekar,

You can email Developer@visa.com via personal email as well.

Thanks,

Illana

englandthii
Newbie

Re: Forex api error

Thanks for Your Reply
Actually here i am using the two Way SSL Not the X-pay Token
as i mentioned i have created JKS keystore for this .