Skip to content

samuelbirocchi/paypal-stc-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paypal-stc-sdk-java

Java SDK for PayPal STC integration

Build Status

Maven

<dependency>
    <groupId>com.samuelbirocchi</groupId>
    <artifactId>paypal-stc-sdk-java</artifactId>
    <version>1.0</version>
</dependency>

Usage

PaypalSTCClient.access_key = "access_key";
PaypalSTCClient.secret_key = "secret_key";
PaypalSTCClient.merchant_id = "merchant_id";
PaypalSTCClient.test = true;

PaypalRiskRequest paypalRiskRequest = new PaypalRiskRequest();
paypalRiskRequest.setTrackingId("tracking_id");

PaypalAccountDetails paypalAccountDetails = new PaypalAccountDetails();
paypalAccountDetails.setFirstName("Name");

...

PaypalAccount senderAccount = new PaypalAccount();
senderAccount.setPartnerAccount(paypalAccountDetails);
paypalRiskRequest.setSenderAccount(senderAccount);

PaypalSTCClient.sendInfomation("tracking_id", paypalRiskRequest);

About

Java SDK for PayPal STC integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages