Re: CyberSource Tokenize a card

3rguy
Newbie

CyberSource Tokenize a card

Hi,

 

I want to explore the Tokenisation Management Service (TMS) of Cybersource and its APIs. I'm currently trying to generate card tokens so that later on, I can detokenize them. So, I have started playing with FlexTokenizeCard API to generate the token of a card.

This is what I have done so far:
I have registered myself on the VISA developer portal and I have created a Cybersource Payment project. This helped me to get a CyberSource merchant id. Using the id, I have then created a CyberSource sandbox account where I have generated a shared secret key. Using the merchant id, shared secret key id and shared secret key, I have been then using the FlexTokenizeCard API through the CyberSource sample java code.

However, whenever I try to run it, I encounter the following issue:

 

"status":400,"reason":"TOKENIZATION_ERROR","message":"Token not created: One or more fields in the request contain invalid data.  Resend the request with the correct information."

 

 

Does anyone know what I'm doing wrong?

 

1 REPLY 1
API_Managers
Visa Developer Support Specialist

Re: CyberSource Tokenize a card

Hey @3rguy,

 

That's a great question. My apologies for delayed response. At this time, the only way to properly query the CyberSource Payments sandbox is by creating a merchant account directly with CyberSource:
 
https://developer.cybersource.com 

 

The CyberSource website lets you easily test their account credentials:
 
https://developer.cybersource.com/api/reference/api-reference.html 
 
Also, here's the links for sample code:  https://github.com/CyberSource/cybersource-rest-samples-java/blob/master/src/main/java/samples/payme...

 

Please let us know if you have other questions. Someone is happy 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.