omnipay-reactnative-sdk 1.2.3-beta.8 → 1.2.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.
Files changed (58) hide show
  1. package/README.md +42 -102
  2. package/android/build.gradle +4 -15
  3. package/android/src/main/java/com/omniretail/omnipay/OmnipayActivityPackage.java +0 -5
  4. package/lib/commonjs/components/OmnipayProvider.js +91 -18
  5. package/lib/commonjs/components/OmnipayProvider.js.map +1 -1
  6. package/lib/module/components/OmnipayProvider.js +92 -19
  7. package/lib/module/components/OmnipayProvider.js.map +1 -1
  8. package/lib/module/components/OmnipayView.js.map +1 -1
  9. package/lib/module/components/views/BvnVerification.js.map +1 -1
  10. package/lib/module/components/views/PaylaterAgreement.js.map +1 -1
  11. package/lib/module/components/views/Registration.js.map +1 -1
  12. package/lib/typescript/components/OmnipayProvider.d.ts +3 -2
  13. package/lib/typescript/components/OmnipayProvider.d.ts.map +1 -1
  14. package/lib/typescript/hooks/useOmnipay.d.ts +2 -1
  15. package/lib/typescript/hooks/useOmnipay.d.ts.map +1 -1
  16. package/package.json +12 -29
  17. package/src/components/OmnipayProvider.tsx +133 -21
  18. package/src/components/OmnipayView.tsx +1 -1
  19. package/src/components/views/BvnVerification.tsx +1 -1
  20. package/src/components/views/PaylaterAgreement.tsx +1 -1
  21. package/src/components/views/Registration.tsx +1 -1
  22. package/src/hooks/useOmnipay.tsx +1 -1
  23. package/android/src/main/java/com/omniretail/omnipay/FaceVerificationFrameProcessor.kt +0 -111
  24. package/ios/FaceVerificationFrameProcessor.swift +0 -138
  25. package/ios/FaceVerificationFrameProcessorPlugin.m +0 -10
  26. package/ios/OmnipayReactnativeSdk.m +0 -5
  27. package/ios/OmnipayReactnativeSdk.swift +0 -10
  28. package/ios/omnipay-reactnative-sdk-Bridging-Header.h +0 -8
  29. package/ios/omnipay_reactnative_sdk.h +0 -6
  30. package/lib/commonjs/components/Button.js +0 -68
  31. package/lib/commonjs/components/Button.js.map +0 -1
  32. package/lib/commonjs/components/biometrics/FaceVerification.js +0 -380
  33. package/lib/commonjs/components/biometrics/FaceVerification.js.map +0 -1
  34. package/lib/commonjs/components/biometrics/useFaceVerification.js +0 -85
  35. package/lib/commonjs/components/biometrics/useFaceVerification.js.map +0 -1
  36. package/lib/commonjs/components/biometrics/useFaceVerificationFlow.js +0 -157
  37. package/lib/commonjs/components/biometrics/useFaceVerificationFlow.js.map +0 -1
  38. package/lib/module/components/Button.js +0 -61
  39. package/lib/module/components/Button.js.map +0 -1
  40. package/lib/module/components/biometrics/FaceVerification.js +0 -372
  41. package/lib/module/components/biometrics/FaceVerification.js.map +0 -1
  42. package/lib/module/components/biometrics/useFaceVerification.js +0 -78
  43. package/lib/module/components/biometrics/useFaceVerification.js.map +0 -1
  44. package/lib/module/components/biometrics/useFaceVerificationFlow.js +0 -150
  45. package/lib/module/components/biometrics/useFaceVerificationFlow.js.map +0 -1
  46. package/lib/typescript/components/Button.d.ts +0 -17
  47. package/lib/typescript/components/Button.d.ts.map +0 -1
  48. package/lib/typescript/components/biometrics/FaceVerification.d.ts +0 -9
  49. package/lib/typescript/components/biometrics/FaceVerification.d.ts.map +0 -1
  50. package/lib/typescript/components/biometrics/useFaceVerification.d.ts +0 -38
  51. package/lib/typescript/components/biometrics/useFaceVerification.d.ts.map +0 -1
  52. package/lib/typescript/components/biometrics/useFaceVerificationFlow.d.ts +0 -29
  53. package/lib/typescript/components/biometrics/useFaceVerificationFlow.d.ts.map +0 -1
  54. package/omnipay_reactnative_sdk.podspec +0 -50
  55. package/src/components/Button.tsx +0 -86
  56. package/src/components/biometrics/FaceVerification.tsx +0 -429
  57. package/src/components/biometrics/useFaceVerification.ts +0 -120
  58. package/src/components/biometrics/useFaceVerificationFlow.ts +0 -224
