Visa Developer Community

Highlighted
Regular Visitor

Getting Unauthorized User error on CyberSource Payments REST APIs

I have followed the API reference on the VDP portal on how to use the CyberSource Payments REST API (https://developer.visa.com/capabilities/cybersource/reference#cybersource__cybs_payments_v2__v2__pro...) and Im testing Process a Payment. I keep getting the following error although I have done everything:

 

{"response":{"rmsg":"{\"error\":\"UNAUTHORIZED_USER\",\"error_description\":\"UNAUTHORIZED USER\"}"}}

 

What does this error mean? The documentation is not clear what I have done wrong. I have set up logic to generate X-Pay-Token. What else should be done?

3 REPLIES 3
Highlighted
Visa Dev Moderator

Re: Getting Unauthorized User error on CyberSource Payments REST APIs

Hey @spencerchiggs

 

I'm happy assist you with the issue you're experiencing. Also, please note that, Visa Developer Portal generated Merchant ID's will have an unresolvable gateway issue.
 
There will be an EBC error message: "The payment processor gateway name is either invalid or missing"
 
At this time, you can only query the CyberSource Payments sandbox by creating a merchant account directly with CyberSource. To create a merchant account with CyberSource, navigate to the link below.
 
https://developer.cybersource.com 

 

You'll also see that the CyberSource website provides a simple method to test their account credentials:
 
https://developer.cybersource.com/api/reference/api-reference.html 
 
Furthermore, please follow this link for sample code:  https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/payme... 

 

If you have other questions or need further assistance, please reach out to us and we'll be ready to assist.

 



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana

Highlighted
Regular Visitor

Re: Getting Unauthorized User error on CyberSource Payments REST APIs

Looks good, and interesting for me. Because I want to create few chatbots for people in health care industry and follow different information for it. For example, I found cool article on https://spdload.com/blog/best-hipaa-compliant-chat-apps/

Highlighted
Visa Dev Moderator

Re: Getting Unauthorized User error on CyberSource Payments REST APIs

Hey @dasers,

 

That's great that your looking to create chatbots. I'm happy to provide you with assistance if you have questions or run into issues. Please reach out to us if you need help and someone will be happy to assist.  



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana