PaymentCallback

interface PaymentCallback

Receives the outcome of a checkout started with com.digetpay.sdk.DigetPay.checkout. Exactly one method is invoked, on the main thread.

Functions

Link copied to clipboard
abstract fun onCancelled()

The user dismissed the checkout screen before finishing.

Link copied to clipboard
abstract fun onFailure(error: PaymentError)

Payment failed, was declined, or an error occurred before completion.

Link copied to clipboard
abstract fun onSuccess(result: PaymentResult)

Payment completed and was verified as approved.