@bigcommerce/checkout-sdk 1.384.1 → 1.385.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.
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +5 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/interfaces/AdyenComponentEvents_2.md +20 -0
- package/docs/interfaces/AdyenComponent_2.md +11 -0
- package/docs/interfaces/AdyenV3CreditCardComponentOptions.md +24 -0
- package/docs/interfaces/AdyenV3PaymentInitializeOptions.md +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
- [onChange](AdyenComponentEvents_2.md#onchange)
|
|
16
16
|
- [onError](AdyenComponentEvents_2.md#onerror)
|
|
17
17
|
- [onFieldValid](AdyenComponentEvents_2.md#onfieldvalid)
|
|
18
|
+
- [onSubmit](AdyenComponentEvents_2.md#onsubmit)
|
|
18
19
|
|
|
19
20
|
## Methods
|
|
20
21
|
|
|
@@ -72,3 +73,22 @@ ___
|
|
|
72
73
|
#### Returns
|
|
73
74
|
|
|
74
75
|
`void`
|
|
76
|
+
|
|
77
|
+
___
|
|
78
|
+
|
|
79
|
+
### onSubmit
|
|
80
|
+
|
|
81
|
+
▸ `Optional` **onSubmit**(`state`, `component`): `void`
|
|
82
|
+
|
|
83
|
+
Called when the shopper selects the Pay button and payment details are valid.
|
|
84
|
+
|
|
85
|
+
#### Parameters
|
|
86
|
+
|
|
87
|
+
| Name | Type |
|
|
88
|
+
| :------ | :------ |
|
|
89
|
+
| `state` | [`AdyenV3ComponentState`](../README.md#adyenv3componentstate) |
|
|
90
|
+
| `component` | [`AdyenComponent_2`](AdyenComponent_2.md) |
|
|
91
|
+
|
|
92
|
+
#### Returns
|
|
93
|
+
|
|
94
|
+
`void`
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
### Methods
|
|
14
14
|
|
|
15
15
|
- [mount](AdyenComponent_2.md#mount)
|
|
16
|
+
- [submit](AdyenComponent_2.md#submit)
|
|
16
17
|
- [unmount](AdyenComponent_2.md#unmount)
|
|
17
18
|
|
|
18
19
|
## Properties
|
|
@@ -63,6 +64,16 @@ ___
|
|
|
63
64
|
|
|
64
65
|
___
|
|
65
66
|
|
|
67
|
+
### submit
|
|
68
|
+
|
|
69
|
+
▸ **submit**(): `void`
|
|
70
|
+
|
|
71
|
+
#### Returns
|
|
72
|
+
|
|
73
|
+
`void`
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
66
77
|
### unmount
|
|
67
78
|
|
|
68
79
|
▸ **unmount**(): `void`
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- [onChange](AdyenV3CreditCardComponentOptions.md#onchange)
|
|
31
31
|
- [onError](AdyenV3CreditCardComponentOptions.md#onerror)
|
|
32
32
|
- [onFieldValid](AdyenV3CreditCardComponentOptions.md#onfieldvalid)
|
|
33
|
+
- [onSubmit](AdyenV3CreditCardComponentOptions.md#onsubmit)
|
|
33
34
|
|
|
34
35
|
## Properties
|
|
35
36
|
|
|
@@ -194,3 +195,26 @@ ___
|
|
|
194
195
|
#### Inherited from
|
|
195
196
|
|
|
196
197
|
[AdyenComponentEvents_2](AdyenComponentEvents_2.md).[onFieldValid](AdyenComponentEvents_2.md#onfieldvalid)
|
|
198
|
+
|
|
199
|
+
___
|
|
200
|
+
|
|
201
|
+
### onSubmit
|
|
202
|
+
|
|
203
|
+
▸ `Optional` **onSubmit**(`state`, `component`): `void`
|
|
204
|
+
|
|
205
|
+
Called when the shopper selects the Pay button and payment details are valid.
|
|
206
|
+
|
|
207
|
+
#### Parameters
|
|
208
|
+
|
|
209
|
+
| Name | Type |
|
|
210
|
+
| :------ | :------ |
|
|
211
|
+
| `state` | [`AdyenV3ComponentState`](../README.md#adyenv3componentstate) |
|
|
212
|
+
| `component` | [`AdyenComponent_2`](AdyenComponent_2.md) |
|
|
213
|
+
|
|
214
|
+
#### Returns
|
|
215
|
+
|
|
216
|
+
`void`
|
|
217
|
+
|
|
218
|
+
#### Inherited from
|
|
219
|
+
|
|
220
|
+
[AdyenComponentEvents_2](AdyenComponentEvents_2.md).[onSubmit](AdyenComponentEvents_2.md#onsubmit)
|
|
@@ -108,7 +108,7 @@ ___
|
|
|
108
108
|
|
|
109
109
|
### options
|
|
110
110
|
|
|
111
|
-
• `Optional` **options**: `Pick`<[`AdyenV3CreditCardComponentOptions`](AdyenV3CreditCardComponentOptions.md), ``"details"`` \| ``"enableStoreDetails"`` \| ``"hasHolderName"`` \| ``"holderNameRequired"`` \| ``"data"`` \| ``"groupTypes"`` \| ``"placeholders"`` \| ``"brands"`` \| ``"styles"`` \| ``"onError"`` \| ``"onFieldValid"`` \| ``"showBrandsUnderCardNumber"``\>
|
|
111
|
+
• `Optional` **options**: `Pick`<[`AdyenV3CreditCardComponentOptions`](AdyenV3CreditCardComponentOptions.md), ``"details"`` \| ``"enableStoreDetails"`` \| ``"hasHolderName"`` \| ``"holderNameRequired"`` \| ``"data"`` \| ``"groupTypes"`` \| ``"placeholders"`` \| ``"brands"`` \| ``"styles"`` \| ``"onError"`` \| ``"onFieldValid"`` \| ``"showBrandsUnderCardNumber"`` \| ``"onSubmit"``\>
|
|
112
112
|
|
|
113
113
|
Optional. Overwriting the default options
|
|
114
114
|
|