https://github.com/robtimus/connect-sdk-java-spring-boot-starter
Spring Boot starter for connect-sdk-java (https://github.com/Ingenico-ePayments/connect-sdk-java/)
https://github.com/robtimus/connect-sdk-java-spring-boot-starter
connect-sdk connect-sdk-java java spring-boot
Last synced: 2 months ago
JSON representation
Spring Boot starter for connect-sdk-java (https://github.com/Ingenico-ePayments/connect-sdk-java/)
- Host: GitHub
- URL: https://github.com/robtimus/connect-sdk-java-spring-boot-starter
- Owner: robtimus
- License: apache-2.0
- Created: 2019-05-14T19:25:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T15:06:29.000Z (about 1 year ago)
- Last Synced: 2024-04-14T04:47:39.469Z (about 1 year ago)
- Topics: connect-sdk, connect-sdk-java, java, spring-boot
- Language: Java
- Homepage: https://robtimus.github.io/connect-sdk-java-spring-boot-starter/
- Size: 1.72 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# connect-sdk-java-spring-boot-starter
[](https://search.maven.org/artifact/com.github.robtimus/connect-sdk-java-spring-boot-starter)
[](https://github.com/robtimus/connect-sdk-java-spring-boot-starter/actions/workflows/build.yml)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aconnect-sdk-java-spring-boot-starter)
[](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aconnect-sdk-java-spring-boot-starter)
[](https://snyk.io/test/github/robtimus/connect-sdk-java-spring-boot-starter)A Spring Boot starter project for [connect-sdk-java](https://github.com/Worldline-Global-Collect/connect-sdk-java).
For more details, see https://robtimus.github.io/connect-sdk-java-spring-boot-starter/.
## Quick start
First, add this Spring Boot starter as a [dependency](https://robtimus.github.io/connect-sdk-java-spring-boot-starter/dependency-info.html) to your project.
Next, add the following properties to your `application.properties` or `application.yml` file:
connect.api.endpoint.host=
connect.api.integrator=
connect.api.authorization-id=
connect.api.authorization-secret=With these simple steps a [Client](https://worldline-global-collect.github.io/connect-sdk-java/apidocs/latest/com/worldline/connect/sdk/java/Client.html) and a [V1Client](https://worldline-global-collect.github.io/connect-sdk-java/apidocs/latest/com/worldline/connect/sdk/java/v1/V1Client.html) will be auto-configured.
To also have a [MerchantClient](https://worldline-global-collect.github.io/connect-sdk-java/apidocs/latest/com/worldline/connect/sdk/java/v1/merchant/MerchantClient.html) auto-configured, add the following property as well:
connect.api.merchant-id=
### Actuators
If you have the `org.springframework.boot:spring-boot-starter-actuator` dependency in your project and have provided all of the above properties, including `connect.api.merchant-id`, then a [health indicator](https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints) will be auto-configured. This will use the [test connection](https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/java/services/testconnection.html?paymentPlatform=ALL) functionality to check your connectivity to the Worldline Connect Server API.
To prevent too many requests to the Worldline Connect Server API this is throttled to at most 1 request every minute. This can be changed by adding the following property to your project:# Every 5 minutes
connect.api.health.min-interval=300If you want to have an auto-configured `MerchantClient` but you don't want this health indicator, you can disable it by adding the following property to your project:
management.health.connect-sdk.enabled=false