@globalpayments/js 4.0.16 → 4.0.17

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.16/globalpayments.js"></script>
27
+ <script src="https://js.globalpay.com/4.0.17/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
  ![Example: Raw credit card form](docs/images/example-raw-credit-card.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalpayments/js",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "author": "Heartland Developer Portal <developers@heartland.us>",
5
5
  "license": "GPL-2.0",
6
6
  "repository": {
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.16";
1
+ declare const _default: "4.0.17";
2
2
  export default _default;