cancel
Showing results for 
Search instead for 
Did you mean: 

Node.js Authorization Error When Using cybersource-rest-client for Payments

Hi all, I'm integrating CyberSource’s REST API in a Node.js app using the cybersource-rest-client library. My payment requests consistently return a 401 Unauthorized error with the message: “Invalid authentication credentials.”

  • I’m sending "v-c-merchant-id", "v-c-date", and "v-c-trans-id" headers.

  • I’m following the example from the official SDK documentation.

  • My merchant ID and key are copied directly from the CyberSource portal, and they work fine in Postman.

  • I've double-checked that the system clocks on both servers are synchronized.

Could someone point out what I might be missing? Any help would be greatly appreciated!

sarivaa
Member
0 REPLIES 0