@motopays/pay-form 1.0.22-rc.0 → 1.0.22-rc.2
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 +13 -13
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -202,7 +202,7 @@ export class AppComponent {
|
|
|
202
202
|
| closePaymentRedirect | boolean | Whether to close a window that was open on 3ds or apm pages after a redirect to returnUrl |
|
|
203
203
|
| isProblemTipsListVisible | boolean | Whether to show tips on the payment result page when the payment is rejected, if tips exist for the error status code that occurred |
|
|
204
204
|
| languageSettings | ILanguageSettings | The language settings
|
|
205
|
-
| languageSettings.code | TLanguageCode | The code of language. Currently accepted: { 'en-
|
|
205
|
+
| languageSettings.code | TLanguageCode | The code of language. Currently accepted: { 'en-US', 'es-ES', 'fr-FR' }. It's also possible to add another code by adding custom language to languageSettings.languages
|
|
206
206
|
| languageSettings.languages | Partial<Record<TLanguageCode, ILanguage>> | Languages by codes
|
|
207
207
|
| components | TComponentType[] | Components that will be on the form, as well as their order, which depends on the position of the components in the array. Currently accepted: {'available-card-brands', 'card-list', 'requisites', 'phone-number', 'charge-terms', 'pay-button', 'apm-list', 'user-preferences', 'merchant-info', 'protected-by', 'no-methods'}
|
|
208
208
|
| resultComponentsStructure | IResultComponentsStructure | Components that will be on the result page of the form, as well as their order, which depends on the position of the components in the array
|
|
@@ -275,14 +275,14 @@ const settings: ISettings = {
|
|
|
275
275
|
availableCardBrands: ['visa', 'american-express', 'mastercard', 'diners-club', 'jcb'],
|
|
276
276
|
chargeTerms: {
|
|
277
277
|
text: {
|
|
278
|
-
'en-
|
|
279
|
-
'es-
|
|
278
|
+
'en-US': 'My charge terms { href: "https://google.com", text: "Google" } the ending of text',
|
|
279
|
+
'es-ES': 'My charge terms { href: "https://google.com", text: "Google es-ES" } the ending of text es-ES',
|
|
280
280
|
'custom': 'custom charge terms text'
|
|
281
281
|
},
|
|
282
282
|
checkboxes: [
|
|
283
283
|
{
|
|
284
|
-
'en-
|
|
285
|
-
'es-
|
|
284
|
+
'en-US': 'Charge terms { href: "https://google.com", text: "Google" } checkbox',
|
|
285
|
+
'es-ES': 'Charge terms { href: "https://google.com", text: "Google es-ES" } checkbox es-ES',
|
|
286
286
|
'custom': 'custom'
|
|
287
287
|
}
|
|
288
288
|
]
|
|
@@ -385,16 +385,16 @@ const settings: ISettings = {
|
|
|
385
385
|
},
|
|
386
386
|
merchantInfo: {
|
|
387
387
|
text: {
|
|
388
|
-
'en-
|
|
389
|
-
'es-
|
|
388
|
+
'en-US': 'Merchant info { href: "https://google.com", text: "Google" } merchant info { href: "https://google.com", text: "Google" } Merchant info',
|
|
389
|
+
'es-ES': 'Merchant info { href: "https://google.com", text: "Google es-ES" } merchant info { href: "https://google.com", text: "Google es-ES" } Merchant info es-ES',
|
|
390
390
|
'custom': 'custom merchant info'
|
|
391
391
|
},
|
|
392
392
|
links: [
|
|
393
393
|
{
|
|
394
394
|
href: 'https://google.com',
|
|
395
395
|
text: {
|
|
396
|
-
'en-
|
|
397
|
-
'es-
|
|
396
|
+
'en-US': 'google',
|
|
397
|
+
'es-ES': 'google (es-ES)',
|
|
398
398
|
'custom': 'custom link'
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -411,16 +411,16 @@ const settings: ISettings = {
|
|
|
411
411
|
},
|
|
412
412
|
userPreferences: {
|
|
413
413
|
text: {
|
|
414
|
-
'en-
|
|
415
|
-
'es-
|
|
414
|
+
'en-US': 'User preferences text { href: "https://google.com", text: "Google" } User preferences text',
|
|
415
|
+
'es-ES': 'User preferences text { href: "https://google.com", text: "Google es-ES" } User preferences text es-ES',
|
|
416
416
|
'custom': 'custom user preferences text'
|
|
417
417
|
},
|
|
418
418
|
checkboxes: [
|
|
419
419
|
{
|
|
420
420
|
name: 'user_preference_name',
|
|
421
421
|
text: {
|
|
422
|
-
'en-
|
|
423
|
-
'es-
|
|
422
|
+
'en-US': 'User preference { href: "https://google.com", text: "Google" } checkbox',
|
|
423
|
+
'es-ES': 'User preference { href: "https://google.com", text: "Google es-ES" } checkbox es-ES',
|
|
424
424
|
'custom': 'custom user preferences checkbox'
|
|
425
425
|
},
|
|
426
426
|
defaultValue: false
|
package/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type TAmountType = "gross-without-gst" | "net" | "gross";
|
|
|
6
6
|
export type TOrderType = "regular" | "free-trial" | "gems";
|
|
7
7
|
export type TPaymentInitiator = "customer" | "merchant";
|
|
8
8
|
export type TButtonStateUntilFilled = "enabled" | "disabled" | "hidden-enabled";
|
|
9
|
-
export type TLanguageCode = "en-
|
|
9
|
+
export type TLanguageCode = "en-US" | "es-ES" | "fr-FR" | string;
|
|
10
10
|
export interface ITextContainer {
|
|
11
11
|
text: Partial<Record<TLanguageCode, string>>;
|
|
12
12
|
}
|