Giter Club home page Giter Club logo

chargily-epay-springboot's Introduction

Chargily ePay Gateway Spring Boot

Chargily ePay Gateway

Integrate ePayment gateway with Chargily easily.

  • Currently support payment by CIB / EDAHABIA cards and soon by Visa / Mastercard
  • This is a Spring Boot jar, If you are using another programing language Browse here or look to API documentation

Requirements

  1. JDK 11 or later.
  2. Spring Boot Version 2.5 or later
  3. Get your API Key/Secret from ePay by Chargily dashboard for free

Installation

  1. Via Maven (Recomended)
    it will be published into mvn central soon.

  2. Manually
    downlaod the jar file and add it as a library into your project ePay by Chargily

Quick start

Create an Invoice Object

        Invoice invoice = new Invoice("client","client_email","invoice_number",
                500.0/*amount*/,25.0/*discount*/,"back_url","webhook_url", PaymentMode/*enum EDAHABIA,CIB*/,
                "comment");

Instantiate a ChargilyService via a constructor

ChargilyService chargilyService = new ChargilyService();

OR inject it into your class

public class example{

@Autowired
private ChargilyService chargilyService;

/*
  your code

*/
}

Start a payment

ResponseEntity<ChargilyResponse> response = chargilyService.createPayment(invoiceObj,"APIKEY");
response.getBody().getCheckout_url();

Validate a signature

if(chargilyService.isSignatureValid("signature","APISecretKey","ResponseData")){

    /*
    your coce 
    */
}

Contribution tips

  1. Make a fork of this repo.
  2. Take a tour to our API documentation here
  3. Get your API Key/Secret from ePay by Chargily dashboard for free.
  4. Start developing.
  5. Finished? Push and merge.

chargily-epay-springboot's People

Contributors

errros avatar chargilydev avatar

Stargazers

Bentafat Sara avatar  avatar  avatar  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.