Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paymos Java SDK

Official Java 17+ client for the Paymos Merchant API. It provides the complete resource surface, HMAC signing, bounded cursor iteration, structured errors, safe retries, and raw-body webhook verification.

<dependency>
  <groupId>io.paymos</groupId>
  <artifactId>paymos-java</artifactId>
  <version>1.1.2</version>
</dependency>
PaymosClient paymos = new PaymosClient(
    System.getenv("PAYMOS_API_KEY"),
    System.getenv("PAYMOS_API_SECRET"));

Invoice invoice = paymos.invoices.create(
    CreateInvoiceRequest.builder()
        .projectId("prj_...")
        .amount("10.00")
        .currency("USD")
        .externalOrderId("order_123")
        .build());

iterate provides bounded lazy cursor traversal. API failures throw PaymosApiException, retaining the response status, body, problem JSON, stable error code, field, error kind, and numeric Retry-After.

WebhookVerifier verifier = new WebhookVerifier(System.getenv("PAYMOS_WEBHOOK_SECRET"));
WebhookEvent<JsonNode> event =
    verifier.constructEvent(signatureHeader, rawRequestBody, Instant.now());

Verify the exact raw request bytes before parsing JSON. Never expose the API secret to browser or mobile code. Full documentation: https://paymos.io/docs/server-sdks

About

Java and JVM SDK for Paymos. Accept USDT, USDC, USD1 and DAI, with separate sandbox and production credentials.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages