Skip to content

AcquiredSupport/Acquired-api-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Acquired Java Library 1.0.0

Description

The Acquired API Library for Java enables you to work with Acquired APIs.

Directory

|--WebContent.examples   (html files)
    |--public
        |--css
            general.css
    auth_.html    
    refund.html
    ...
|--src.com.Acquired
    |--form   (recieve html post data)
        Auth_.java
        Refund.java
        AQPayConfig.java
    |--helper   (Acquired api sdk)
        AQPay.java
        AQPayCommont.java
|--WebContent.WEB-INF.lib  
    gson-2.7.jar
readme.md  
index.html

Documentation

https://developer.acquired.com/integrations

Installation

You can simply Download the Release

Examples

Get start

  1. set config parameters in AQPayConfig.java.
  2. import the below file in the example files.
import com.Acquired.helper.AQPay;

How to use

It is very simply to use like this:

  1. new a AQPay obj.
AQPay aqpay = new AQPay();
  1. set parameters.
aqpay.setParam("amount", "1");
  1. post parameters according to your transaction type.
JsonObject result = aqpay.capture();
  1. deal response.
if(aqpay.isSignatureValid(result)) {
    
    // Perform actions based on the result
    
}

Requirements

gson-2.7.jar

About

A Complete project && include examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published