Class CommandLineFailedPaymentCheck

java.lang.Object
com.softslate.commerce.businessobjects.core.CommandLineSupport
com.softslate.commerce.businessobjects.core.CommandLineFailedPaymentCheck

public class CommandLineFailedPaymentCheck extends CommandLineSupport
A class which may be run from the command line to check for orders whose payments were processed (through Authorize.net DPM) but where the order itself was not processed and marked complete in the system. This command is useful in stores using the Authorize.net DPM processor with the Complete Order When? setting set to "After Payment Process". In such stores it is unlikely but possible for the payment to be processed but the order not completed, if some error occurs between the time Authorize.net receives the response from the system and the customer's browser redirects to the Thank You page. (To avoid this possibility, set the Complete Order When? setting set to "During Payment Process", which is the default. Be aware processing the order during processing increases the response time from the system to Authorize.net, and Authorize.net may timeout and display an error to user if that happens.) See the accompanying commandLinePaymentCheck.sh file for a Unix shell script that may be used to fire off the example.
Author:
dtobey
  • Field Details

    • log

      static org.apache.commons.logging.Log log
  • Constructor Details

    • CommandLineFailedPaymentCheck

      public CommandLineFailedPaymentCheck()
  • Method Details

    • main

      public static void main(String[] args)
      Main method, which gets invoked when executing this class from the command line.
      Parameters:
      args -
    • sendNotificationEmail

      public static void sendNotificationEmail(String textMessage, Settings settings, BusinessObjectFactory bof)