Skip to content

About

Official PayCow Java SDK

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

PayCow Java SDK

Java 17 client for the PayCow non-custodial USDT payment API.

Maven

Download the SDK archive and install it into your local Maven repository.

cd paycow-java-sdk
mvn clean install
<dependency>
    <groupId>net.paycow</groupId>
    <artifactId>paycow-java-sdk</artifactId>
    <version>1.0.0</version>
</dependency>

Usage

PayCowClient paycow = new PayCowClient(
    System.getenv("PAYCOW_API_KEY"),
    System.getenv("PAYCOW_API_SECRET")
);

CreatePaymentRequest request = CreatePaymentRequest.builder()
    .userId("customer-2048")
    .amount(new BigDecimal("50.00"))
    .network("TRC20")
    .idempotencyKey("order-2048-001")
    .build();

PaymentSession payment = paycow.createPayment(request);

See https://paycow.net/docs/sdk/java for the complete reference.

About

Official PayCow Java SDK

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages