@bigcommerce/checkout-sdk 1.301.1 → 1.302.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/CHANGELOG.md +7 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +6 -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/StripeUPEShippingInitializeOptions.md +20 -0
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ iframe has a list of shipping addresses for the customer to choose from.
|
|
|
19
19
|
|
|
20
20
|
### Methods
|
|
21
21
|
|
|
22
|
+
- [getStripeState](StripeUPEShippingInitializeOptions.md#getstripestate)
|
|
22
23
|
- [getStyles](StripeUPEShippingInitializeOptions.md#getstyles)
|
|
23
24
|
- [onChangeShipping](StripeUPEShippingInitializeOptions.md#onchangeshipping)
|
|
24
25
|
|
|
@@ -58,6 +59,25 @@ The identifier of the payment method.
|
|
|
58
59
|
|
|
59
60
|
## Methods
|
|
60
61
|
|
|
62
|
+
### getStripeState
|
|
63
|
+
|
|
64
|
+
▸ **getStripeState**(`country`, `state`): `string`
|
|
65
|
+
|
|
66
|
+
get the state code needed for shipping stripe element
|
|
67
|
+
|
|
68
|
+
#### Parameters
|
|
69
|
+
|
|
70
|
+
| Name | Type |
|
|
71
|
+
| :------ | :------ |
|
|
72
|
+
| `country` | `string` |
|
|
73
|
+
| `state` | `string` |
|
|
74
|
+
|
|
75
|
+
#### Returns
|
|
76
|
+
|
|
77
|
+
`string`
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
61
81
|
### getStyles
|
|
62
82
|
|
|
63
83
|
▸ `Optional` **getStyles**(): `Object`
|