@tonder.io/ionic-full-sdk 0.0.25-beta → 0.0.26-beta

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/cypress.config.js CHANGED
@@ -1,9 +1,9 @@
1
- const { defineConfig } = require("cypress");
2
-
3
- module.exports = defineConfig({
4
- e2e: {
5
- setupNodeEvents(on, config) {
6
- // implement node event listeners here
7
- },
8
- },
9
- });
1
+ const { defineConfig } = require("cypress");
2
+
3
+ module.exports = defineConfig({
4
+ e2e: {
5
+ setupNodeEvents(on, config) {
6
+ // implement node event listeners here
7
+ },
8
+ },
9
+ });
@@ -10,11 +10,13 @@ export type InlineCheckoutConstructor = {
10
10
  apiKey: string;
11
11
  successUrl?: string;
12
12
  renderPaymentButton: boolean;
13
+ renderSaveCardButton: boolean;
13
14
  callBack?: (params: any) => void;
14
15
  styles?: any;
15
16
  containerId?: string;
16
17
  collectorIds?: CollectorIds;
17
18
  isOpenPaySandbox?: boolean;
19
+ isEnrollmentCard?: boolean;
18
20
  };
19
21
  export declare class InlineCheckout {
20
22
  #private;
@@ -27,6 +29,7 @@ export declare class InlineCheckout {
27
29
  returnUrl?: string;
28
30
  successUrl?: string;
29
31
  renderPaymentButton: boolean;
32
+ renderSaveCardButton: boolean;
30
33
  callBack: (params: any) => void;
31
34
  customStyles: any;
32
35
  abortController: AbortController;
@@ -57,7 +60,8 @@ export declare class InlineCheckout {
57
60
  metadata: {};
58
61
  card: {};
59
62
  currency: string;
60
- constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox }: InlineCheckoutConstructor);
63
+ isEnrollmentCard: boolean;
64
+ constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox, isEnrollmentCard, renderSaveCardButton, }: InlineCheckoutConstructor);
61
65
  payment(data: any): Promise<unknown>;
62
66
  setCartItems(items: OrderItem[]): void;
63
67
  setCustomerEmail(email: string): void;
@@ -68,4 +72,5 @@ export declare class InlineCheckout {
68
72
  loadCardsList(cards: Card[], token: string): void;
69
73
  getCustomer(email: string): Promise<ErrorResponse | CustomerRegisterResponse>;
70
74
  removeCheckout(): void;
75
+ saveCard(): Promise<unknown>;
71
76
  }
@@ -5,6 +5,7 @@ export type CollectorIds = {
5
5
  expirationYear: string;
6
6
  cvv: string;
7
7
  tonderPayButton: string;
8
+ tonderSaveCardButton: string;
8
9
  msgError: string;
9
10
  msgNotification: string;
10
11
  cardsListContainer: string;
@@ -17,5 +18,5 @@ export type Card = {
17
18
  expiration_year: string;
18
19
  skyflow_id: string;
19
20
  };
20
- export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds) => string;
21
+ export declare const cardTemplate: (external: boolean, collectorIds: CollectorIds, isEnrollmentCard?: boolean) => string;
21
22
  export declare const cardItemsTemplate: (external: boolean, cards: Card[]) => string;