omnipay-reactnative-sdk 0.3.0 → 0.3.1
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 +11 -12
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ android.enableJetifier=true
|
|
|
49
49
|
## Usage
|
|
50
50
|
|
|
51
51
|
```js
|
|
52
|
-
import Omnipay from 'omnipay-reactnative-sdk';
|
|
52
|
+
import { Omnipay } from 'omnipay-reactnative-sdk';
|
|
53
53
|
|
|
54
54
|
<Omnipay
|
|
55
55
|
color="#FD7A23"
|
|
@@ -57,20 +57,19 @@ import Omnipay from 'omnipay-reactnative-sdk';
|
|
|
57
57
|
phoneNumber="08020001111"
|
|
58
58
|
publicKey="OMNIPUBKEY_HZA3ERGYEE5XUFGTZDQV_MNKRSTA3-TU"
|
|
59
59
|
view="bills"
|
|
60
|
-
onEnterFullScreen={()=> hideExtraUiElements()}
|
|
61
|
-
onExitFullScreen={()=> unhideExtraUiElements()}
|
|
60
|
+
onEnterFullScreen={() => hideExtraUiElements()}
|
|
61
|
+
onExitFullScreen={() => unhideExtraUiElements()}
|
|
62
62
|
/>;
|
|
63
|
-
|
|
64
63
|
```
|
|
65
64
|
|
|
66
65
|
### Properties
|
|
67
66
|
|
|
68
|
-
| Name
|
|
69
|
-
|
|
|
70
|
-
| color
|
|
71
|
-
| env
|
|
72
|
-
| phoneNumber
|
|
73
|
-
| publicKey
|
|
74
|
-
| view
|
|
67
|
+
| Name | Type | Description |
|
|
68
|
+
| ----------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
69
|
+
| color | String | color of primary buttons and links |
|
|
70
|
+
| env | String | dev or prod |
|
|
71
|
+
| phoneNumber | String | phone number of the customer |
|
|
72
|
+
| publicKey | String | public key of the company on omnipay |
|
|
73
|
+
| view | String | the view to render. it accepts only bills |
|
|
75
74
|
| onEnterFullScreen | Function | the sdk uses a webview to render the content and might not neccesarily fill up the whole screen. This will be called whenever the sdk needs to show a modal. Other ui elements can be hidden at this point so the modal of the sdk can take up the full width and height of the screen |
|
|
76
|
-
| onExitFullScreen
|
|
75
|
+
| onExitFullScreen | Function | this is when the hidden elements can be made visible again as the sdk is no longer displaying a modal |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnipay-reactnative-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Omnipay react native sdk",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -152,6 +152,7 @@
|
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
"dependencies": {
|
|
155
|
+
"react-native-modal": "^13.0.1",
|
|
155
156
|
"react-native-select-contact": "^1.6.3",
|
|
156
157
|
"react-native-webview": "^11.23.1"
|
|
157
158
|
}
|