package/README.md CHANGED
@@ -14,41 +14,11 @@ yarn add omnipay-reactnative-sdk
14
14
  yarn add react-native-select-contact react-native-webview react-native-share
15
15
  ```
16
16
 
17
- The SDK also includes **built-in face verification** capabilities with **zero consumer setup required** - all native dependencies auto-link automatically.
18
-
19
- **Important:** After installing dependencies:
20
-
21
- ```sh
22
- # Install dependencies
23
- yarn install
24
-
25
- # Auto-link native dependencies and install pods (iOS)
26
- cd ios && pod install && cd ..
27
- ```
28
-
29
- **That's it!** Face verification works automatically when needed by the SDK.
30
-
31
- ### Android Permissions
32
-
33
17
  Make sure your manifest files includes permission to read contacts
34
18
 
35
19
  ```sh
36
20
  <uses-permission android:name="android.permission.READ_CONTACTS" />
37
- ```
38
-
39
- For SDK face verification features, also add camera permission:
40
-
41
- ```sh
42
- <uses-permission android:name="android.permission.CAMERA" />
43
- ```
44
21
 
45
- ### iOS Permissions
46
-
47
- For SDK face verification features on iOS, add camera permission to your `Info.plist`:
48
-
49
- ```xml
50
- <key>NSCameraUsageDescription</key>
51
- <string>This app needs access to camera for face verification</string>
52
22
  ```
53
23
 
54
24
  Also add this for Android 11+ support below the application tag in your AndroidManifest.xml file
@@ -129,79 +99,48 @@ initiateWallet({
129
99
  });
130
100
  ```
131
101
 
132
- ## Face Verification
133
-
134
- The SDK includes built-in **real-time face verification** capabilities for enhanced security during certain operations. This feature is **automatically triggered when needed** and requires **no additional implementation** from your side.
135
-
136
- ### How It Works (Internal SDK Feature)
137
-
138
- The face verification system uses native ML libraries to perform real-time analysis:
139
-
140
- 1. **Face Detection**: Automatically detects faces in the camera frame
141
- 2. **Verification Steps**: Guides users through verification actions:
142
- - **Position Face**: Center your face in the frame
143
- - **Smile**: Show a genuine smile
144
- - **Blink**: Blink both eyes
145
- - **Turn Left**: Slowly turn head to the left
146
- - **Turn Right**: Slowly turn head to the right
147
- 3. **Real-time Feedback**: Provides instant visual feedback and progress indicators
148
- 4. **Security**: Uses multiple biometric markers to prevent spoofing
149
-
150
- ### Technical Implementation
151
-
152
- - **iOS**: Uses built-in Vision Framework for face landmark detection
153
- - **Android**: Uses Google MLKit Face Detection API
154
- - **Performance**: Runs at 30-60 FPS with native frame processors
155
- - **Privacy**: All processing happens on-device, no data is sent to servers
156
- - **Dependencies**: All required libraries are included automatically
157
-
158
- **Note:** Face verification requires camera permissions, which the SDK handles automatically.
159
-
160
102
  ### Properties
161
103
 
162
104
  #### OmnipayProvider Props
163
-
164
- | Name | Type | Description |
165
- | --------- | ------ | ------------------------------------ |
166
- | color | String | color of primary buttons and links |
167
- | env | String | dev or prod |
168
- | publicKey | String | public key of the company on omnipay |
105
+ | Name | Type | Description |
106
+ | --------------- | -------- | -------------------------------------------------------- |
107
+ | color | String | color of primary buttons and links |
108
+ | env | String | dev or prod |
109
+ | publicKey | String | public key of the company on omnipay |
169
110
 
