Spring Boot integration alipay4j

Alipay4j

SDK For Java 
Development platform SDK for Java live or payment developers.

Official website

http://www.alipay4j.com/ (Da Jianzhong, if you have PHP development engineer, please contact my mailbox 15213595272@163.com)

Introductory video

Coming soon

Project introduction

alipay4j development tool jar
 alipay4j-example-web example

## Update logs

30 August 2019

alipay4j-Bate-1.0-SNAPSHOT
 1. Realize the operation of life number
 2. Testing is in progress without testing.

August 26, 2019

alipay4j-0.0.1 is online
 1. Support small program code acquisition userid
 2. User code for details
 3. APP Token Authorization

## Call mode

1. maven reference

   

<dependency>
            <groupId>org.alipay4j</groupId>
            <artifactId>alipay4j</artifactId>
            <version>Bate-1.0-SNAPSHOT</version>
        </dependency>

2. Configuration project alipay4j.properties

alipay4j.debug=true
alipay4j.token=alipay4j
#APPID
alipay4j.appid= 
#Gateway
alipay4j.gateway=https://openapi.alipaydev.com/gateway.do
#RSA2(SHA256) Key
#Application of private key
alipay4j.rsa2.app.private.key=
#Public key
alipay4j.rsa2.alipay.public.key= 

#Application Gateway
alipay4j.app.gateway= 
#Authorized callback address
alipay4j.app.oauth.uri= 
#User Authorized Callback Address
alipay4j.user.oauth.uri= 
#AES key
alipay4j.app.aes.key= 
#Authorized token, permanently valid (fill in after authorization is obtained), official address of authorized document: https://docs.open.alipay.com/20160728150111277227/intro
#Multiple environments use redis caching, or database storage management
alipay4j.app.auth.token= 

#Handle with handles

3. Implemented according to different component operations (invoked by the following components)

//Getting User Information
        Alipay alipay = AlipayBuilder.newInstance().build();
        /** Return the underlying authorization component */
        BaseComponent baseComponent = alipay.base();
        /** Return authorization-related components */
        SnsComponent snsComponent = alipay.sns();
        /** Living Account Operating Component */
        AccountComponent accountComponent = alipay.account();
        /** Return user components */
        UserComponent userComponent = alipay.user();
        /** Advertising Place Operating Component */
        AdvertComponent advertComponent = alipay.advert();
        /** Data statistics component */
        DataComponent dataComponent = alipay.data();
        /** Extended Zone Component  */
        ExtensionComponent extensionComponent = alipay.extension();
        /** Packet Operating Component */
        GroupComponent groupComponent = alipay.group();
        /** Label Operating Component */
        LabelComponent labelComponent = alipay.label();
        /** Lifenumber Operating Component */
        LifeAgentComponent lifeAgentComponent = alipay.lifeAgent();
        /** Lifenumber Setting Component */
        LifeSettingComponent lifeSettingComponent = alipay.lifeSetting();
        /** Directory Operating Component */
        MenuComponent menuComponent = alipay.menu();
        /** Message Operating Component */
        MessageComponent messageComponent = alipay.message();
        /** Two-Dimensional Code Operating Component */
        QrcodeComponent qrcodeComponent = alipay.qrcode();
        /** Scene Operating Component */
        SceneComponent sceneComponent = alipay.scene();
        /** Marketing Bit Operating Components  */
        TopicComponent topicComponent = alipay.topic();
        /** User Label Operating Component */
        UserLabelComponent userLabelComponent = alipay.userLabel();

 

 

Code Cloud Address: https://gitee.com/heliang240/alipay4j

 

Keywords: SDK Java snapshot PHP

Added by philipreed on Tue, 01 Oct 2019 22:42:01 +0300