SafeCharge REST API SDK for Node.js enabling merchants to process payments via SafeCharge's payment gateway. Supports payment cards, alternative payment methods, and multiple PCI levels. Current version 1.0.1, no recent updates (appears unmaintained). Key differentiator: direct REST API wrapper for SafeCharge's PSP. Alternative: use official REST API over HTTPS. Note: library uses callbacks, not promises; last release lacks TypeScript definitions and modern ESM support.
npm install safechargeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the SafeCharge SDK with test credentials, then processes a credit card payment with error handling callback.
Wrap calls in new Promise((resolve, reject) => safecharge.payment(params, (err, res) => err ? reject(err) : resolve(res))); or migrate to a modern SDK.
Ensure setAlgorithm('md5') is called before any payment request if account uses MD5.Pass merchantId and siteId as strings; avoid leading zeros in numeric IDs.
Test with your Node version; consider using http.request directly.
Use require('safecharge') instead of import.call safecharge.initiate(...) at the start of your application.
Double-check merchantSecretKey and call setAlgorithm('md5') if using older account.No dependency data recorded yet.