Skip to content

Commit 28f2edf

Browse files
authored
Update README.md
1 parent 21bf4a2 commit 28f2edf

1 file changed

Lines changed: 21 additions & 14 deletions

File tree

jsp-microform/README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,39 @@ Flex Microform is a CyberSource-hosted HTML/JavaScript component that replaces t
44

55
## Prerequisites
66

7-
- [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
8-
- [JCE unlimited policy files](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html)
9-
- [Maven](https://maven.apache.org/install.html)
10-
- [Tomcat 8 Web Server](http://tomcat.apache.org)
7+
- Node.js 10.15.1 or later
8+
- Express web application framework
9+
- NPM
1110

1211
## Setup Instructions
1312

14-
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.
1514

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+
const MerchantId = 'YOUR MERCHANT ID';
19+
const MerchantKeyId = 'YOUR KEY ID (SHARED SECRET SERIAL NUMBER)';
20+
const MerchantSecretKey = 'YOUR SHARED SECRET';
2021
```
2122

22-
2. Build and run the application using maven
23+
3. Pull down the package dependencies
2324
```bash
24-
mvn clean package
25+
cd express-microform
26+
npm install
2527
```
2628

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+
2837

2938
## Tips
3039

3140
- If you are having issues, checkout the full [FLEX Microform documentation](https://developer.cybersource.com/api/developer-guides/dita-flex/SAFlexibleToken/FlexMicroform.html).
3241

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-
3542
- 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

Comments
 (0)