retrievePaymentIntent

Return

The retrieved PaymentIntent

Parameters

secret

The client secret of the PaymentIntent to retrieve

See also

Retrieves an existing PaymentIntent by its client secret.

Example usage:

try {
val paymentIntent = terminal.retrievePaymentIntent("pi_123_secret_456")
// Handle successful retrieval
} catch (e: TerminalException) {
// Handle retrieval failure
}

Throws

if the retrieval operation fails