Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment with flex token example gives INVALID_DATA error #66

Open
8enSmith opened this issue Sep 13, 2023 · 4 comments
Open

Payment with flex token example gives INVALID_DATA error #66

8enSmith opened this issue Sep 13, 2023 · 4 comments

Comments

@8enSmith
Copy link

When I run the flex token payment example i.e.

node Samples/Payments/Payments/payment-with-flex-token.js

I get the following error in the response:

\"Declined - One or more fields in the request contains invalid data\",\"details\":[{\"field\":\"tokenInformation.jti\",\"reason\":\"INVALID_DATA\"

As these examples are supposed to be self-contained I expected this to work. Does anyone know what the issue is? I did try adding the jti value which you can obtain from the decoded JWT token but this didn't fix the issue.

Also note that the exact same problem applies to the payment-with-flex-token-create-permanent-tms-token.js example.

@rejith7
Copy link

rejith7 commented Nov 1, 2023

@8enSmith any leads on this? I too got this issue

@8enSmith
Copy link
Author

8enSmith commented Nov 1, 2023

@rejith7 the team Im in decided not to use any of the Node based cybersource repositories on GitHub due poor development experience e.g. poorly documented, unit tests which dont actually work, out of date javascript, no TypeScript support etc. Instead we decided to interact with CyberSource just via HTTP REST requests and TBH the documentation for the REST interface ins't great either!

If we had the option we would move to another provider! e.g. Stripe.

@Shameel123
Copy link

Facing the same issue here.

@Shameel123
Copy link

@8enSmith can you share the draft for sample REST API request here?
The ones in the docs isn't working either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants