@bigcommerce/checkout-sdk 1.245.0 → 1.245.1
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 +19 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/paymentinitializeoptions.md +10 -0
- package/docs/interfaces/worldpaypaymentinitializeoptions.md +39 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -5707,6 +5707,11 @@ declare interface PaymentInitializeOptions extends PaymentRequestOptions {
|
|
|
5707
5707
|
* They can be omitted unless you need to support Mollie.
|
|
5708
5708
|
*/
|
|
5709
5709
|
mollie?: MolliePaymentInitializeOptions;
|
|
5710
|
+
/**
|
|
5711
|
+
* The options that are required to initialize the Worldpay payment method.
|
|
5712
|
+
* They can be omitted unless you need to support Worldpay.
|
|
5713
|
+
*/
|
|
5714
|
+
worldpay?: WorldpayPaymentInitializeOptions;
|
|
5710
5715
|
}
|
|
5711
5716
|
|
|
5712
5717
|
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
@@ -6989,6 +6994,20 @@ declare interface WithMollieIssuerInstrument {
|
|
|
6989
6994
|
shopper_locale: string;
|
|
6990
6995
|
}
|
|
6991
6996
|
|
|
6997
|
+
declare interface WorldpayPaymentInitializeOptions {
|
|
6998
|
+
/**
|
|
6999
|
+
* A callback that gets called when the iframe is ready to be added to the
|
|
7000
|
+
* current page. It is responsible for determining where the iframe should
|
|
7001
|
+
* be inserted in the DOM.
|
|
7002
|
+
*
|
|
7003
|
+
* @param iframe - The iframe element containing the payment web page
|
|
7004
|
+
* provided by the strategy.
|
|
7005
|
+
* @param cancel - A function, when called, will cancel the payment
|
|
7006
|
+
* process and remove the iframe.
|
|
7007
|
+
*/
|
|
7008
|
+
onLoad(iframe: HTMLIFrameElement, cancel: () => void): void;
|
|
7009
|
+
}
|
|
7010
|
+
|
|
6992
7011
|
declare interface ZipCodeElementOptions {
|
|
6993
7012
|
containerId: string;
|
|
6994
7013
|
}
|