@bigcommerce/checkout-sdk 1.217.0 → 1.218.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.js.map +1 -1
- package/dist/checkout-button.umd.js +2 -2
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +36 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +5 -5
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/opypaymentinitializeoptions.md +44 -0
- package/docs/interfaces/paymentinitializeoptions.md +10 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -4948,6 +4948,37 @@ declare interface OptionsResponse {
|
|
|
4948
4948
|
paymentMethodConfiguration?: BaseElementOptions;
|
|
4949
4949
|
}
|
|
4950
4950
|
|
|
4951
|
+
/**
|
|
4952
|
+
* A set of options that are required to initialize the payment step of
|
|
4953
|
+
* checkout in order to support Opy.
|
|
4954
|
+
*
|
|
4955
|
+
* When Opy is initialized, a widget will be inserted into the DOM. The
|
|
4956
|
+
* widget will open a modal that will show more information about Opy when
|
|
4957
|
+
* clicking it.
|
|
4958
|
+
*
|
|
4959
|
+
* @example
|
|
4960
|
+
*
|
|
4961
|
+
* ```html
|
|
4962
|
+
* <!-- This is where the Opy widget will be inserted -->
|
|
4963
|
+
* <div id="opy-widget"></div>
|
|
4964
|
+
* ```
|
|
4965
|
+
*
|
|
4966
|
+
* ```js
|
|
4967
|
+
* service.initializePayment({
|
|
4968
|
+
* methodId: 'opy',
|
|
4969
|
+
* opy: {
|
|
4970
|
+
* containerId: 'opy-widget',
|
|
4971
|
+
* },
|
|
4972
|
+
* });
|
|
4973
|
+
* ```
|
|
4974
|
+
*/
|
|
4975
|
+
declare interface OpyPaymentInitializeOptions {
|
|
4976
|
+
/**
|
|
4977
|
+
* The ID of a container which the payment widget should insert into.
|
|
4978
|
+
*/
|
|
4979
|
+
containerId: string;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4951
4982
|
declare interface Order {
|
|
4952
4983
|
baseAmount: number;
|
|
4953
4984
|
billingAddress: BillingAddress;
|
|
@@ -5158,6 +5189,11 @@ declare interface PaymentInitializeOptions extends PaymentRequestOptions {
|
|
|
5158
5189
|
* They can be omitted unless you need to support Moneris.
|
|
5159
5190
|
*/
|
|
5160
5191
|
moneris?: MonerisPaymentInitializeOptions;
|
|
5192
|
+
/**
|
|
5193
|
+
* The options that are required to initialize the Opy payment
|
|
5194
|
+
* method. They can be omitted unless you need to support Opy.
|
|
5195
|
+
*/
|
|
5196
|
+
opy?: OpyPaymentInitializeOptions;
|
|
5161
5197
|
/**
|
|
5162
5198
|
* The options that are required to initialize the PayPal Express payment method.
|
|
5163
5199
|
* They can be omitted unless you need to support PayPal Express.
|