@bigcommerce/checkout-sdk 1.617.2 → 1.618.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.
@@ -8,6 +8,10 @@
8
8
 
9
9
  - [form](DeprecatedPayPalCommerceCreditCardsPaymentInitializeOptions.md#form)
10
10
 
11
+ ### Methods
12
+
13
+ - [onCreditCardFieldsRenderingError](DeprecatedPayPalCommerceCreditCardsPaymentInitializeOptions.md#oncreditcardfieldsrenderingerror)
14
+
11
15
  ## Properties
12
16
 
13
17
  ### form
@@ -15,3 +19,21 @@
15
19
  • `Optional` **form**: `default`
16
20
 
17
21
  The form is data for Credit Card Form
22
+
23
+ ## Methods
24
+
25
+ ### onCreditCardFieldsRenderingError
26
+
27
+ ▸ `Optional` **onCreditCardFieldsRenderingError**(`error`): `void`
28
+
29
+ The callback that gets called when there is an issue with rendering credit card fields
30
+
31
+ #### Parameters
32
+
33
+ | Name | Type |
34
+ | :------ | :------ |
35
+ | `error` | `unknown` |
36
+
37
+ #### Returns
38
+
39
+ `void`
@@ -25,6 +25,7 @@ service.initializePayment({
25
25
  cardCode: { containerId: 'card-code' },
26
26
  },
27
27
  },
28
+ onCreditCardFieldsRenderingError: (error) => handleError(error),
28
29
  },
29
30
  });
30
31
  ```
@@ -71,6 +72,7 @@ service.initializePayment({
71
72
  console.log(isValid);
72
73
  },
73
74
  },
75
+ onCreditCardFieldsRenderingError: (error) => handleError(error),
74
76
  },
75
77
  });
76
78
  ```
@@ -81,6 +83,10 @@ service.initializePayment({
81
83
 
82
84
  - [form](PayPalCommerceCreditCardsPaymentInitializeOptions.md#form)
83
85
 
86
+ ### Methods
87
+
88
+ - [onCreditCardFieldsRenderingError](PayPalCommerceCreditCardsPaymentInitializeOptions.md#oncreditcardfieldsrenderingerror)
89
+
84
90
  ## Properties
85
91
 
86
92
  ### form
@@ -88,3 +94,21 @@ service.initializePayment({
88
94
  • **form**: `default`
89
95
 
90
96
  The form is data for Credit Card Form
97
+
98
+ ## Methods
99
+
100
+ ### onCreditCardFieldsRenderingError
101
+
102
+ ▸ `Optional` **onCreditCardFieldsRenderingError**(`error`): `void`
103
+
104
+ The callback that gets called when there is an issue with rendering credit card fields
105
+
106
+ #### Parameters
107
+
108
+ | Name | Type |
109
+ | :------ | :------ |
110
+ | `error` | `unknown` |
111
+
112
+ #### Returns
113
+
114
+ `void`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.617.2",
3
+ "version": "1.618.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",