PaymentElementCallback

Callback interface for PaymentElement creation results.

Implement this interface to receive callbacks when PaymentElement creation succeeds or fails. This is primarily for Java interoperability.

Functions

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

Called when PaymentElement creation fails.

Link copied to clipboard
abstract fun onSuccess(element: PaymentElement)

Called when PaymentElement is successfully created.