createPaymentAsync

Asynchronously creates a payment transaction for an active checkout session. This sets the payment status to PENDING and initiates the transfer from the customer's wallet to the merchant.

Parameters

request

The request object containing necessary information to create the payment.

cancellationSignal

A signal for canceling the asynchronous operation (nullable).

callback

The callback to be invoked upon completion or error.