public class PaymentHandler
Interface for receiving payment events via a handler
public PaymentHandler()
Interface for receiving payment events via a handler
public void onEvent(@NotNull PaymentEvent paymentEvent)
the function called when we receive a payment event to be implemented
public void onErrorReceived(@NotNull UnhandledError error)
the function called when we receive an unhandled error during payment
public void sendActionConfirmation(@NotNull PaymentActionComplete action)
Delivers the provided response to the remote host.
action
- the response to be sent.public void abortPayment(@NotNull PaymentAbort abort)
Abort an in-flight payment.
abort
- the PaymentAbort object holding merchant's transaction reference.public void proceedWithPayment(@NotNull CardPaymentRequest payment)
Proceed with the payment of a previous CardCheckPayment request.
payment
- the CardPaymentRequest object holding information on the payment to proceed.