diff --git a/lib/index.js b/lib/index.js index bfcc2db..01003a7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -84,6 +84,7 @@ class Payment { switch (type) { case 'middleware_nativePay': + case 'refund': break; default: if (json.return_code !== 'SUCCESS') throw new Error(json.return_msg || 'XMLDataError'); @@ -93,6 +94,7 @@ class Payment { case 'middleware_refund': case 'middleware_nativePay': case 'getsignkey': + case 'refund': break; default: if (json.result_code !== 'SUCCESS') throw new Error(json.err_code || 'XMLDataError');