Skip to main content
This SDK allows you to easily integrate Yabetoo’s secure payment system into your Java applications. Whether you’re developing a web, mobile, or desktop application, this SDK provides a simple and intuitive interface for interacting with the Yabetoo API.

Installation

Prerequisites

  • Java 8 or higher
  • Maven or Gradle
  • An active Yabetoo account
  • Your Yabetoo API keys

Installation with Maven

Add the following dependency to your pom.xml file:

Installation with Gradle

Add the following dependency to your build.gradle file:

Configuration

SDK Initialization

Payment Management

Create a Payment Intent

Confirm a Payment Intent

Error Handling

Checkout Sessions

Create a Session

Retrieve a Session

Webhooks

Verify a Webhook Signature

Advanced Configuration

Custom Timeouts

HTTP Proxy

Best Practices

  1. Secret Management
    • Never store API keys directly in code
    • Use environment variables or a secrets manager
  2. Error Handling
    • Implement comprehensive error handling
    • Log errors for debugging
    • Provide appropriate error messages to users
  3. Validation
    • Validate all user inputs before sending to the API
    • Check amounts and currencies
    • Validate phone numbers and emails
  4. Security
    • Use HTTPS for all communications
    • Always verify webhook signatures
    • Double-check successful payments

Conclusion

The Yabetoo Java SDK simplifies payment integration into your Java applications. Its object-oriented design and fluent API make code more readable and maintainable. For more information and detailed examples, check our complete documentation.
For any questions or technical assistance, feel free to contact our support team at support@yabetoopay.com