public class PaymentManagerCompat
Provides Java-style wrapper methods for PaymentManager
public static PaymentManagerCompat INSTANCE
Provides Java-style wrapper methods for PaymentManager
@JvmStatic public static void startPayment(@NotNull kotlin.coroutines.CoroutineContext coroutineContext, @NotNull PaymentRequest request, @NotNull PaymentHandler handler)
Starts a new transaction by creating a new connection to the remote system using a callback for Java implementation.
coroutineContext
- the context in which the payment will be run i.e MAIN or IOrequest
- a message holding information on the payment to starthandler
- a callback that will be called to deliver payment events.@JvmStatic public static void settlePayment(@NotNull kotlin.coroutines.CoroutineContext coroutineContext, @NotNull CardSettlement request, @NotNull SettleHandler handler)
settles a previous authorisation by creating a new connection to the remote system using a callback for Java implementation.
coroutineContext
- the context in which the payment will be run i.e MAIN or IOrequest
- a message holding information on the payment to be settledhandler
- a callback that will be called to deliver payment events.@JvmStatic public static void queryPayment(@NotNull kotlin.coroutines.CoroutineContext coroutineContext, @NotNull PaymentQuery request, @NotNull PaymentHandler handler)
Starts a new query result request by creating a new connection to the remote system using a callback for Java implementation.
request
- a message holding information on the queryhandler
- a callback that will be called to deliver payment events.@JvmStatic public static void cancelPayment(@NotNull kotlin.coroutines.CoroutineContext coroutineContext, @NotNull PaymentCancel request, @NotNull PaymentHandler handler)
Cancels a previous payment by creating a new connection to the remote system using a callback for Java implementation.
request
- a message holding information on the payment to cancel.handler
- a callback that will be called to deliver the payment result.