payingcloud-java

Java SDK for Payingcloud API

License

License

Categories

Categories

Java Languages
GroupId

GroupId

cn.payingcloud
ArtifactId

ArtifactId

payingcloud-java
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

payingcloud-java
Java SDK for Payingcloud API
Project URL

Project URL

https://github.com/payingcloud/payingcloud-java
Source Code Management

Source Code Management

https://github.com/payingcloud/payingcloud-java

Download payingcloud-java

How to add to project

<!-- https://jarcasting.com/artifacts/cn.payingcloud/payingcloud-java/ -->
<dependency>
    <groupId>cn.payingcloud</groupId>
    <artifactId>payingcloud-java</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/cn.payingcloud/payingcloud-java/
implementation 'cn.payingcloud:payingcloud-java:1.0.5'
// https://jarcasting.com/artifacts/cn.payingcloud/payingcloud-java/
implementation ("cn.payingcloud:payingcloud-java:1.0.5")
'cn.payingcloud:payingcloud-java:jar:1.0.5'
<dependency org="cn.payingcloud" name="payingcloud-java" rev="1.0.5">
  <artifact name="payingcloud-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='cn.payingcloud', module='payingcloud-java', version='1.0.5')
)
libraryDependencies += "cn.payingcloud" % "payingcloud-java" % "1.0.5"
[cn.payingcloud/payingcloud-java "1.0.5"]

Dependencies

runtime (3)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.5.3
commons-codec : commons-codec jar 1.10
com.fasterxml.jackson.core : jackson-databind jar 2.8.7

Project Modules

There are no modules declared in this project.

payingcloud-java

payingcloud-java是对Payingcloud聚合支付API的Java版本实现及其相关演示,包括两个子项目:

  • payingcloud-java-sdk Java版本SDK开放源码
  • payingcloud-java-demo Java版本SDK使用演示

PayingCloud Java SDK 使用说明

  1. API文档包含了各接口的技术规格说明,建议在实际使用该SDK进行开发之前先阅读API文档以理解相关概念
  2. 引入依赖
    <dependency>
        <groupId>cn.payingcloud</groupId>
        <artifactId>payingcloud-java</artifactId>
        <version>1.0.8</version>
    </dependency>
    
  3. 使用平台密钥构建PayingCloud对象
    PayingCloud payingcloud = new PayingCloud("Your AccessKeyId", "Your AccessKeySecret");
  4. 使用PayingCloud发起对接口的调用,并对调用结果做相应处理
    PcChargeRequest chargeRequest = new PcChargeRequest("orderNo", "subject", amount, channel);
    PcCharge charge = payingcloud.execute(chargeRequest);
cn.payingcloud

payingcloud

Versions

Version
1.0.5