paymob-pixel-alpha 1.0.6 → 1.0.8
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 +9 -3
- package/main.js +2114 -2068
- package/package.json +1 -1
- package/styles.css +32 -0
package/README.md
CHANGED
|
@@ -19,7 +19,15 @@ import { Pixel } from 'paymob-pixel-alpha';
|
|
|
19
19
|
|
|
20
20
|
### CDN
|
|
21
21
|
|
|
22
|
-
Using
|
|
22
|
+
Using jsDelivr:
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/paymob-pixel-alpha@latest/styles.css">
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/paymob-pixel-alpha@latest/main.css">
|
|
27
|
+
<script src="https://cdn.jsdelivr.net/npm/paymob-pixel-alpha@latest/main.js" type="module"></script>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Using unpkg:
|
|
23
31
|
|
|
24
32
|
```html
|
|
25
33
|
<link rel="stylesheet" href="https://unpkg.com/paymob-pixel-alpha/styles.css">
|
|
@@ -54,7 +62,6 @@ The full list of properties is as follows:
|
|
|
54
62
|
| paymentMethods | Array of String | Pass card for Card Payments ,google-pay for Google Pay && apple-pay for Apple Pay. |
|
|
55
63
|
| elementId | String | ID of the HTML element where the checkout pixel will be embedded. |
|
|
56
64
|
| disablePay | Boolean | pass true If you don’t want to use Paymob’s Pay Button for Card Payment, in this case you will dispatchEvent with name (payFromOutside) to fire the pay. |
|
|
57
|
-
| hideCardHolderName | Boolean | If this parameter is set to true ,then Cardholder Name will be hidden for Card Payments. |
|
|
58
65
|
| showSaveCard | Boolean | If this option is set to TRUE, users will have the option to save their card details for future payment. |
|
|
59
66
|
| forceSaveCard | Boolean | If this option is set to true, the user's card details will be saved automatically without requiring their consent |
|
|
60
67
|
| beforePaymentComplete | Function | Merchants can implement their own custom logic or functions before the payment is processed by Paymob. check the full example below. |
|
|
@@ -97,7 +104,6 @@ The full list of properties is as follows:
|
|
|
97
104
|
showSaveCard: true,
|
|
98
105
|
forceSaveCard: true,
|
|
99
106
|
disablePay: true,
|
|
100
|
-
hideCardHolderName: true,
|
|
101
107
|
cardValidationChanged: (isValid) => {
|
|
102
108
|
console.log("Is valid ? ", isValid)
|
|
103
109
|
},
|