A minimalist java/spring-boot example integration using Flex-API tokenization.
- Modify
./src/main/resources/application.propertieswith the credentials created through VISA Developer Portal.
vdp.api-key=_YOUR_APPLICATION_SPECIFIC_API_KEY_
vdp.shared-secret=_YOUR_APPLICATION_SPECIFIC_SHARED_SECRET_- Build and run the application using maven
mvn clean spring-boot:runThis will serve the application from https://localhost:8443.
-
If you are having issues, checkout the full FLEX documentation.
-
To change the port the application is served on, update
server.port=8443inapplication.properties, replacing8443with your desired port number. -
If the application throws
java.security.InvalidKeyException: Illegal key sizeyou have probably not installed the JCE unlimited policy files.
- Chrome 37+
- Firefox 34+
- Edge 12+
- Opera 24+
NB: IE11 and Safari support could be achieved through the use of polyfills for promises and Web Crypto API such as webcrypto-shim and promiz. However, these are not included in the examples.
This respository is provided as a learning aid for merchants wishing to integrate with the Flex API. The code samples are not production ready and are intended for illustrative purposes only. As such, any use of these code samples in a production setting is strongly discouraged. Any usage of these code samples must comply with the license agreement as defined in LICENSE.md at the root level of this repository.