https://github.com/gocardless/gocardless-pro-java-example
Example of using the GoCardless Pro Java client library
https://github.com/gocardless/gocardless-pro-java-example
Last synced: 3 months ago
JSON representation
Example of using the GoCardless Pro Java client library
- Host: GitHub
- URL: https://github.com/gocardless/gocardless-pro-java-example
- Owner: gocardless
- License: mit
- Created: 2015-04-17T16:24:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-01T08:50:28.000Z (over 3 years ago)
- Last Synced: 2025-01-14T08:52:53.050Z (5 months ago)
- Language: Java
- Size: 288 KB
- Stars: 2
- Watchers: 91
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoCardless Pro Java Example
[](https://heroku.com/deploy)
This is a simple Java application that uses the [GoCardless Pro API](https://developer.gocardless.com/pro/) to collect recurring payments for subscriptions. It uses the GoCardless [redirect flow](https://developer.gocardless.com/pro/#api-endpoints-redirect-flows), and is built using the [Dropwizard](http://www.dropwizard.io) framework.
The app can be seen running at [https://gocardless-pro-java-example.herokuapp.com](https://gocardless-pro-java-example.herokuapp.com).
## Running the app locally
First, register a sandbox account [here](https://manage-sandbox.gocardless.com/), and grab an access token from the dashboard. Then:
```
export GC_ACCESS_TOKEN=...
gradle shadowJar
java -jar build/libs/enterprise-solutions-all.jar server config.yml
```The app will be running at [http://localhost:8080](http://localhost:8080).