Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.16 KB

File metadata and controls

45 lines (29 loc) · 2.16 KB

Flex Java Example

A minimalist java/spring-boot example integration using Flex-API tokenization.

Prerequisites

Setup Instructions

  1. Modify ./src/main/resources/application.properties with the credentials created through VISA Developer Portal.
vdp.api-key=_YOUR_APPLICATION_SPECIFIC_API_KEY_
vdp.shared-secret=_YOUR_APPLICATION_SPECIFIC_SHARED_SECRET_
  1. Build and run the application using maven
mvn clean spring-boot:run

This will serve the application from https://localhost:8443.

Tips

  • If you are having issues, checkout the full FLEX documentation.

  • To change the port the application is served on, update server.port=8443 in application.properties, replacing 8443 with your desired port number.

  • If the application throws java.security.InvalidKeyException: Illegal key size you have probably not installed the JCE unlimited policy files.

Browser Support

  • 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.

Disclaimer

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.