Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

beinto/payline-java-sdk

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payline Java SDK

Maven Central

The Payline API provides access to the various functions of the Payline payment solution. It is based on standard web service components, which include the SOAP protocol, the WSDL and XSD definition languages. These standards are supported by a large range of development tools on multiple platforms.

This SDK covers all the functions of the Payline payment solution.

Features

The set of web services Payline is covered by this library. Web services are divided into four classes:

  • DirectPayment
  • ExtendedAPI
  • WalletPayment
  • WebPayment

Requirements

Java 1.6 or higher

Installation

Maven users

Add this dependency in your project's POM:

<dependency>
  <groupId>com.payline</groupId>
  <artifactId>payline-java-sdk</artifactId>
  <version>4.53</version>
</dependency>

Usage

SampleCalls.java

import java.util.logging.Level;
import java.util.logging.Logger;

import com.payline.kit.utils.ConnectParams;
import com.payline.ws.model.GetMerchantSettingsResponse;
import com.payline.ws.wrapper.DirectPayment;

public class SampleCalls {

    private static final Logger logger = Logger.getLogger(SampleCalls.class.getName());

    public static void main(String[] args) {
        ConnectParams params = new ConnectParams(
                null, /* module */
                false, /* production */
                false, /* clientAuthentication */
                "", /* Your merchant account login: merchantId */
                "", /* Your access key to the Payline service: accessKey */
                null, /* proxyHost (optional) */
                null, /* proxyPort (optional) */
                null, /* proxyLogin (optional) */
                null /* proxyPassword (optional) */
                );
        DirectPayment directPayment = new DirectPayment(params);
        GetMerchantSettingsResponse res = directPayment.getMerchantSettings(null);

        logger.log(Level.INFO, "\ngetMerchantSettings result :  ");
        logger.log(Level.INFO, "  - code :  " + res.getResult().getCode());
        logger.log(Level.INFO, "  - short message :  " + res.getResult().getShortMessage());
        logger.log(Level.INFO, "  - long message :  " + res.getResult().getLongMessage());
    }
}

Version

4.52

Learn about Payline

For assistance, advice or an answer to your question, contact Payline Support by email at support@payline.com

License

LGPL v3

About

Payline Java SDK

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.