170
111
  #### initiateBills Props
171
-
172
- | Name | Type | Description |
173
- | ----------- | -------- | ---------------------------------------------- |
174
- | phoneNumber | String | phone number of the customer |
175
- | onClose | Function | this is used to notify you when the sdk closes |
112
+ | Name | Type | Description |
113
+ | --------------- | -------- | -------------------------------------------------------- |
114
+ | phoneNumber | String | phone number of the customer |
115
+ | onClose | Function | this is used to notify you when the sdk closes |
176
116
 
177
117
  #### initiateWallet Props
118
+ | Name | Type | Description |
119
+ | ----------------------- | -------- | ---------------------------------------------------------------- |
120
+ | phoneNumber | String | phone number of the customer |
121
+ | customerRef | String | unique reference for the customer |
122
+ | userRef | String | unique reference for the user |
123
+ | onClose | Function | this is used to notify you when the sdk closes |
124
+ | usesPaylater | Boolean | whether to show paylater tab in wallet view |
125
+ | usesPromo | Boolean | whether to show promo tab in wallet view |
126
+ | usesAirtimeData | Boolean | whether to show airtime and data shortcut in wallet view |
127
+ | usesTransfer | Boolean | whether to show transfer shortcut in wallet view |
128
+ | usesBills | Boolean | whether to show bills shortcut in wallet view |
129
+ | usesPos | Boolean | whether to show pos shortcut in wallet view |
130
+ | promoBalanceOffset | Number | offset for promo balance display |
131
+ | deviceId | String | unique identifier for the device |
132
+ | deviceName | String | name of the device |
133
+ | hideWalletTransfer | Boolean | whether to hide wallet transfer functionality |
134
+ | isBvnValidationRequired | Boolean | whether BVN validation is required |
135
+ | walletTab | String | initial wallet tab to display ('Paylater', 'Account', 'Omoni') |
136
+ | sessionId | String | unique session identifier |
137
+ | kycStatus | String | KYC status of the user ('verified', 'unverified') |
138
+ | launchPage | String | page to launch in the wallet |
178
139
 
179
- | Name | Type | Description |
180
- | ----------------------- | -------- | -------------------------------------------------------------- |
181
- | phoneNumber | String | phone number of the customer |
182
- | customerRef | String | unique reference for the customer |
183
- | userRef | String | unique reference for the user |
184
- | onClose | Function | this is used to notify you when the sdk closes |
185
- | usesPaylater | Boolean | whether to show paylater tab in wallet view |
186
- | usesPromo | Boolean | whether to show promo tab in wallet view |
187
- | usesAirtimeData | Boolean | whether to show airtime and data shortcut in wallet view |
188
- | usesTransfer | Boolean | whether to show transfer shortcut in wallet view |
189
- | usesBills | Boolean | whether to show bills shortcut in wallet view |
190
- | usesPos | Boolean | whether to show pos shortcut in wallet view |
191
- | promoBalanceOffset | Number | offset for promo balance display |
192
- | deviceId | String | unique identifier for the device |
193
- | deviceName | String | name of the device |
194
- | hideWalletTransfer | Boolean | whether to hide wallet transfer functionality |
195
- | isBvnValidationRequired | Boolean | whether BVN validation is required |
196
- | walletTab | String | initial wallet tab to display ('Paylater', 'Account', 'Omoni') |
197
- | sessionId | String | unique session identifier |
198
- | kycStatus | String | KYC status of the user ('verified', 'unverified') |
199
- | launchPage | String | page to launch in the wallet |
200
140
 
201
141
  ## Registration Sdk
