File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ The core methods responsible for payload encryption and decryption are `encryptD
7575- ` encrypt() ` usage:
7676
7777``` js
78- const fle = new ( require ( ' mastercard-client-encryption ' )) .FieldLevelEncryption (config);
78+ const fle = new clientEncryption .FieldLevelEncryption (config);
7979// ...
8080let encryptedRequestPayload = fle .encrypt (endpoint, header, body);
8181```
8282
8383- ` decrypt() ` usage:
8484
8585``` js
86- const fle = new ( require ( ' mastercard-client-encryption ' )) .FieldLevelEncryption (config);
86+ const fle = new clientEncryption .FieldLevelEncryption (config);
8787// ...
8888let responsePayload = fle .decrypt (encryptedResponsePayload);
8989```
@@ -139,7 +139,7 @@ Call `FieldLevelEncryption.encrypt()` with a JSON request payload, and optional
139139Example using the configuration [ above] ( #configuring-the-field-level-encryption ) :
140140
141141``` js
142- const string payload =
142+ const payload =
143143{
144144 " path" : {
145145 " to" : {
You can’t perform that action at this time.
0 commit comments