@ExperimentalCoroutinesApi
public class PaymentManager
Provides access for sending and receiving data from the remote system.
public static PaymentManager INSTANCE
Provides access for sending and receiving data from the remote system.
@Nullable public java.lang.Object startPayment(@NotNull PaymentRequest request, @NotNull kotlin.jvm.functions.Function2<? super com.worldpay.payment.PaymentStream,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> callback, @NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Starts a new transaction by creating a new connection to the remote system.
request
- a message holding information on the payment to startcallback
- a receiver that will be executed for the lifetime of the connection to the remote system to deliver the events.@Nullable public java.lang.Object queryPayment(@NotNull PaymentQuery request, @NotNull kotlin.jvm.functions.Function2<? super com.worldpay.payment.PaymentEventStream,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> callback, @NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Starts a new query result request by creating a new connection to the remote system.
request
- a message holding information on the query result.callback
- a receiver that will be executed for the lifetime of the connection to the remote system to deliver the events.@Nullable public java.lang.Object settlePayment(@NotNull CardSettlement request, @NotNull kotlin.jvm.functions.Function2<? super com.worldpay.payment.PaymentEventStream,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> callback, @NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Settles a previous authorisation by creating a new connection to the remote system.
request
- a message holding information on the payment to be settledcallback
- a receiver that will be executed for the lifetime of the connection to the remote system to deliver the events.@Nullable public java.lang.Object cancelPayment(@NotNull PaymentCancel request, @NotNull kotlin.jvm.functions.Function2<? super com.worldpay.payment.PaymentEventStream,? super kotlin.coroutines.Continuation<? super kotlin.Unit>,? extends java.lang.Object> callback, @NotNull kotlin.coroutines.Continuation<? super kotlin.Unit> p)
Cancels a previous payment.
request
- details of the payment to cancelcallback
- a receiver that will be executed for the lifetime of the connection to the remote system to deliver the events.