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
1.Modify `./src/main/webapp/credentials.properties` with the CyberSource REST credentials created through [EBC Portal](https://ebc2test.cybersource.com/).
13
+
1.Clone or download this repo.
15
14
16
-
```
17
-
merchantId=YOUR MERCHANT ID
18
-
keyId=YOUR KEY ID (SHARED SECRET SERIAL NUMBER)
19
-
sharedSecret=YOUR SHARED SECRET
15
+
2. Modify app.js with the CyberSource REST credentials created through [EBC Portal](https://ebc2test.cybersource.com/).
16
+
17
+
```javascript
18
+
constMerchantId='YOUR MERCHANT ID';
19
+
constMerchantKeyId='YOUR KEY ID (SHARED SECRET SERIAL NUMBER)';
20
+
constMerchantSecretKey='YOUR SHARED SECRET';
20
21
```
21
22
22
-
2. Build and run the application using maven
23
+
3. Pull down the package dependencies
23
24
```bash
24
-
mvn clean package
25
+
cd express-microform
26
+
npm install
25
27
```
26
28
27
-
This will produce a `.war` file that can be deployed to a Tomcat server instance. The deployed application will serve a demonstration card tokenization page on `http://localhost:8080/`. To serve from a different domain, ensure that `targetOrigin` domain is specified when making a call to the `/keys` endpoint. For a detailed example please see [FlexKeyProvider.java](./src/main/java/com/cybersource/example/FlexKeyProvider.java), line 47.
29
+
4. Run the web server
30
+
```bash
31
+
DEBUG=express-microform:* npm start
32
+
```
33
+
34
+
5. Navigate to http://localhost:3000 to try the sample application
35
+
36
+
28
37
29
38
## Tips
30
39
31
40
- If you are having issues, checkout the full [FLEX Microform documentation](https://developer.cybersource.com/api/developer-guides/dita-flex/SAFlexibleToken/FlexMicroform.html).
32
41
33
-
- If the application throws `java.security.InvalidKeyException: Illegal key size` you have probably not installed the [JCE unlimited policy files](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html).
34
-
35
42
- Safari version 10 and below does not support `RsaOaep256` encryption schema, for those browser please specify encryption type `RsaOaep` when making a call to the `/keys` endpoint. For a detailed example please see [FlexKeyProvider.java](./src/main/java/com.cybersource/example/FlexKeyProvider.java), line 47.
0 commit comments