@gr4vy/secure-fields-react 1.13.0 → 1.14.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.14.0 (Thu Nov 09 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: stored payment method [#499](https://github.com/gr4vy/secure-fields/pull/499) ([@luca-gr4vy](https://github.com/luca-gr4vy) [@cbetta](https://github.com/cbetta))
6
+
7
+ #### Authors: 2
8
+
9
+ - Cristiano Betta ([@cbetta](https://github.com/cbetta))
10
+ - Luca Allievi ([@luca-gr4vy](https://github.com/luca-gr4vy))
11
+
12
+ ---
13
+
1
14
  # v1.12.0 (Thu Aug 03 2023)
2
15
 
3
16
  #### 🐛 Bug Fix
package/README.md CHANGED
@@ -31,6 +31,7 @@ const { SecureFields } = require(`@gr4vy/secure-fields-react`)
31
31
  gr4vyId='[GR4VY_ID]'
32
32
  environment='sandbox'
33
33
  sessionId='[SESSION_ID]'
34
+ // paymentMethodId='[PAYMENT_METHOD_ID]' // uuid of a stored payment method (optional)
34
35
  debug
35
36
  font="Lato"
36
37
  onReady={(data) => console.log('Secure Fields loaded', data)}
@@ -49,6 +50,7 @@ const { SecureFields } = require(`@gr4vy/secure-fields-react`)
49
50
  | `gr4vyId` | Your Gr4vy ID. |
50
51
  | `environment` | Your Gr4vy environment. Can be either `sandbox` or `production`. |
51
52
  | `sessionId` | The Session ID. |
53
+ | `paymentMethodId` | An optional uuid that can be passed to use Secure Fields with a stored payment method. |
52
54
  | `debug` | Enables / disables the debug mode. |
53
55
  | `font` | Loads a custom font from [Google Fonts](https://fonts.google.com/) to be used inside inputs. You can define the font family as well as styles or weights as a string (e.g. "Lato:400,600"). To use the loaded font, add the correct `fontFamily` property to the styles object when rendering fields. |
54
56
  | `onReady` | An event handler that listens for Secure Fields to be securely loaded. It listens for the [`READY`](../secure-fields/README.md#events) event and accepts a callback function. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/secure-fields-react",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Gr4vy-hosted secure fields offering advanced theming, PCI compliance, event handling, and more.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index",
@@ -39,7 +39,7 @@
39
39
  "react-dom": ">=17.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@gr4vy/secure-fields": "^1.13.0"
42
+ "@gr4vy/secure-fields": "^1.14.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/react-hooks": "^8.0.1",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "d7d3191e8c52329983e2e0bcf19e24f406b7f5a2"
54
+ "gitHead": "9df00728263ae3bb495c2619521b70bbc004013e"
55
55
  }