@ns8/ns8-shopify-switches
Advanced tools
Comparing version 1.0.170 to 1.0.171
@@ -197,14 +197,6 @@ "use strict"; | ||
const { kind, payment_details, status, source_name, } = transaction; | ||
if (kind === 'authorization' && !payment_details && transaction.gateway !== 'bogus') { | ||
console.log('authorization without payment_details', JSON.stringify({ | ||
contextData: transaction, | ||
})); | ||
} | ||
if (!payment_details && kind === 'capture' && (status === 'pending' || status === 'success')) { | ||
console.log('capture without payment_details', JSON.stringify({ | ||
contextData: transaction, | ||
})); | ||
} | ||
let shouldProcessOrder = false; | ||
if (!payment_details && kind !== 'void' && kind !== 'refund' && (status === 'pending' || status === 'success')) { | ||
if (!payment_details && | ||
kind !== 'void' && kind !== 'refund' && kind !== 'capture' && | ||
(status === 'pending' || status === 'success')) { | ||
shouldProcessOrder = true; | ||
@@ -211,0 +203,0 @@ } |
{ | ||
"name": "@ns8/ns8-shopify-switches", | ||
"version": "1.0.170", | ||
"version": "1.0.171", | ||
"description": "Custom switches for the shopify integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
80285
954