@tonder.io/ionic-full-sdk 0.0.62 → 1.0.0-beta.develop.fcbbea8
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/README.md +750 -781
- package/dist/classes/3dsHandler.d.ts +39 -0
- package/dist/classes/checkout.d.ts +31 -0
- package/dist/classes/inlineCheckout.d.ts +2 -2
- package/dist/helpers/skyflow.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/types/commons.d.ts +57 -1
- package/package.json +2 -2
- package/src/classes/inlineCheckout.ts +10 -6
- package/src/helpers/skyflow.ts +273 -252
- package/src/types/commons.ts +56 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonder.io/ionic-full-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "1.0.0-beta.develop.fcbbea8",
|
|
4
4
|
"description": "Tonder ionic full SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@tonder.io/ionic-lite-sdk": "0.0
|
|
13
|
+
"@tonder.io/ionic-lite-sdk": "1.0.0",
|
|
14
14
|
"accordion-js": "^3.4.0",
|
|
15
15
|
"crypto-js": "^4.1.1",
|
|
16
16
|
"lodash.get": "^4.4.2",
|
|
@@ -11,7 +11,7 @@ import {IProcessPaymentRequest} from "@tonder.io/ionic-lite-sdk/dist/types/check
|
|
|
11
11
|
import {ISaveCardInternalResponse, ISaveCardSkyflowRequest} from "@tonder.io/ionic-lite-sdk/dist/types/card";
|
|
12
12
|
import {ITonderPaymentMethod} from "@tonder.io/ionic-lite-sdk/dist/types/paymentMethod";
|
|
13
13
|
import type { SkyflowCollectFields, SkyflowCollectResponse } from "@tonder.io/ionic-lite-sdk/dist/types/cardOnFile";
|
|
14
|
-
import {IEvents, IInlineCheckoutOptions, IInlineCustomizationOptions, InCollectorContainer} from "../types/commons";
|
|
14
|
+
import {ICardStyles, IEvents, IInlineCheckoutOptions, IInlineCustomizationOptions, InCollectorContainer} from "../types/commons";
|
|
15
15
|
import {IInlineCheckout} from "../types/inlineCheckout";
|
|
16
16
|
import { buildPublicAppError } from "../shared/utils/appError";
|
|
17
17
|
import { ErrorKeyEnum } from "../shared/enums/ErrorKeyEnum";
|
|
@@ -28,7 +28,7 @@ export class InlineCheckout extends BaseInlineCheckout<IInlineCustomizationOptio
|
|
|
28
28
|
deletingCards: string[] = [];
|
|
29
29
|
renderPaymentButton: boolean
|
|
30
30
|
renderSaveCardButton?: boolean
|
|
31
|
-
customStyles:
|
|
31
|
+
customStyles: ICardStyles | undefined
|
|
32
32
|
injectInterval: ReturnType<typeof setInterval> | undefined
|
|
33
33
|
#cardsData: any[] = [];
|
|
34
34
|
abortRefreshCardsController: AbortController;
|
|
@@ -80,7 +80,8 @@ export class InlineCheckout extends BaseInlineCheckout<IInlineCustomizationOptio
|
|
|
80
80
|
|
|
81
81
|
this.renderPaymentButton = renderPaymentButton || false;
|
|
82
82
|
this.renderSaveCardButton = renderSaveCardButton;
|
|
83
|
-
|
|
83
|
+
// customization.styles takes precedence; root-level styles is deprecated
|
|
84
|
+
this.customStyles = customization?.styles ?? styles
|
|
84
85
|
this.#events = events;
|
|
85
86
|
this.abortRefreshCardsController = new AbortController();
|
|
86
87
|
this.containerId = containerId ? containerId : "tonder-checkout"
|
|
@@ -329,7 +330,8 @@ export class InlineCheckout extends BaseInlineCheckout<IInlineCustomizationOptio
|
|
|
329
330
|
this.customStyles,
|
|
330
331
|
this.collectorIds,
|
|
331
332
|
this.apiKeyTonder,
|
|
332
|
-
this.#events
|
|
333
|
+
this.#events,
|
|
334
|
+
this.mode,
|
|
333
335
|
);
|
|
334
336
|
setTimeout(() => {
|
|
335
337
|
const containerCvv = document.querySelector(`#cvvContainer${container_radio_id}`)
|
|
@@ -615,7 +617,8 @@ export class InlineCheckout extends BaseInlineCheckout<IInlineCustomizationOptio
|
|
|
615
617
|
this.customStyles,
|
|
616
618
|
this.collectorIds,
|
|
617
619
|
this.apiKeyTonder,
|
|
618
|
-
this.#events
|
|
620
|
+
this.#events,
|
|
621
|
+
this.mode,
|
|
619
622
|
);
|
|
620
623
|
|
|
621
624
|
}
|
|
@@ -651,7 +654,8 @@ export class InlineCheckout extends BaseInlineCheckout<IInlineCustomizationOptio
|
|
|
651
654
|
this.customStyles,
|
|
652
655
|
this.collectorIds,
|
|
653
656
|
this.apiKeyTonder,
|
|
654
|
-
|
|
657
|
+
this.#events,
|
|
658
|
+
this.mode,
|
|
655
659
|
);
|
|
656
660
|
|
|
657
661
|
}
|