Class MPaymentTransaction

    • Constructor Detail

      • MPaymentTransaction

        public MPaymentTransaction​(Properties ctx,
                                   int C_PaymentTransaction_ID,
                                   String trxName)
    • Method Detail

      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • setAmount

        public void setAmount​(int C_Currency_ID,
                              BigDecimal payAmt)
      • setCreditCard

        public boolean setCreditCard​(String TrxType,
                                     String creditCardType,
                                     String creditCardNumber,
                                     String creditCardVV,
                                     int creditCardExpMM,
                                     int creditCardExpYY)
      • setCreditCard

        public boolean setCreditCard​(String TrxType,
                                     String creditCardType,
                                     String creditCardNumber,
                                     String creditCardVV,
                                     String creditCardExp)
      • setPaymentProcessor

        public boolean setPaymentProcessor()
      • setPaymentProcessor

        public boolean setPaymentProcessor​(String tender,
                                           String CCType,
                                           int C_PaymentProcessor_ID)
      • processOnline

        public boolean processOnline()
        Process Payment
        Returns:
        true if approved
      • voidOnlineAuthorizationPaymentTransaction

        public boolean voidOnlineAuthorizationPaymentTransaction()
      • delayCaptureOnlineAuthorizationPaymentTransaction

        public boolean delayCaptureOnlineAuthorizationPaymentTransaction​(int C_Invoice_ID)
      • getCreditCardName

        public String getCreditCardName()
      • getCreditCardName

        public String getCreditCardName​(String CreditCardType)
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
      • getErrorMessage

        public String getErrorMessage()
      • startProcess

        public boolean startProcess​(Properties ctx,
                                    ProcessInfo pi,
                                    Trx trx)
        Process Online Payment. implements ProcessCall after standard constructor Called when pressing the Process_Online button in C_Payment
        Specified by:
        startProcess in interface ProcessCall
        Parameters:
        ctx - Context
        pi - Process Info
        trx - transaction
        Returns:
        true if the next process should be performed
      • getAuthorizationPaymentTransactionIDs

        public static int[] getAuthorizationPaymentTransactionIDs​(int C_Order_ID,
                                                                  int C_Invoice_ID,
                                                                  String trxName)
      • getAuthorizationPaymentTransactionIDs

        public static int[] getAuthorizationPaymentTransactionIDs​(int[] orderIDList,
                                                                  int C_Invoice_ID,
                                                                  String trxName)