Giter Site home page Giter Site logo

cashfree-sdk-java's Introduction

Cashfree SDK's are released in Beta. This is work in progress and we are continuously working on improving various aspects of it. It is released as learning aid and example kit for the API integrators. This is not recommended by Cashfree for direct use in production code. Please report any bugs to Cashfree at [email protected].

cashfree-sdk-java

The official Cashfree SDK for Java,

Get started quickly using Cashfree with the Cashfree SDK for java. The SDK helps take the complexity out of coding by providing java objects for Cashfree services including Payouts, Payment Gateway, Marketplace and Autocollect. The single, downloadable package includes the Cashfree Java Library and documentation.

Please refer to the Cashfree Docs for the complete API reference.

Installing

The preferred way to install the Cashfree SDK for Java is to use the maven-central dependency manager. Simply add the following in your pom.xml or build.gradle:

Getting Started

Pre-requisites

IP Whitelisting and dynamic IPs

Your IP has to be whitelisted to hit Cashfree's server. Or if you have a dynamic IP please pass in the public key parameter during the init method as shown below. For more information please go here.

Usage

Payouts

The package needs to be configured with your account's secret key which is available in your Cashfree Dashboard. Init the package with your credentials and add the below code in your config.py of your package.

In case of static IP (Your IP is whitelisted)
import com.cashfree.lib.payout.clients.Payouts;

// Get instance for Cashfree Payout
String clientId = ""; //your client id here
String clientSecret = ""; //your client secret here
Payouts payouts = Payouts.getInstance(Environment.PRODUCTION, clientId, clientSecret);
In case of dynamic IP you will need a public key to generate a signature(which will be done by sdk itself)
Needs to be implmented.
Option Default Description
env TEST Environment to be initialized. Can be set to TEST or PROD
client_id `` client_id which can be generated on cashfree dashboard.
client_secret `` client_secret which can be found alongside generated client_id.
public_key_path `` public_key_path specify the path to your .pem public key file `.
public_key `` public_key Pass your Public Key to this parameter as an alternative to public_key_path .
  • For more information about the APIs go to Payouts.
  • Please also refer to experiments/PayoutExperiments.java and PgExperiments.java for sample usages for each api call.
  • Complete list of APIs.

TODO

  • Market Place

  • Autocollect

cashfree-sdk-java's People

Contributors

shubhankar-cashfree avatar cf-mayank avatar ranu-k avatar shwetabhcf avatar harshachandra avatar ankur-cashfree avatar shubhamatlani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.