Skip to content

oohira/recurly-java-library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recurly-java-library

Java library for Recurly, originally developed for Kill Bill, an open-source subscription management and billing system.

Getting started

The library is distributed via Maven Central:

<dependency>
    <groupId>com.ning.billing</groupId>
    <artifactId>recurly-java-library</artifactId>
    <version>0.1.6</version>
</dependency>

The easiest way to get started is by looking at the code examples in TestRecurlyClient.java.

Development

  1. Make sure you can build the project by running the smoke tests: mvn clean test
  2. Go to recurly.com and create an account. This account will be used as a sandbox environment for testing.
  3. In your Recurly account, click on API Credentials (bottom of the left menu), click the Enable API Access button and write down your API Key.
  4. Verify the setup by running the recurly-java-library integration tests (make sure to update your API Key): mvn clean test -Pintegration -Dkillbill.payment.recurly.apiKey=1234567689abcdef
  5. Go to your Recurly account, you should see some data (e.g. account created).
  6. Congrats! You're all set!

Java properties

  • Set -Drecurly.debug=true to output debug information in the info log file
  • Set -Drecurly.page.size=20 to configure the page size for Recurly API calls
  • To run the tests, one can use -Dkillbill.payment.recurly.currency=EUR to override the default USD currency used

Push notifications

See https://gist.github.com/dbathily/4433939 for an example on how to set it up.

Build

To build the project, use maven:

mvn clean install

About

Java library for Recurly

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%