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)
15
-
15
+
16
16
## Dependencies
17
17
* PHP-JWT : JWT token Generation
18
18
* CURL : Http communication with the payment gateway
19
-
* PHP_APCU : Caching
19
+
* PHP_APCU : Caching
20
20
* phpunit-5.7.25 : unit testing
21
21
* phpunit-5.7.25 code coverage : Sonar coverage
22
22
23
23
## Installation
24
24
### Composer
25
25
We recommend using [`Composer`](http://getcomposer.org). *(Note: we never recommend you
26
-
override the new secure-http default setting)*.
26
+
override the new secure-http default setting)*.
27
27
*Update your composer.json file as per the example below and then run
28
28
`composer update`.*
29
29
30
30
```json
31
31
{
32
32
"require": {
33
33
"php": ">=5.6",
34
-
"cybersource/rest-client-php": "0.0.32"
34
+
"cybersource/rest-client-php": "0.0.33"
35
35
}
36
36
}
37
37
```
38
38
39
39
## Registration & Configuration
40
40
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)
41
41
42
-
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.
42
+
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.
43
43
44
-
Remember this SDK is for use in server-side PHP applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.
44
+
Remember this SDK is for use in server-side PHP applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.
45
45
46
46
## SDK Usage Examples and Sample Code
47
47
To get started using this SDK, it's highly recommended to download our sample code repository:
@@ -67,11 +67,11 @@ Further information on MetaKey can be found in [New Business Center User Guide](
67
67
## To set your API credentials for an API request, configure the following information in ExternalConfiguration.php file:
68
68
69
69
Create a file in your application `ExternalConfiguration.php` inside a `Resources` folder and configure the following information as per requirement similar to [**this one**](https://github.com/CyberSource/cybersource-rest-samples-php/blob/master/Resources/ExternalConfiguration.php).
70
-
71
-
#### For Http Signature Authentication
72
-
70
+
71
+
#### For Http Signature Authentication
72
+
73
73
Configure the following information in `ExternalConfiguration.php` file
74
-
74
+
75
75
* Authentication Type: Merchant should enter "HTTP_SIGNATURE" for HTTP authentication mechanism.
76
76
* Merchant ID: Merchant will provide the merchant ID, which has taken from EBC portal.
77
77
* MerchantSecretKey: Merchant will provide the secret Key value, which has taken from EBC portal.
@@ -102,7 +102,7 @@ Further information on MetaKey can be found in [New Business Center User Guide](
102
102
#### For Jwt Signature Authentication
103
103
104
104
Configure the following information in the `ExternalConfiguration.php` file
105
-
105
+
106
106
* Authentication Type: Merchant should enter "JWT" for JWT authentication mechanism.
107
107
* Merchant ID: Merchant will provide the merchant ID, which was taken from EBC portal.
108
108
* keyAlias: Alias of the Merchant ID, to be used while generating the JWT token.
0 commit comments