Re: Error 403 in Funds Transfer API

Solved! Go to solution
Mapy
Regular Visitor

Error 403 in Funds Transfer API

Hi!

I've been trying the Funds Transfer API. However I'm always getting error 403.

I've encoded my userid and password using base64 encoding. I'm wondering what's wrong.

Screenshot is attached.

Thanks in advance!

4 REPLIES 4
Aravinda
Regular Visitor

Re: Error 403 in Funds Transfer API

Hi Mapy,

 

Looks like your authorization header is incorrect. It should be in the format as follows,

 

Authorization : Basic base64encoded(User ID:Password)

 

Refer, Visa Direct Sample Code in NodeJS

Mapy
Regular Visitor

Re: Error 403 in Funds Transfer API

 Hi Avarinda.

 

I used the PHP sample code. They needed the certificates with the user id and password.

Thanks for pinting me to the sample codes.

 

I'm having an new error now about:

Error: "SSL: Can't load the certificate "/Applications/XAMPP/htdocs/visa/cert.pem" and its private key: OSStatus -25299" - Code: 58

Aravinda
Regular Visitor

Re: Error 403 in Funds Transfer API

Hi Mapy,

This can happen due to two reasons, either the path you have provided in the code can't be resolved or the certificates are not avaiable in that path.

Mapy
Regular Visitor

Re: Error 403 in Funds Transfer API

Hi Aravinda,

Hope you had a great weekend.

 

I searched about the error I got, it seems it's a OS X issue.

 

I'll try deploying it in a Linux environment. Any chance you could tell me your deployment environment?