202
-
203
142
  ```js
204
- import { Omnipay } from 'omnipay-reactnative-sdk';
143
+ import { Omnipay } from "omnipay-reactnative-sdk";
205
144
 
206
145
  //render it anywhere on your page where you want to display the registration sdk
207
146
  <Omnipay.Registration
@@ -211,9 +150,9 @@ import { Omnipay } from 'omnipay-reactnative-sdk';
211
150
  phoneNumber="09031234571"
212
151
  onRegistrationSuccessful={({ customerRef, walletId }) => {
213
152
  /**
214
- * the customer ref and walletid can be saved
153
+ * the customer ref and walletid can be saved
215
154
  * to your database at this point
216
- *
155
+ *
217
156
  * we will also be sending a webhook notification
218
157
  * so, you can either save at this point or via the webhook
219
158
  */
@@ -224,16 +163,17 @@ import { Omnipay } from 'omnipay-reactnative-sdk';
224
163
  * the user is done with registration.
225
164
  * you can navigate them else where at this point
226
165
  */
166
+
227
167
  }}
228
- />;
168
+ />
229
169
  ```
230
170
 
231
171
  ### Properties
232
172
 
233
- | Name | Type | Description |
234
- | ----------- | ------ | ------------------------------------ |
235
- | color | String | color of primary buttons and links |
236
- | env | String | dev or prod |
237
- | phoneNumber | String | phone number of the customer |
238
- | publicKey | String | public key of the company on omnipay |
239
- | view | String | the view to render on the sdk |
173
+ | Name | Type | Description |
174
+ | --------------- | -------- | -------------------------------------------------------- |
175
+ | color | String | color of primary buttons and links |
176
+ | env | String | dev or prod |
177
+ | phoneNumber | String | phone number of the customer |
178
+ | publicKey | String | public key of the company on omnipay |
179
+ | view | String | the view to render on the sdk |
@@ -7,7 +7,7 @@ buildscript {
7
7
  mavenCentral()
8
8
  google()
9
9
  }
10
- def buildGradleVersion = ext.has('buildGradlePluginVersion') ? ext.get('buildGradlePluginVersion') : '8.8.0'
10
+ def buildGradleVersion = ext.has('buildGradlePluginVersion') ? ext.get('buildGradlePluginVersion') : '4.2.0'
11
11
 
