ghost-payment-service
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43497