Class CheckOutPresenter<T extends CheckOutView>

    • Constructor Detail

      • CheckOutPresenter

        public CheckOutPresenter​(@NonNull
                                 Order order)
        Create the presenter with a given Order
        Parameters:
        order - used to generate the transaction
      • CheckOutPresenter

        public CheckOutPresenter​(@NonNull
                                 Order order,
                                 @NonNull
                                 PaymentParams paymentParams)
        Create the presenter with a given Order
        Parameters:
        order - used to generate the transaction
        paymentParams - instance of PaymentParams used on PaymentAPI calls
    • Method Detail

      • submitTransaction

        public void submitTransaction()
        Submit transaction using current stored Order to generate an instance of Transaction
      • getMemberProfile

        protected void getMemberProfile​(ProfileParams profileParams)
        Part of CheckOutPresenter load process. This is called after successfully receiving client token
        Parameters:
        profileParams - query params used for Profile API
      • onProfileDownloadSuccess

        protected void onProfileDownloadSuccess​(Profile data)
        Part of CheckOutPresenter load process. This is called after a successful profile download request
        Parameters:
        data - instance of Profile
      • getClientPaymentToken

        public void getClientPaymentToken()
        Request the token used for the client payment. Note that calling this will follow default load data of CheckOutPresenter
      • onPaymentClientReceivedSuccess

        protected void onPaymentClientReceivedSuccess​(Payments data)
        Part of CheckOutPresenter load process. This is called after successfully receiving payment client request
        Parameters:
        data - instance of Payments
      • getPaymentToken

        public java.lang.String getPaymentToken()
        Returns:
        current payment token of the client
      • setStoreId

        public void setStoreId​(java.lang.String storeId)
        Register the store id for this check out transaction
        Parameters:
        storeId - id to be registered on the current transaction
      • getMemberId

        public java.lang.String getMemberId()
        Returns:
        the current memberId used