12
12
  dependencies {
13
13
  classpath "com.android.tools.build:gradle:$buildGradleVersion"
@@ -22,19 +22,14 @@ def safeExtGet(prop, fallback) {
22
22
  }
23
23
 
24
24
  android {
25
- compileSdkVersion safeExtGet('compileSdkVersion', 34)
25
+ compileSdkVersion safeExtGet('compileSdkVersion', 31)
26
26
 
27
27
  defaultConfig {
28
- minSdkVersion safeExtGet('minSdkVersion', 24)
29
- targetSdkVersion safeExtGet('targetSdkVersion', 34)
28
+ minSdkVersion safeExtGet('minSdkVersion', 21)
29
+ targetSdkVersion safeExtGet('targetSdkVersion', 31)
30
30
  versionCode 1
31
31
  versionName "1.1"
32
32
  }
33
-
34
- compileOptions {
35
- sourceCompatibility JavaVersion.VERSION_11
36
- targetCompatibility JavaVersion.VERSION_11
37
- }
38
33
  }
39
34
 
40
35
  repositories {
@@ -48,10 +43,4 @@ repositories {
48
43
 
49
44
  dependencies {
50
45
  implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
51
-
52
- // MLKit Face Detection for Android
53
- implementation 'com.google.mlkit:face-detection:16.1.5'
54
-
55
- // Vision Camera for frame processor plugins
56
- implementation project(':react-native-vision-camera')
57
46
  }
@@ -9,14 +9,9 @@ import com.facebook.react.bridge.JavaScriptModule;
9
9
  import com.facebook.react.bridge.NativeModule;
10
10
  import com.facebook.react.bridge.ReactApplicationContext;
11
11
  import com.facebook.react.uimanager.ViewManager;
12
- import com.mrousavy.camera.frameprocessor.FrameProcessorPluginRegistry;
13
12
 
14
13
  public class OmnipayActivityPackage implements ReactPackage {
15
14
 
16
- static {
17
- FrameProcessorPluginRegistry.addFrameProcessorPlugin("detectFaces", FaceVerificationFrameProcessor::new);
18
- }
19
-
20
15
  @Override
21
16
  public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
22
17
  List<NativeModule> modules = new ArrayList<>();
@@ -9,10 +9,10 @@ var _reactNative = require("react-native");
9
9
  var _reactNativeWebview = _interopRequireDefault(require("react-native-webview"));
10
10
  var _functions = require("../functions");
11
11
  var _reactNativeShare = _interopRequireDefault(require("react-native-share"));
12
- var _FaceVerification = _interopRequireDefault(require("./biometrics/FaceVerification"));
13
- var _Button = _interopRequireDefault(require("./Button"));
12
+ var _asyncStorage = _interopRequireDefault(require("@react-native-async-storage/async-storage"));
14
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ const OmnipayActivity = _reactNative.NativeModules.OmnipayActivity || {};
16
16
  let defaultValue = {
17
17
  initiateBills: () => null,
18
18
  initiateWallet: () => null
@@ -35,15 +35,70 @@ const OmnipayProvider = ({
35
35
  const isValidEnv = ['prod', 'dev'].includes(env);
36
36
  const isValidColor = color.length > 2;
37
37
  const onCloseRef = (0, _react.useRef)(undefined);
38
- const [showFaceVerification, setShowFaceVerification] = (0, _react.useState)(false);
38
+ const [canUsePos, setCanUsePos] = (0, _react.useState)(false);
39
39
  (0, _react.useEffect)(() => {
40
- setTimeout(() => {
41
- setShowFaceVerification(true);
42
- }, 1000);
40
+ checkPaymentApp();
43
41
  }, []);
44
42
  (0, _react.useEffect)(() => {
45
43
  visibilityRef.current = isVisible;
46
44
  }, [isVisible]);
45
+ (0, _react.useEffect)(() => {
46
+ if (canUsePos) {
47
+ const eventEmitter = new _reactNative.NativeEventEmitter(OmnipayActivity);
48
+ eventEmitter.addListener('OmnipayEvent', event => {
49
+ console.log('native event', event);
50
+ });
51
+ }
52
+ }, [canUsePos]);
53
+ async function checkPaymentApp() {
54
+ try {
55
+ if (_reactNative.Platform.OS === 'android') {
56
+ const isInstalled = await OmnipayActivity.isPackageInstalled('com.horizonpay.sample');
57
+ if (isInstalled) {
58
+ setCanUsePos(true);
59
+ }
60
+ }
61
+ } catch (error) {}
62
+ }
63
+ async function startPosTransaction({
64
+ amount,
65
+ purchaseType,
66
+ print,
67
+ rrn,
68
+ stan,
69
+ terminalId
70
+ }) {
71
+ try {
72
+ if (_reactNative.Platform.OS === 'android') {
73
+ let result = '';
74
+ if (purchaseType === 'KEY EXCHANGE') {
75
+ const isKeyExchanged = await _asyncStorage.default.getItem('isKeyExchanged');
76
+ if (!isKeyExchanged) {
77
+ result = await OmnipayActivity.initiateHorizonTransaction(amount, purchaseType, color, print, rrn, stan, terminalId);
78
+ if (terminalId && result && result.toLowerCase().includes('-message-success')) {
79
+ await _asyncStorage.default.setItem('isKeyExchanged', terminalId);
80
+ }
81
+ postMessage({
82
+ dataKey: 'onPosKeyExchanged',
83
+ dataValue: result
84
+ });
85
+ }
86
+ } else {
87
+ result = await OmnipayActivity.initiateHorizonTransaction(amount, purchaseType, color, print, rrn, stan, terminalId);
88
+ postMessage({
89
+ dataKey: 'onPosTransactionSuccess',
90
+ dataValue: result
91
+ });
92
+ }
93
+ }
94
+ } catch (error) {
95
+ console.log(error);
96
+ postMessage({
97
+ dataKey: 'onPosTransactionFailure',
98
+ dataValue: ''
99
+ });
100
+ }
101
+ }
47
102
  function getWebviewStyle() {
48
103
  if (!showWebview) {
49
104
  return {
@@ -106,6 +161,9 @@ const OmnipayProvider = ({
106
161
  if (dataKey === 'shareReceipt') {
107
162
  shareReceipt(dataValue);
108
163
  }
164
+ if (dataKey === 'startPosTransaction') {
165
+ startPosTransaction(JSON.parse(dataValue));
166
+ }
109
167
  }
110
168
  } catch (error) {}
111
169
  }
@@ -155,7 +213,8 @@ const OmnipayProvider = ({
155
213
  walletTab = 'Account',
156
214
  sessionId = '',
157
215
  kycStatus,
158
- launchPage = 'wallet'
216
+ launchPage = 'wallet',
217
+ promoName = ''
159
218
  }) => {
160
219
  //prevent opening if it's already open
161
220
  if (visibilityRef.current) {
@@ -166,7 +225,7 @@ const OmnipayProvider = ({
166
225
  const isValidUserRef = !!userRef && !!userRef.trim();
167
226
  const usesNativeShare = true;
168
227
  if (isPhoneNumberValid || isValidCustomerRef || isValidUserRef) {
169
- const webUrl = `${webHost}?theme=${color}&view=wallet&publicKey=${publicKey}&phoneNumber=${phoneNumber}&usesPaylater=${usesPaylater}&usesPromo=${usesPromo}&usesAirtimeData=${usesAirtimeData}&usesTransfer=${usesTransfer}&usesBills=${usesBills}&usesPos=${usesPos}&customerRef=${customerRef}&userRef=${userRef}&promoBalanceOffset=${promoBalanceOffset}&deviceId=${deviceId}&deviceName=${deviceName}&hideWalletTransfer=${hideWalletTransfer}&bvnRequired=${isBvnValidationRequired}&usesNativeShare=${usesNativeShare}&walletTab=${walletTab}&sessionId=${sessionId}&kycStatus=${kycStatus || ''}&launchPage=${launchPage}`;
228
+ const webUrl = `${webHost}?theme=${color}&view=wallet&publicKey=${publicKey}&phoneNumber=${phoneNumber}&usesPaylater=${usesPaylater}&usesPromo=${usesPromo}&usesAirtimeData=${usesAirtimeData}&usesTransfer=${usesTransfer}&usesBills=${usesBills}&usesPos=${usesPos}&customerRef=${customerRef}&userRef=${userRef}&promoBalanceOffset=${promoBalanceOffset}&deviceId=${deviceId}&deviceName=${deviceName}&hideWalletTransfer=${hideWalletTransfer}&bvnRequired=${isBvnValidationRequired}&usesNativeShare=${usesNativeShare}&isPosEnabled=${canUsePos}&walletTab=${walletTab}&sessionId=${sessionId}&kycStatus=${kycStatus || ''}&launchPage=${launchPage}&promoName=${promoName}`;
170
229
  setWebviewUrl(webUrl);
171
230
  setIsVisible(true);
172
231
  onCloseRef.current = onClose;
@@ -228,6 +287,7 @@ const OmnipayProvider = ({
228
287
  },
229
288
  domStorageEnabled: true,
230
289
  originWhitelist: ['*'],
290
+ allowsInlineMediaPlayback: true,
231
291
  onLoadEnd: () => setWebviewStatus('success'),
232
292
  renderError: () => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
233
293
  style: _reactNative.StyleSheet.absoluteFillObject
@@ -235,22 +295,22 @@ const OmnipayProvider = ({
235
295
  style: styles.errorContainer
236
296
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
237
297
  style: styles.errorSubtitle
238
- }, "Unable to open your wallet. Please try again"), /*#__PURE__*/_react.default.createElement(_Button.default, {
239
- title: "Retry",
298
+ }, "Unable to open your wallet. Please try again"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
299
+ activeOpacity: 0.8,
240
300
  onPress: reloadWebview,
241
- backgroundColor: color,
242
- borderColor: color
243
- })))
301
+ style: [styles.button, {
302
+ backgroundColor: color,
303
+ borderColor: color
304
+ }]
305
+ }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
306
+ style: styles.buttonText
307
+ }, "Retry")))))
244
308
  })), webviewStatus === 'loading' && showWebview && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableWithoutFeedback, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
245
309
  style: styles.webviewLoader
246
310
  }, /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
247
311
  size: "large",
248
312
  color: color
249
- })))))))), children, showFaceVerification && /*#__PURE__*/_react.default.createElement(_FaceVerification.default, {
250
- onClose: () => setShowFaceVerification(false),
251
- onSuccess: () => setShowFaceVerification(false),
252
- primaryColor: color
253
- }));
313
+ })))))))), children);
254
314
  };
