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
*[CyberSource API Keys](https://prod.developer.cybersource.com/api/developer-guides/dita-gettingstarted/registration/createCertSharedKey.html)
14
15
15
16
## Dependencies
17
+
16
18
* activesupport 6.0.3.2
17
19
* interface 1.0.4
18
20
* json 2.1.0
19
21
* jwt 2.1.0
20
22
* typhoeus 1.3.1
21
23
22
24
## Installation
25
+
23
26
### Bundler
24
-
Be sure to always use HTTPS rubygems source in your gemfile and include the cybersource_rest_client.
25
27
26
-
```
27
-
source 'https://rubygems.org' do
28
-
gem 'cybersource_rest_client'
29
-
end
28
+
Be sure to always use HTTPS rubygems source in your gemfile and include the cybersource_rest_client.
30
29
30
+
```ruby
31
+
source 'https://rubygems.org'do
32
+
gem 'cybersource_rest_client'
33
+
end
31
34
```
32
35
33
36
## Registration & Configuration
37
+
34
38
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)
35
39
36
40
Once you have your keys, simply load them into the appropriate variables in your code, as per the below sample code dealing with the authentication part of the API request.
37
41
38
42
Remember this SDK is for use in server-side Ruby applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.
39
43
40
44
## SDK Usage Examples and Sample Code
45
+
41
46
To get started using this SDK, it's highly recommended to download our sample code repository:
42
-
*[Cybersource Ruby Sample Code Repository (on GitHub)](https://github.com/CyberSource/cybersource-rest-samples-ruby)
47
+
48
+
*[CyberSource Ruby Sample Code Repository (on GitHub)](https://github.com/CyberSource/cybersource-rest-samples-ruby)
43
49
44
50
In that respository, we have comprehensive sample code for all common uses of our API:
45
51
46
52
Additionally, you can find details and examples of how our API is structured in our API Reference Guide:
53
+
47
54
*[Developer Center API Reference](https://developer.cybersource.com/api/reference/api-reference.html)
48
55
49
56
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.
@@ -59,18 +66,18 @@ MIDs continue to be able to create keys for themselves, even if a Meta Key is ge
59
66
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).
60
67
61
68
### Switching between the sandbox environment and the production environment
62
-
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` property in the SDK Configuration. See our sample at https://github.com/CyberSource/cybersource-rest-samples-ruby/blob/master/data/Configuration.rb
69
+
70
+
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` property in the SDK Configuration. See our sample at <https://github.com/CyberSource/cybersource-rest-samples-ruby/blob/master/data/Configuration.rb>
INCORRECT_KEY_ALIAS='The Entered KeyAlias is Incorrect. Assigining merchantID value'unlessconst_defined?(:INCORRECT_KEY_ALIAS)
176
140
177
141
ENABLE_CLIENT_CERT_EMPTY='Enable Clientcert is Empty/Null.'unlessconst_defined?(:ENABLE_CLIENT_CERT_EMPTY)
@@ -191,4 +155,6 @@ class Constants
191
155
ACCESS_TOKEN_EMPTY='AccessToken is Empty/Null'unlessconst_defined?(:ACCESS_TOKEN_REQ)
192
156
193
157
REFRESH_TOKEN_EMPTY='RefreshToken is Empty/Null'unlessconst_defined?(:REFRESH_TOKEN_REQ)
158
+
159
+
DERPECATED_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