Skip to content
Payment Rails SDK in Java for v1 REST APIs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.gitignore
README.md
pom.xml

README.md

Payment Rails JAVA SDK

A native JAVA SDK for the Payment Rails API

Installation

For Java

To install the reference:

Maven

Add this dependency to your project's POM:

<dependency>
    <groupId>ca.paymentrails</groupId>
    <artifactId>paymentrails</artifactId>
    <version>1.0</version>
</dependency>

The library is hosted at [insert github link]

Getting Started

import ca.paymentrails.paymentrails.*;
import ca.paymentrails.Exceptions.*;

public class PaymentRailsExample {
    public static void main(String[] args) {

       Gateway client = new Gateway(new Configuration("YOUR_PUBLIC_KEY","YOUR_PRIVATE_KEY","production"));

        try {
            Recipient recipient = client.recipient.find("R-1a2B3c4D5e6F7g8H9i0J1k");
            System.out.println(recipient.getId());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Usage

Methods should all have Java Doc comments to help you understand their usage. As mentioned the full API documentation is the best source of information about the API.

For more information please read the Java API docs is available. The best starting point is:

Data Type SDK Documentation
Batch API Docs for Batch
Payment API Docs for Payment
Recipient API Docs for Recipient
Recipient Account API Docs for Recipient Account

merchantKey

  • Type: Authorization
  • Authorization parts: Access code, Secret code
  • Location: HTTP header
You can’t perform that action at this time.