Socket
Socket
Sign inDemoInstall

ghost-payment-service

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-payment-service - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

4

lib/authorizeNet/authorizeNetService.js

@@ -236,4 +236,4 @@ 'use strict';

static _buildChargeError (errors) {
if (!_.isArray(errors) || _.isEmpty(errors) || !errors[0].error[0].errorText) return 'Unable to complete transaction.';
return errors[0].error[0].errorText;
console.log('charge error', JSON.stringify(errors));
return _.get(errors, '[0].error[0].errorText', 'Unable to complete transaction');
}

@@ -240,0 +240,0 @@

{
"name": "ghost-payment-service",
"version": "1.3.1",
"version": "1.4.0",
"description": "nodejs client to interact with the authorize.net & stripe apis",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc