Re: Error when sending cybersource flex tokens request

rbrandenburg
Helper

Error when sending cybersource flex tokens request

I am implementing sandbox application requests using the cybersource flex API to tokenize credit cards. When I send a request to the following URL:

 

https://sandbox.api.visa.com/cybersource/payments/flex/v1/tokens?apikey={api-key}

 

I get error code 9005: "requested route not found". However, other endpoints like this still work:

 

https://sandbox.api.visa.com/cybersource/payments

 

My understanding is that v1 is deprecated and I should be using v2, but replacing v1 with v2 gets the same error. The syntax for key generation seems to work the same, so is there some new endpoint to replace the "tokens" endpoint?

4 REPLIES 4
API_Managers
Visa Developer Support Specialist

Re: Error when sending cybersource flex tokens request

Hey @rbrandenburg,

 

I'm happy to help you resolve the CyberSource issue your experiencing. The only way you can test the CyberSource Payments sandbox is by creating a merchant account with CyberSource here: https://developer.cybersource.com 

 

CyberSource provides an easy way to test their account credentials: https://developer.cybersource.com/api/reference/api-reference.html 
 
Also, here's the links to the sample code:  https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/payme... 

 

Please let us know if there's anything else we can do to help.

 




Thanks,

Tee



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

rbrandenburg
Helper

Re: Error when sending cybersource flex tokens request

I try to follow the Cybersource documentation since I understand requests to Visa developer endpoints are passed along to Cybersource endpoints. However, I'm not sure exactly how the translation works. For instance, I've noticed that these two endpoints seem to be equivalent in how they handle requests:

 

https://sandbox.api.visa.com/cybersource/v2/credits

 

https://apitest.cybersource.com/pts/v2/credits

 

From this, I would assume that any requests to https://sandbox.api.visa.com/cybersource  are forwarded to https://apitest.cybersource.com/pts/. However, I need to access the endpoint https://apitest.cybersource.com/tms/v2/customers, or whatever Cybersource endpoint has replaced the tokens endpoint.

 

Am I understanding the translation from Visa developer endpoints to Cybersource correctly, or is there more to it? Is there a way to format the Visa endpoint such that it will reach customers, or do I need to send my requests to Cybersource endpoints directly? Key generation is still working at this endpoint: 

 

https://sandbox.api.visa.com/cybersource/v2/payments/keys

 

So ideally I would like to use and endpoint with which these keys will be compatible.

rbrandenburg
Helper

Re: Error when sending cybersource flex tokens request

I have an update on this issue after talking to Cybersource customer support. Apparently, the tokens endpoint was removed from the Secure Acceptance Flexible Token API, and I instead need to use the Cybersource Token Management API. However, on the Visa developer dashboard, I don't see this as an option when clicking "add API". Is there a way to access this API through Visa requests, or do I just need to send requests to Cybersource directly?

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Error when sending cybersource flex tokens request

Hi @rbrandenburg,

 

CyberSource Payments is no longer available on Visa Developer. 

Please visit: https://developer.cybersource.com for up-to-date information on CyberSource APIs.

 


Best,
Stacey

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