@tonder.io/ionic-lite-sdk 0.0.35-beta.25 → 0.0.35-beta.26

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.
Files changed (2) hide show
  1. package/README.md +20 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@ Tonder SDK helps to integrate the services Tonder offers in your own mobile app
8
8
  1. [Installation](#installation)
9
9
  2. [Usage](#usage)
10
10
  3. [Configuration Options](#configuration-options)
11
- 4. [Styling InlineCheckout](#styling-inlinecheckout)
11
+ 4. [Mobile Settings](#mobile-settings)
12
12
  5. [Payment Data Structure](#payment-data-structure)
13
13
  6. [Field Validation Functions](#field-validation-functions)
14
14
  7. [API Reference](#api-reference)
@@ -97,6 +97,23 @@ const paymentResponse = await liteCheckout.payment(paymentData);
97
97
  | returnUrl | string | URL where the checkout form is mounted (used for 3DS) |
98
98
  | callBack | function | Callback function to be invoked after the payment process ends successfully. |
99
99
 
100
+ ## Mobile settings
101
+
102
+ <font size="3">If you are deploying to Android, edit your AndroidManifest.xml file to add the Internet permission.</font>
103
+
104
+ ```xml
105
+ <!-- Required to fetch data from the internet. -->
106
+ <uses-permission android:name="android.permission.INTERNET" />
107
+ ```
108
+
109
+ <font size="3">Likewise, if you are deploying to macOS, edit your macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements files to include the network client entitlement.</font>
110
+
111
+ ```xml
112
+ <!-- Required to fetch data from the internet. -->
113
+ <key>com.apple.security.network.client</key>
114
+ <true>
115
+ ```
116
+
100
117
  ## Payment Data Structure
101
118
 
102
119
  When calling the `payment` method, use the following data structure:
@@ -235,6 +252,7 @@ For Angular, we recommend using a service to manage the Tonder instance:
235
252
  // tonder.service.ts
236
253
  import { Injectable } from "@angular/core";
237
254
  import { LiteCheckout } from "@tonder.io/ionic-lite-sdk";
255
+ import {ILiteCheckout} from "@tonder.io/ionic-lite-sdk/dist/types/liteInlineCheckout";
238
256
 
239
257
  @Injectable({
240
258
  providedIn: "root",
@@ -258,7 +276,7 @@ export class TonderService {
258
276
  await this.liteCheckout.injectCheckout();
259
277
  }
260
278
 
261
- verify3dsTransaction(): Promise<ITransaction | void> {
279
+ verify3dsTransaction(): Promise<ITransaction | IStartCheckoutResponse | void> {
262
280
  return this.liteCheckout.verify3dsTransaction();
263
281
  }
264
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.35-beta.25",
3
+ "version": "0.0.35-beta.26",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",