previewPaymentAsync

Asynchronously previews a payment transaction for an active checkout session. This returns a preview of the payment details including fees and balance impact without committing the transaction.

Parameters

request

The request object containing necessary information to preview the payment.

cancellationSignal

A signal for canceling the asynchronous operation (nullable).

callback

The callback to be invoked upon completion or error.