MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/jdepend/sample/epayment/commands/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/jdepend/sample/epayment/commands/SaleCommand.java
package epayment.commands;

import epayment.framework.*;

/**
 * The <code>SaleCommand</code> class is an
 * <code>AbstractPaymentCommand</code> for authorizing
 * and capturing a purchase in an
 * atomic operation.
 * <p>
 * This class is strictly an example.
 *
 * @author <a href="mailto:mike@clarkware.com">Mike Clark</a>
 * @author <a href="http://www.clarkware.com">Clarkware Consulting</a>
 */

public class SaleCommand extends AbstractPaymentCommand {

	/**
	 * Constructs an <code>SaleCommand</code> with
	 * the specified payment request.
	 *
	 * @param request Payment request.
	 */
	public SaleCommand(IPaymentRequest request) {
		super(request);
	}
	
	/**
	 * Executes this command using the specified payment 
	 * adapter and returns a payment response.
	 *
	 * @param adapter Payment adapter.
	 * @return response Payment response.
	 * @throws PaymentException If an error occurs.
	 */
	public IPaymentResponse execute(IGatewayAdapter adapter)
		throws PaymentException {
		
		return adapter.sale(getPaymentRequest());
	}
}

Anon7 - 2021