File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,16 @@ 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 (require (' mastercard-client-encryption' )).FieldLevelEncryption (config);
79+ // ...
7980let encryptedRequestPayload = fle .encrypt (endpoint, header, body);
8081```
8182
8283- ` decrypt() ` usage:
8384
8485``` js
85- const fle = new require (' mastercard-client-encryption' ).FieldLevelEncryption (config);
86+ const fle = new (require (' mastercard-client-encryption' )).FieldLevelEncryption (config);
87+ // ...
8688let responsePayload = fle .decrypt (encryptedResponsePayload);
8789```
8890
@@ -149,6 +151,7 @@ const string payload =
149151 }
150152};
151153const fle = new (require (' mastercard-client-encryption' )).FieldLevelEncryption (config);
154+ // ...
152155let responsePayload = fle .encrypt (" /resource1" , header, payload);
153156```
154157
You can’t perform that action at this time.
0 commit comments