v1.0 Android Kotlin & Java PCI-safe
Payments for your Android app¶
The DigetPay Android SDK adds hosted checkout, card payments, refunds,
captures, and recurring charges through a single entry point — DigetPay.
Clear guides, real code, and a generated API reference.
minSdk 24Android 7.0 and up
Kotlin & JavaFirst-class support
One objectSingle entry point
3-D SecureHandled for you
Overview¶
The DigetPay Android SDK handles checkout sessions, card tokenization, 3-D Secure redirects, status verification, and result routing, so you can focus on your product instead of payment plumbing.
The recommended path is short: install the AAR, initialize DigetPay once, run a
hosted checkout, store the returned IDs on your backend, then use the operation
APIs — status, capture, void, refund, recurring — when your flow needs them.
What you can build¶
-
Hosted Checkout
Open a DigetPay-hosted payment page and keep card data out of your app — the safest default.
-
Card Payment
Collect card data in-app and run a server-to-server sale with 3-D Secure handled for you.
-
Recurring
Tokenize a card once, then charge subscriptions or installments later.
-
Operations
Check status, capture authorizations, void, and refund transactions.
-
Callbacks
Handle outcomes with
PaymentCallbackandOperationCallback. -
Error Handling
Predictable failures with structured
ErrorCodevalues.
How a payment flows¶
Initialize once — Call DigetPay.initialize() at app start with your DigetPayConfig.
Start checkout — Call DigetPay.checkout() with the amount, currency, and customer details.
Customer pays — The SDK opens the hosted checkout screen and watches for the redirect.
Verify & return — The SDK verifies the final status, then PaymentCallback reports success, failure, or cancellation.
Store sessionId, transactionId, and orderId on your backend after success.
Don't rely only on the visual success page for critical order state.
Requirements¶
- Minimum SDK
- 24 (Android 7.0)
- Compile SDK
- 36 (recommended)
- Kotlin
- 2.0+
- Java target
- 11
- Internet permission
- Added automatically by the SDK
Dependencies are not bundled
The AAR does not embed transitive runtime dependencies (Retrofit, OkHttp, Coroutines, AndroidX). Add them explicitly in your app module — see Installation.
What's in the SDK¶
-
DigetPay
The entry point: initialize, checkout, card payments, operations, and recurring charges.
-
DigetPayConfig·Environment
API key, environment (
SANDBOX/PRODUCTION), and logging options. -
Request & result models
CheckoutRequest,CardPaymentRequest,RecurringRequest,PaymentResult. -
Callbacks
PaymentCallbackfor payments,OperationCallbackfor operation results.
Start integrating¶
-
Install
Add the AAR and runtime dependencies.
-
Configure
Set the environment, API key, and logging.
-
First checkout
Run your first end-to-end payment.
-
API reference
Generated Kotlin reference for every public type.