com.softslate.commerce.businessobjects.core
Class CommandLineFailedPaymentCheck

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.CommandLineSupport
      extended by 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 Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
CommandLineFailedPaymentCheck()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method, which gets invoked when executing this class from the command line.
static void sendNotificationEmail(java.lang.String textMessage, Settings settings, BusinessObjectFactory bof)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.core.CommandLineSupport
initializeSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

CommandLineFailedPaymentCheck

public CommandLineFailedPaymentCheck()
Method Detail

main

public static void main(java.lang.String[] args)
Main method, which gets invoked when executing this class from the command line.

Parameters:
args -

sendNotificationEmail

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


Copyright © SoftSlate, LLC 2003–2010