The official Node.js SDK for the CyberSource REST API (version 0.0.79) allows merchants to process payments, manage transactions, and access CyberSource services from Node.js applications. It requires Node.js 14.21.3 or higher. The SDK supports multiple authentication methods: HTTP Signature (deprecated), JWT with P12 certificate, and JWT with Shared Secret (recommended migration path from HTTP Signature, enabling Message Level Encryption). It also supports MetaKey for portfolio-level management. Key differentiators: official CyberSource SDK, support for JWT Shared Secret, MetaKey functionality, and clear deprecation guidance for HTTP Signature.
npm install cybersource-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a merchant config, instantiate the API client, and make a payment using JWT Shared Secret auth.
Change authenticationType to 'jwt', set jwtKeyType: 'SHARED_SECRET', and keep same merchantKeyId/merchantsecretKey.
Upgrade Node.js to 14.21.3 or higher.
Use const ApiClient = require('cybersource-rest-client'); correctly.Use enableLog: true and specify logDirectory and logFilename.
Use `import ApiClient from 'cybersource-rest-client'` or `const ApiClient = require('cybersource-rest-client')`.Ensure `authenticationType` is set to 'http_signature' or 'jwt' (string, case-sensitive).
Double-check the credentials from CyberSource portal. Ensure jwtKeyType is 'SHARED_SECRET'.