@funnelsgrove/payments 0.71.0 → 0.73.0

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.
@@ -1 +1 @@
1
- export declare const PAYMENTS_PACKAGE_VERSION = "0.71.0";
1
+ export declare const PAYMENTS_PACKAGE_VERSION = "0.73.0";
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/generate-package-version.mjs.
2
- export const PAYMENTS_PACKAGE_VERSION = "0.71.0";
2
+ export const PAYMENTS_PACKAGE_VERSION = "0.73.0";
@@ -2,6 +2,7 @@
2
2
  // https://docs.solidgate.com/payments/payments-insights/error-codes/
3
3
  const messages = {
4
4
  '0.02': 'The payment session expired. Start a new checkout to continue.',
5
+ '1.01': 'Your bank could not confirm this payment. Try again and complete the bank verification step, or use another card.',
5
6
  '2.04': 'This card type is not supported. Use another payment method.',
6
7
  '2.06': 'The security code is incorrect. Check the code on your card and try again.',
7
8
  '2.08': 'The card number is invalid. Check the number and try again.',
@@ -17,15 +18,17 @@ const messages = {
17
18
  '3.07': 'This card type is not supported. Use another payment method.',
18
19
  '3.09': 'Your bank requires additional verification. Try again and complete the bank verification step.',
19
20
  '3.11': 'Recurring payments are not authorized for this card. Use another payment method.',
21
+ '3.12': 'Your bank has closed or restricted this card. Contact your bank or use another payment method.',
20
22
  '3.13': 'The payment was cancelled. Try again and keep the payment window open until it finishes.',
21
23
  '4.08': 'The billing address does not match your card. Check the address with your bank and try again.',
24
+ '5.01': 'Your bank could not confirm this payment. Try again and complete the bank verification step, or use another card.',
22
25
  };
23
26
  export const solidgateDeclineMessage = (code) => ((code && Object.hasOwn(messages, code) ? messages[code] : undefined)
24
27
  || 'Your payment was declined. Use another payment method or contact your bank.');
25
28
  // Issuer, card-data and bank-verification refusals; other codes stay platform failures.
26
29
  const customerDeclineCodes = new Set([
27
- '2.04', '2.06', '2.08', '2.09', '2.15',
28
- '3.01', '3.02', '3.03', '3.04', '3.05', '3.06', '3.07', '3.08', '3.09', '3.11', '3.13',
29
- '4.08',
30
+ '1.01', '2.04', '2.06', '2.08', '2.09', '2.15',
31
+ '3.01', '3.02', '3.03', '3.04', '3.05', '3.06', '3.07', '3.08', '3.09', '3.11', '3.12', '3.13',
32
+ '4.08', '5.01',
30
33
  ]);
31
34
  export const isSolidgateCustomerDecline = (code) => (Boolean(code && customerDeclineCodes.has(code)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/payments",
3
- "version": "0.71.0",
3
+ "version": "0.73.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",
@@ -46,11 +46,11 @@
46
46
  "jsdom": "20.0.3",
47
47
  "typescript": "^5",
48
48
  "vitest": "^3.2.4",
49
- "@funnelsgrove/runtime": "0.44.0",
50
- "@funnelsgrove/analytics": "0.27.0"
49
+ "@funnelsgrove/runtime": "0.46.0",
50
+ "@funnelsgrove/analytics": "0.29.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@funnelsgrove/runtime": "^0.44.0",
54
- "@funnelsgrove/analytics": "^0.27.0"
53
+ "@funnelsgrove/runtime": "^0.46.0",
54
+ "@funnelsgrove/analytics": "^0.29.0"
55
55
  }
56
56
  }