You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,33 @@
2
2
3
3
The CyberSource Node client provides convenient access to the [CyberSource REST API](https://developer.cybersource.com/api/reference/api-reference.html) from your Node application.
4
4
5
-
## Requirements
5
+
## Requirements
6
+
6
7
* Node.js version 6.17.1 or higher
7
8
* A CyberSource account (see _Registration & Configuration_ section below)
8
9
9
-
10
10
## Installation
11
11
12
12
```shell
13
-
npm install cybersource-rest-client
13
+
npm install cybersource-rest-client
14
14
```
15
15
16
16
## Registration & Configuration
17
+
17
18
Use of this SDK and the CyberSource APIs requires having an account on our system. You can find details of getting a test account and creating your keys [here](https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/registration.html)
18
19
19
20
Remember this SDK is for use in server-side Node applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.
20
21
21
22
## SDK Usage Examples and Sample Code
23
+
22
24
To get started using this SDK, it's highly recommended to download our sample code repository:
25
+
23
26
*[Cybersource Node.js Sample Code Repository (on GitHub)](https://github.com/CyberSource/cybersource-rest-samples-node)
24
27
25
28
In that respository, we have comprehensive sample code for all common uses of our API:
26
29
27
30
Additionally, you can find details and examples of how our API is structured in our API Reference Guide:
31
+
28
32
*[Developer Center API Reference](https://developer.cybersource.com/api/reference/api-reference.html)
29
33
30
34
The API Reference Guide provides examples of what information is needed for a particular request and how that information would be formatted. Using those examples, you can easily determine what methods would be necessary to include that information in a request using this SDK.
@@ -40,18 +44,18 @@ MIDs continue to be able to create keys for themselves, even if a Meta Key is ge
40
44
Further information on MetaKey can be found in [New Business Center User Guide](https://developer.cybersource.com/library/documentation/dev_guides/Business_Center/New_Business_Center_User_Guide.pdf).
41
45
42
46
### Switching between the sandbox environment and the production environment
43
-
Cybersource maintains a complete sandbox environment for testing and development purposes. This sandbox environment is an exact duplicate of our production environment with the transaction authorization and settlement process simulated. By default, this SDK is configured to communicate with the sandbox environment. To switch to the production environment, set the `runEnvironment` in the SDK Configuration. See our sample at https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/Data/Configuration.js.
47
+
48
+
Cybersource maintains a complete sandbox environment for testing and development purposes. This sandbox environment is an exact duplicate of our production environment with the transaction authorization and settlement process simulated. By default, this SDK is configured to communicate with the sandbox environment. To switch to the production environment, set the `runEnvironment` in the SDK Configuration. See our sample at <https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/Data/Configuration.js>.
KEY_DIRECTORY_EMPTY : "KeysDirectory not provided. Using Default Path : ",
68
+
REQUEST_JSON_EMPTY : "RequestJsonPath not provided",
69
+
INVALID_LOGDIRECTORY : "Entered log directory does not exists. Taking default log directory ./log",
70
+
INVALID_REQUEST_TYPE_METHOD : "Entered Request Type should be (GET/POST/PUT/DELETE)",
71
+
DEPRECATED_RUN_ENVIRONMENT : "The value provided for this field `RunEnvironment` has been deprecated and will not be used anymore.\n\nPlease refer to the README file [ https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/README.md ] for information about the new values that are accepted.",
0 commit comments