255
315
  exports.OmnipayProvider = OmnipayProvider;
256
316
  const styles = _reactNative.StyleSheet.create({
@@ -360,6 +420,19 @@ const styles = _reactNative.StyleSheet.create({
360
420
  retryButton: {
361
421
  minWidth: 160,
362
422
  marginHorizontal: 'auto'
423
+ },
424
+ button: {
425
+ borderRadius: 6,
426
+ paddingHorizontal: 12,
427
+ paddingVertical: 14,
428
+ borderWidth: 1,
429
+ alignItems: 'center',
430
+ justifyContent: 'center'
431
+ },
432
+ buttonText: {
433
+ color: 'white',
434
+ fontSize: 16,
435
+ paddingHorizontal: 30
363
436
  }
364
437
  });
365
438
  //# sourceMappingURL=OmnipayProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeWebview","_interopRequireDefault","_functions","_reactNativeShare","_FaceVerification","_Button","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","defaultValue","initiateBills","initiateWallet","OmnipayContext","exports","React","createContext","OmnipayProvider","children","publicKey","env","color","webviewStatus","setWebviewStatus","useState","isVisible","setIsVisible","webviewRef","useRef","visibilityRef","webHost","getWebHost","webviewUrl","setWebviewUrl","showWebview","includes","containerOffset","setContainerOffset","isValidEnv","isValidColor","length","onCloseRef","undefined","showFaceVerification","setShowFaceVerification","useEffect","setTimeout","current","getWebviewStyle","opacity","height","width","flex","styles","webview","onWebviewMount","Platform","OS","postMessage","data","JSON","stringify","error","onWebviewMessage","nativeEvent","eventData","parse","dataKey","dataValue","contactDetails","getContact","Linking","openURL","closeWebview","shareReceipt","receiptData","fileName","image","Share","open","url","filename","console","log","_initiateBills","phoneNumber","onClose","webUrl","warn","_initiateWallet","customerRef","userRef","usesPaylater","usesPromo","usesAirtimeData","usesTransfer","usesBills","usesPos","promoBalanceOffset","deviceId","deviceName","hideWalletTransfer","isBvnValidationRequired","walletTab","sessionId","kycStatus","launchPage","isPhoneNumberValid","isValidCustomerRef","trim","isValidUserRef","usesNativeShare","reloadWebview","reload","webviewStyle","isPropsValid","isWalletView","createElement","Provider","value","Fragment","Modal","visible","style","modal","transparent","TouchableOpacity","backdrop","activeOpacity","onPress","View","container","paddingTop","close","Image","source","closeIcon","ScrollView","contentContainerStyle","contentContainer","TouchableWithoutFeedback","uri","injectedJavaScriptBeforeContentLoaded","onMessage","ref","onLoadStart","domStorageEnabled","originWhitelist","onLoadEnd","renderError","StyleSheet","absoluteFillObject","errorContainer","Text","errorSubtitle","title","backgroundColor","borderColor","webviewLoader","ActivityIndicator","size","onSuccess","primaryColor","create","hide","display","full","Dimensions","borderTopRightRadius","borderTopLeftRadius","zIndex","alignItems","justifyContent","position","top","left","maxHeight","overflow","right","borderRadius","testContent","paddingLeft","testTwoContent","textAlign","fontSize","marginBottom","paddingHorizontal","marginTop","retryButton","minWidth","marginHorizontal"],"sourceRoot":"../../../src","sources":["components/OmnipayProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA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AAE;EACvB,CAAC;EACDW,WAAW,EAAE;IACXhD,UAAU,EAAE,EAAE;IACdiD,WAAW,EAAE;EACf,CAAC;EACDC,cAAc,EAAE;IACdlD,UAAU,EAAE,EAAE;IACdiD,WAAW,EAAE;EACf,CAAC;EACD3B,aAAa,EAAE;IACb6B,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZnK,KAAK,EAAE,SAAS;IAChBoK,YAAY,EAAE,EAAE;IAChBC,iBAAiB,EAAE,CAAC;IACpBC,SAAS,EAAE;EACb,CAAC;EACDnC,cAAc,EAAE;IACdpG,IAAI,EAAE,CAAC;IACPwH,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE,QAAQ;IACpBxH,KAAK,EAAEoH,uBAAU,CAACpK,GAAG,CAAC,QAAQ,CAAC,CAACgD,KAAK;IACrCD,MAAM,EAAEqH,uBAAU,CAACpK,GAAG,CAAC,QAAQ,CAAC,CAAC+C,MAAM;IACvCwH,MAAM,EAAE,CAAC;IACTd,eAAe,EAAE;EACnB,CAAC;EACDgC,WAAW,EAAE;IACXC,QAAQ,EAAE,GAAG;IACbC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeWebview","_interopRequireDefault","_functions","_reactNativeShare","_asyncStorage","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OmnipayActivity","NativeModules","defaultValue","initiateBills","initiateWallet","OmnipayContext","exports","React","createContext","OmnipayProvider","children","publicKey","env","color","webviewStatus","setWebviewStatus","useState","isVisible","setIsVisible","webviewRef","useRef","visibilityRef","webHost","getWebHost","webviewUrl","setWebviewUrl","showWebview","includes","containerOffset","setContainerOffset","isValidEnv","isValidColor","length","onCloseRef","undefined","canUsePos","setCanUsePos","useEffect","checkPaymentApp","current","eventEmitter","NativeEventEmitter","addListener","event","console","log","Platform","OS","isInstalled","isPackageInstalled","error","startPosTransaction","amount","purchaseType","print","rrn","stan","terminalId","result","isKeyExchanged","AsyncStorage","getItem","initiateHorizonTransaction","toLowerCase","setItem","postMessage","dataKey","dataValue","getWebviewStyle","opacity","height","width","flex","styles","webview","onWebviewMount","data","JSON","stringify","onWebviewMessage","nativeEvent","eventData","parse","contactDetails","getContact","Linking","openURL","closeWebview","shareReceipt","receiptData","fileName","image","Share","open","url","filename","_initiateBills","phoneNumber","onClose","webUrl","warn","_initiateWallet","customerRef","userRef","usesPaylater","usesPromo","usesAirtimeData","usesTransfer","usesBills","usesPos","promoBalanceOffset","deviceId","deviceName","hideWalletTransfer","isBvnValidationRequired","walletTab","sessionId","kycStatus","launchPage","promoName","isPhoneNumberValid","isValidCustomerRef","trim","isValidUserRef","usesNativeShare","reloadWebview","reload","webviewStyle","isPropsValid","isWalletView","createElement","Provider","value","Fragment","Modal","visible","style","modal","transparent","TouchableOpacity","backdrop","activeOpacity","onPress","View","container","paddingTop","close","Image","source","closeIcon","ScrollView","contentContainerStyle","contentContainer","TouchableWithoutFeedback","uri","injectedJavaScriptBeforeContentLoaded","onMessage","ref","onLoadStart","domStorageEnabled","originWhitelist","allowsInlineMediaPlayback","onLoadEnd","renderError","StyleSheet","absoluteFillObject","errorContainer","Text","errorSubtitle","button","backgroundColor","borderColor","buttonText","webviewLoader","ActivityIndicator","size","create","hide","display","full","Dimensions","borderTopRightRadius","borderTopLeftRadius","zIndex","alignItems","justifyContent","position","top","left","maxHeight","overflow","right","borderRadius","testContent","paddingLeft","testTwoContent","textAlign","fontSize","marginBottom","paddingHorizontal","marginTop","retryButton","minWidth","marginHorizontal","paddingVertical","borderWidth"],"sourceRoot":"../../../src","sources":["components/OmnipayProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAgBA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAC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