@tonder.io/ionic-full-sdk 0.0.8 → 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 +24 -23
- package/dist/classes/inlineCheckout.d.ts +3 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/classes/inlineCheckout.ts +11 -5
package/README.md
CHANGED
|
@@ -79,29 +79,30 @@ inlineCheckout.injectCheckout();
|
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## Configuration
|
|
82
|
-
| Property
|
|
83
|
-
|
|
84
|
-
| apiKey
|
|
85
|
-
| returnUrl
|
|
86
|
-
| successUrl
|
|
87
|
-
| style
|
|
88
|
-
| containerId
|
|
89
|
-
|
|
|
90
|
-
| collectorIds
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
| callBack
|
|
104
|
-
|
|
|
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
|
-
|
|
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;
|