@globalpayments/js 4.0.16 → 4.0.19
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
CHANGED
|
@@ -24,7 +24,7 @@ This plugin allows you to use online payments (eCommerce) features of a variety
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
|
-
<script src="https://js.globalpay.com/4.0.
|
|
27
|
+
<script src="https://js.globalpay.com/4.0.19/globalpayments.js"></script>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
> Note: Installing via NPM will only provide TypeScript types for type-checking.
|
|
@@ -495,6 +495,44 @@ const cardForm = GlobalPayments.ui.form({
|
|
|
495
495
|
});
|
|
496
496
|
```
|
|
497
497
|
|
|
498
|
+
#### Adding Multiple Custom Fonts
|
|
499
|
+
To add multiple custom fonts, you can use the following configurations:
|
|
500
|
+
|
|
501
|
+
```
|
|
502
|
+
const cardForm = GlobalPayments.ui.form({
|
|
503
|
+
fields: { ... },
|
|
504
|
+
styles: {
|
|
505
|
+
"@font-face": [
|
|
506
|
+
{
|
|
507
|
+
"font-family": "'Font 1'",
|
|
508
|
+
"src": "url('url/font1.woff2') format('woff2')"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"font-family": "'Font 2'",
|
|
512
|
+
"src": "url('url/font2.woff2') format('woff2')"
|
|
513
|
+
}]
|
|
514
|
+
|
|
515
|
+
// Your styles
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
```
|
|
519
|
+
or
|
|
520
|
+
```
|
|
521
|
+
cardForm.addStylesheet({
|
|
522
|
+
"@font-face": [
|
|
523
|
+
{
|
|
524
|
+
"font-family": "'Font 1'",
|
|
525
|
+
"src": "url('url/font1.woff2') format('woff2')"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"font-family": "'Font 2'",
|
|
529
|
+
"src": "url('url/font2.woff2') format('woff2')"
|
|
530
|
+
}]
|
|
531
|
+
});
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
#### Validation Messages
|
|
498
536
|
The list of validation messages is accessible at [/packages/globalpayments-js/src/internal/lib/translations/en.ts](https://github.globalpay.com/Developer-Experience/globalpayments-js/blob/94540f9ca68bc627f4d3e038b2cec36c6bd317b0/packages/globalpayments-js/src/internal/lib/translations/en.ts#L13)
|
|
499
537
|
|
|
500
538
|

|
package/package.json
CHANGED
|
@@ -49,6 +49,15 @@ declare const es: {
|
|
|
49
49
|
text: string;
|
|
50
50
|
};
|
|
51
51
|
"other-cards-label": string;
|
|
52
|
+
QR: {
|
|
53
|
+
button: {
|
|
54
|
+
text: string;
|
|
55
|
+
"aria-label": string;
|
|
56
|
+
};
|
|
57
|
+
redirectScreen: {
|
|
58
|
+
redirectingToPaymentPageMessage: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
52
61
|
apms: {
|
|
53
62
|
button: {
|
|
54
63
|
getAriaLabel: (paymentMethod: string) => string;
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.0.
|
|
1
|
+
declare const _default: "4.0.19";
|
|
2
2
|
export default _default;
|