@bigcommerce/checkout-sdk 1.216.0 → 1.217.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 +0 -43
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +2 -2
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/interfaces/squarepaymentinitializeoptions.md +0 -48
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -5915,45 +5915,6 @@ declare interface SquareFormElement {
|
|
|
5915
5915
|
* },
|
|
5916
5916
|
* });
|
|
5917
5917
|
* ```
|
|
5918
|
-
*
|
|
5919
|
-
* Additional options can be passed in to enable Masterpass (if configured for
|
|
5920
|
-
* the account) and customize the fields.
|
|
5921
|
-
*
|
|
5922
|
-
* ```html
|
|
5923
|
-
* <!-- This container is where Masterpass button will be inserted -->
|
|
5924
|
-
* <div id="masterpass"></div>
|
|
5925
|
-
* ```
|
|
5926
|
-
*
|
|
5927
|
-
* ```js
|
|
5928
|
-
* service.initializePayment({
|
|
5929
|
-
* methodId: 'squarev2',
|
|
5930
|
-
* square: {
|
|
5931
|
-
* cardNumber: {
|
|
5932
|
-
* elementId: 'card-number',
|
|
5933
|
-
* },
|
|
5934
|
-
* cvv: {
|
|
5935
|
-
* elementId: 'card-code',
|
|
5936
|
-
* },
|
|
5937
|
-
* expirationDate: {
|
|
5938
|
-
* elementId: 'card-expiry',
|
|
5939
|
-
* },
|
|
5940
|
-
* postalCode: {
|
|
5941
|
-
* elementId: 'card-code',
|
|
5942
|
-
* },
|
|
5943
|
-
* inputClass: 'form-input',
|
|
5944
|
-
* inputStyles: [
|
|
5945
|
-
* {
|
|
5946
|
-
* color: '#333',
|
|
5947
|
-
* fontSize: '13px',
|
|
5948
|
-
* lineHeight: '20px',
|
|
5949
|
-
* },
|
|
5950
|
-
* ],
|
|
5951
|
-
* masterpass: {
|
|
5952
|
-
* elementId: 'masterpass',
|
|
5953
|
-
* },
|
|
5954
|
-
* },
|
|
5955
|
-
* });
|
|
5956
|
-
* ```
|
|
5957
5918
|
*/
|
|
5958
5919
|
declare interface SquarePaymentInitializeOptions {
|
|
5959
5920
|
/**
|
|
@@ -5982,10 +5943,6 @@ declare interface SquarePaymentInitializeOptions {
|
|
|
5982
5943
|
inputStyles?: Array<{
|
|
5983
5944
|
[key: string]: string;
|
|
5984
5945
|
}>;
|
|
5985
|
-
/**
|
|
5986
|
-
* Initialize Masterpass placeholder ID
|
|
5987
|
-
*/
|
|
5988
|
-
masterpass?: SquareFormElement;
|
|
5989
5946
|
/**
|
|
5990
5947
|
* A callback that gets called when the customer selects a payment option.
|
|
5991
5948
|
*/
|