ugpayments library

Classes

BankTransfer
Legacy simulated bank transfer payment processing.
CardDetails
Strongly-typed card details for secure handling.
CardPayment
Legacy simulated card payment processing.
Encryption
Utility class for handling payment data encryption and security.
MobileMoney
Legacy simulated mobile money payment processing.
PaymentClient
Main client for handling payment operations in Uganda.
PaymentConfig
Configuration settings for the payment client.
PaymentConstants
Constants used throughout the payment package.
PaymentRequest
Represents a payment request with all necessary details.
PaymentResponse
Represents a response from a payment operation.
PaymentValidator
Utility class for validating payment-related data.
PesaPalProvider
PesaPal payment provider implementation.
PesaPalRedirectWebViewPage
Simple redirect page that loads the given URL inside a WebView.
TokenManager
Manages authentication tokens for PesaPal API.
Transaction
Represents a payment transaction with full details.

Enums

PaymentStatus
Represents the status of a payment transaction.

Exceptions / Errors

PaymentApiException
An arbitrary PesaPal API/transport failure (bad status code, malformed response, IPN registration failure, etc.).
PaymentAuthenticationException
PesaPal rejected the configured API credentials.
PaymentException
Exception thrown when payment operations fail.
PaymentInsufficientFundsException
The transaction failed due to insufficient funds.
PaymentInvalidDataException
Payment data (e.g. a request field) was missing or invalid.
PaymentNetworkException
A network-level failure occurred while talking to PesaPal.
PaymentTimeoutException
The transaction timed out.
PaymentValidationException
A PaymentRequest failed local validation before being sent to PesaPal.