@tonder.io/ionic-full-sdk 0.0.7 → 0.0.9

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 CHANGED
@@ -79,29 +79,30 @@ inlineCheckout.injectCheckout();
79
79
  ```
80
80
 
81
81
  ## Configuration
82
- | Property | Type | Required | Description |
83
- |-----------------|---------------|:-----------------:|-------------------------------------------------------------|
84
- | apiKey | string | X | You can take this from you Tonder Dashboard |
85
- | returnUrl | string | X | |
86
- | successUrl | string | | |
87
- | style | object | | |
88
- | containerId | string | | If require a custom checkout container id, default |
89
- | | | | value "tonder-checkout" |
90
- | collectorIds | object | | If require a custom div containers ids, default |
91
- | | | | value: |
92
- | | | | { |
93
- | | | | cardsListContainer: "cardsListContainer", |
94
- | | | | holderName: "collectCardholderName", |
95
- | | | | cardNumber: "collectCardNumber", |
96
- | | | | expirationMonth: "collectExpirationMonth", |
97
- | | | | expirationYear: "collectExpirationYear", |
98
- | | | | cvv: "collectCvv", |
99
- | | | | tonderPayButton: "tonderPayButton", |
100
- | | | | msgError: "msgError", |
101
- | | | | msgNotification: "msgNotification" |
102
- | | | | } |
103
- | callBack | function | | Callback function invoqued after the payment process |
104
- | | | | end successfully |
82
+ | Property | Type | Required | Description |
83
+ |-------------------|---------------|:-----------------:|-------------------------------------------------------------|
84
+ | apiKey | string | X | You can take this from you Tonder Dashboard |
85
+ | returnUrl | string | X | |
86
+ | successUrl | string | | |
87
+ | style | object | | |
88
+ | containerId | string | | If require a custom checkout container id, default |
89
+ | | | | value "tonder-checkout" |
90
+ | collectorIds | object | | If require a custom div containers ids, default |
91
+ | | | | value: |
92
+ | | | | { |
93
+ | | | | cardsListContainer: "cardsListContainer", |
94
+ | | | | holderName: "collectCardholderName", |
95
+ | | | | cardNumber: "collectCardNumber", |
96
+ | | | | expirationMonth: "collectExpirationMonth", |
97
+ | | | | expirationYear: "collectExpirationYear", |
98
+ | | | | cvv: "collectCvv", |
99
+ | | | | tonderPayButton: "tonderPayButton", |
100
+ | | | | msgError: "msgError", |
101
+ | | | | msgNotification: "msgNotification" |
102
+ | | | | } |
103
+ | callBack | function | | Callback function invoqued after the payment process |
104
+ | | | | end successfully |
105
+ | isOpenpaySandbox | boolean | | Define if openpay work on sandbox, default value true |
105
106
 
106
107
  ## Theming
107
108
 
@@ -14,6 +14,7 @@ export type InlineCheckoutConstructor = {
14
14
  styles?: any;
15
15
  containerId?: string;
16
16
  collectorIds?: CollectorIds;
17
+ isOpenPaySandbox?: boolean;
17
18
  };
18
19
  export declare class InlineCheckout {
19
20
  #private;
@@ -52,7 +53,8 @@ export declare class InlineCheckout {
52
53
  clientCards: Card[];
53
54
  radioChecked: string | null;
54
55
  fetchingPayment: boolean;
55
- constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds }: InlineCheckoutConstructor);
56
+ isOpenPaySandbox: boolean;
57
+ constructor({ apiKey, returnUrl, successUrl, renderPaymentButton, callBack, styles, containerId, collectorIds, isOpenPaySandbox }: InlineCheckoutConstructor);
56
58
  payment(data: any): Promise<unknown>;
57
59
  setCartItems(items: OrderItem[]): void;
58
60
  setCustomerEmail(email: string): void;