@funnelsgrove/payments 0.11.19 → 0.11.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,7 +45,8 @@ export const classifyCheckoutFailure = (input) => {
|
|
|
45
45
|
const providerErrorType = asNonEmptyString(input.providerErrorType);
|
|
46
46
|
if (input.provider === 'stripe' && (Boolean(providerDeclineCode)
|
|
47
47
|
|| providerErrorType === 'card_error'
|
|
48
|
-
|| (providerErrorCode ? STRIPE_PAYMENT_REJECTION_CODES.has(providerErrorCode) : false)
|
|
48
|
+
|| (providerErrorCode ? STRIPE_PAYMENT_REJECTION_CODES.has(providerErrorCode) : false)
|
|
49
|
+
|| /card has insufficient funds|unable to authenticate your payment method/i.test(input.errorMessage))) {
|
|
49
50
|
return 'payment_rejection';
|
|
50
51
|
}
|
|
51
52
|
const message = input.errorMessage.trim();
|