paymob-pixel-alpha 1.1.8 → 1.1.10

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 (4) hide show
  1. package/README.md +33 -8
  2. package/main.js +1125 -307
  3. package/package.json +1 -1
  4. package/styles.css +168 -110
package/README.md CHANGED
@@ -57,7 +57,7 @@ The full list of properties is as follows:
57
57
  | Property | Type | Definition |
58
58
  | --------------------- | -------------- | -------------- |
59
59
  | publicKey | String | It can be accessed from Merchant’s Dashboard → Settings → Account Info. |
60
- | clientSecre | String | Once you fire Intention API, you will receive “client_secret” in the API Response , which will be used in the Pixel SDK. Client Secret is unique for each Order and it expires in an hour. |
60
+ | clientSecret | String | Once you fire Intention API, you will receive “client_secret” in the API Response , which will be used in the Pixel SDK. Client Secret is unique for each Order and it expires in an hour. |
61
61
  | paymentMethods | Array of String | Pass card for Card Payments ,google-pay for Google Pay && apple-pay for Apple Pay. |
62
62
  | elementId | String | ID of the HTML element where the checkout pixel will be embedded. |
63
63
  | 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. |
@@ -167,9 +167,12 @@ The full list of functions is as follows:
167
167
  },
168
168
  customStyle: {
169
169
  HideCardIcons: true,
170
+ HideCardLabel: true,
170
171
  Direction: 'rtl',
171
172
  Label_Text: {
172
- cardLabel: "بيانات البطاقة"
173
+ cardLabel: "بيانات البطاقة",
174
+ savedCardsLabel: 'البطاقات المحفوطة',
175
+ saveCardConsentLabel: 'حفظ البطاقة',
173
176
  },
174
177
  Placeholder_Text: {
175
178
  holderName: 'الاسم علي البطاقة',
@@ -178,10 +181,20 @@ The full list of functions is as follows:
178
181
  securityCode:'(CVV) الرمز الامني'
179
182
  },
180
183
  Error_Text: {
184
+ cardNumber: {
185
+ required: 'مطلوب رقم البطاقة',
186
+ invalid: 'رقم البطاقة غير صحيح'
187
+ },
188
+ expiryDate: {
189
+ required: 'مطلوب تاريخ انتهاء الصلاحية',
190
+ invalid: 'تاريخ انتهاء الصلاحية غير صحيح'
191
+ },
192
+ securityCode: 'مطلوب الرمز الامني (CVV)',
181
193
  holderName: 'مطلوب اسم حامل البطاقة',
182
- cardNumber: 'مطلوب رقم البطاقة',
183
- expiryDate: 'مطلوب تاريخ انتهاء الصلاحية',
184
- securityCode: 'مطلوب رمز CVV مكون من 3 أرقام'
194
+ },
195
+ Button_Text: {
196
+ viewSavedCardsBtn: 'عرض البطاقات المحفوظة',
197
+ addNewCardBtn: 'إضافة بطاقة جديدة'
185
198
  },
186
199
  Font_Family: 'monospace',
187
200
  Font_Size_Label: '18',
@@ -306,9 +319,12 @@ The full list of functions is as follows:
306
319
  },
307
320
  customStyle: {
308
321
  HideCardIcons: true,
322
+ HideCardLabel: true,
309
323
  Direction: 'rtl',
310
324
  Label_Text: {
311
325
  cardLabel: "بيانات البطاقة"
326
+ savedCardsLabel: 'البطاقات المحفوطة',
327
+ saveCardConsentLabel: 'حفظ البطاقة',
312
328
  },
313
329
  Placeholder_Text: {
314
330
  holderName: 'الاسم علي البطاقة',
@@ -318,9 +334,18 @@ The full list of functions is as follows:
318
334
  },
319
335
  Error_Text: {
320
336
  holderName: 'مطلوب اسم حامل البطاقة',
321
- cardNumber: 'مطلوب رقم البطاقة',
322
- expiryDate: 'مطلوب تاريخ انتهاء الصلاحية',
323
- securityCode: 'مطلوب رمز CVV مكون من 3 أرقام'
337
+ cardNumber: {
338
+ required: 'مطلوب رقم البطاقة',
339
+ invalid: 'رقم البطاقة غير صحيح'
340
+ },
341
+ expiryDate: {
342
+ required: 'مطلوب تاريخ انتهاء الصلاحية',
343
+ invalid: 'تاريخ انتهاء الصلاحية غير صحيح'
344
+ },
345
+ },
346
+ Button_Text: {
347
+ viewSavedCardsBtn: 'عرض البطاقات المحفوظة',
348
+ addNewCardBtn: 'إضافة بطاقة جديدة'
324
349
  },
325
350
  Font_Family: 'monospace',
326
351
  Font_Size_Label: '18',