@tonder.io/ionic-full-sdk 0.0.1 → 0.0.3
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/dist/classes/inlineCheckout.d.ts +1 -0
- package/dist/helpers/template.d.ts +2 -0
- package/dist/helpers/utils.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/classes/inlineCheckout.ts +58 -16
- package/src/helpers/template.ts +93 -18
- package/src/helpers/utils.ts +26 -11
|
@@ -52,6 +52,7 @@ export declare class InlineCheckout {
|
|
|
52
52
|
platforms?: string[];
|
|
53
53
|
liteCheckout: LiteCheckout;
|
|
54
54
|
clientCards: Card[];
|
|
55
|
+
radioChecked: string | null;
|
|
55
56
|
constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, platforms }: InlineCheckoutConstructor);
|
|
56
57
|
payment(data: any): Promise<unknown>;
|
|
57
58
|
setCartItems(items: OrderItem[]): void;
|
|
@@ -6,6 +6,7 @@ export type CollectorIds = {
|
|
|
6
6
|
cvv: string;
|
|
7
7
|
tonderPayButton: string;
|
|
8
8
|
msgError: string;
|
|
9
|
+
msgNotification: string;
|
|
9
10
|
cardsListContainer: string;
|
|
10
11
|
};
|
|
11
12
|
export type Card = {
|
|
@@ -13,6 +14,7 @@ export type Card = {
|
|
|
13
14
|
card_number: string;
|
|
14
15
|
expiration_month: string;
|
|
15
16
|
expiration_year: string;
|
|
17
|
+
skyflow_id: string;
|
|
16
18
|
};
|
|
17
19
|
export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds) => string;
|
|
18
20
|
export declare const cardItemsTemplate: (external: boolean, cards: Card[]) => string;
|
package/dist/helpers/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare function addScripts(): Promise<void>;
|
|
2
2
|
export declare function toCurrency(value: string | number): string | false;
|
|
3
3
|
export declare function showError(message: string, containerId: string, payButtonId: string): void;
|
|
4
|
+
export declare function showMessage(message: string, containerId: string): void;
|
|
4
5
|
export declare const createObserver: ({ target }: {
|
|
5
6
|
target: string;
|
|
6
7
|
}) => Promise<any>;
|