Diget Pay
Public entry point of the DigetPay SDK.
Typical usage:
// once, e.g. in Application.onCreate()
DigetPay.initialize(context, DigetPayConfig(apiKey = "...", environment = Environment.SANDBOX))
// whenever the user pays
DigetPay.checkout(activity, request, callback)Functions
Captures (settles) a previously authorized payment. Use after a successful authorization (CardPaymentRequest.auth = true).
Starts a hosted checkout: creates the session, opens the payment screen and reports the outcome to callback. Exactly one callback method runs, on the main thread.
Lists merchant-wide POS transactions across all linked terminals.
Lists recurring payment records returned by GET /v1/payment/s2s/recurring.
Queries live transaction status from the gateway (GET /payment/checkout/status). paymentId is the UUID returned as paymentId (S2S) or id (checkout).
Stores the merchant configuration. Safe to call more than once.
Starts a server-to-server (S2S) card payment: computes the hash, calls the sale endpoint, then shows the 3-D Secure page (if any) and reports the outcome.
Charges a stored card using a recurring token obtained from the original sale that was started with recurringInit = true.
Refunds part or all of a settled payment.
Voids (cancels) a payment before it is settled.
Java-friendly alias for void. Java callers cannot invoke a method named void directly because it is a reserved keyword.