Hi, I’m working on integrating CyberSource in sandbox with the Node.js SDK and I’m consistently getting a 403 Forbidden response when attempting to create a payment token.
Basic setup:
Sandbox environment
Node.js REST SDK
Tokenization endpoint per docs
I’ve verified credentials, merchant ID, and environment configuration. No useful error body is returned, so debugging is difficult.
Questions:
Is this a known issue with the sandbox environment?
Are there additional headers or configuration steps required for tokenization?
Any working Node.js example would be very helpful.
Thanks.
12-07-2025 05:31 AM
For me the sandbox only accepts Flex keys for tokenization. I was sending requests with my normal API keys and the sandbox just kept throwing 403 with no hint why. The other thing that tripped me up was the merchant ID not matching the key file I downloaded. CyberSource will not warn you about that, it just blocks the request. Also make sure the host is exactly apitest.cybersource.com and don’t add any extra headers because the sandbox silently rejects them.
Once I regenerated the Flex key pair and cleaned my config, the token call worked instantly. If you want to confirm fast, run the curl example from their docs. If curl succeeds, the issue is somewhere in the Node setup, not the sandbox.
12-08-2025 03:09 AM
A 403 in the sandbox usually means a problem with credentials or setup. Double-check your API keys, merchant ID, and environment configuration. Make sure all required headers are included. Sandbox accounts sometimes block requests if they’re not fully activated. Using the Node.js examples from CyberSource can help confirm your setup.
12-09-2025 11:43 AM
It's always a good idea to double-check the documentation for any additional configuration steps specific to tokenization. If possible, sharing a working Node.js example could really help clarify the process and ensure smoother integration.
12-10-2025 02:28 AM