Interface PaymentDelegate

    • Method Detail

      • onDeliverGoodsOrServices

        default void onDeliverGoodsOrServices​(eu.ccvlab.mapi.core.DeliveryBoxCallback deliveryBoxCallback)
        Triggers the implementor to indicate if delivery is successful or not. This way, the StateMachine is triggered to continue. Providing the callback simplifies the implementors job by facilitating the asynchronous nature of the callback.
        Parameters:
        deliveryBoxCallback - implementors will call the callback when delivery is successful or not.
      • drawCustomerSignature

        default void drawCustomerSignature​(eu.ccvlab.mapi.core.machine.CustomerSignatureCallback customerSignatureCallback)
        Method is called BEFORE the ticket is printed, so once drawn, the signature is printed on the ticket.
        Parameters:
        customerSignatureCallback - The callback which will return the signature to the mAPI
      • inputCommand

        default void inputCommand​(java.util.List<java.lang.String> lines,
                                  java.lang.String command,
                                  int length,
                                  eu.ccvlab.mapi.core.machine.InputCommandCallback inputCommandCallback)