paymob-pixel-alpha 1.0.4 → 1.0.6
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 +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,13 @@ Paymob Web SDK, help our merchant to have the native payment experience.
|
|
|
8
8
|
Using npm:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
$ npm install paymob-pixel --save
|
|
11
|
+
$ npm install paymob-pixel-alpha --save
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Once the package is installed, you can import the library using `import`:
|
|
15
15
|
|
|
16
16
|
```js
|
|
17
|
-
import { Pixel } from 'paymob-pixel';
|
|
17
|
+
import { Pixel } from 'paymob-pixel-alpha';
|
|
18
18
|
``` -->
|
|
19
19
|
|
|
20
20
|
### CDN
|
|
@@ -22,9 +22,9 @@ import { Pixel } from 'paymob-pixel';
|
|
|
22
22
|
Using unpkg CDN:
|
|
23
23
|
|
|
24
24
|
```html
|
|
25
|
-
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel/styles.css">
|
|
26
|
-
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel/main.css">
|
|
27
|
-
<script src="https://unpkg.com/paymob-pixel/main.js" type="module"></script>
|
|
25
|
+
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel-alpha/styles.css">
|
|
26
|
+
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel-alpha/main.css">
|
|
27
|
+
<script src="https://unpkg.com/paymob-pixel-alpha/main.js" type="module"></script>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
|
|
@@ -73,14 +73,14 @@ The full list of properties is as follows:
|
|
|
73
73
|
<title>Pixels</title>
|
|
74
74
|
<base href="/">
|
|
75
75
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
76
|
-
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel/styles.css">
|
|
77
|
-
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel/main.css">
|
|
76
|
+
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel-alpha/styles.css">
|
|
77
|
+
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel-alpha/main.css">
|
|
78
78
|
</head>
|
|
79
79
|
<body>
|
|
80
80
|
<div style="position: absolute; width: 80%; margin-top: 10%;" id="example"></div>
|
|
81
81
|
<button id="payFromOutsideButton">Pay From Outside Button</button>
|
|
82
82
|
|
|
83
|
-
<script src="https://unpkg.com/paymob-pixel/main.js" type="module"></script>
|
|
83
|
+
<script src="https://unpkg.com/paymob-pixel-alpha/main.js" type="module"></script>
|
|
84
84
|
<script>
|
|
85
85
|
const button = document.getElementById('payFromOutsideButton');
|
|
86
86
|
button.addEventListener('click', function () {
|