com.mikeblanton.paypal.servlet
Class FilePDTServlet
com.mikeblanton.paypal.servlet.AbstractPDTServlet
|
+--com.mikeblanton.paypal.servlet.FilePDTServlet
- public class FilePDTServlet
- extends AbstractPDTServlet
This Servlet saves invalid and valid PDTs to a file on the filesystem.
The name of the file is the Transaction ID of the transaction, or UNKNOWN
if there was no Transaction ID. A Timestamp is also written to the file.
The following properties can be used either as Servlet Initialization Properties
or System Properties:
paypaltools.valid.pdt.file.dir
: Directory to store valid files. ./
by default.
paypaltools.invalid.pdt.file.dir
: Directory to store invalid files.
./
by default.
paypaltools.pdt.at
: PayPal Authentication Token received when you activated PDT.
The following properties can be specified in the configuration file:
valid.pdt.file.dir
: Directory to store valid files. ./
by default.
invalid.pdt.file.dir
: Directory to store invalid files. ./
by default.
pdt.at
: PayPal Authentication Token received when you activated PDT.
- Version:
- $Revision: 1.3 $
- Author:
- Michael Blanton
- See Also:
AbstractPDTServlet
Method Summary |
protected void |
processInvalidPDT(PayPalData _data,
javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response)
Saves an Invalid PDT to a file. |
protected void |
processValidPDT(PayPalData _data,
javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response)
Saves a Valid PDT to a file. |
FilePDTServlet
public FilePDTServlet()
processValidPDT
protected void processValidPDT(PayPalData _data,
javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response)
- Saves a Valid PDT to a file. The filename is either the Transaction ID of the request,
or
UNKNOWN
if no Transaction ID is associated with the request.
Be sure to extend this method so you can deal with the user response appropriately.
- Overrides:
processValidPDT
in class AbstractPDTServlet
- Following copied from class:
com.mikeblanton.paypal.servlet.AbstractPDTServlet
- Parameters:
_data
-
processInvalidPDT
protected void processInvalidPDT(PayPalData _data,
javax.servlet.http.HttpServletRequest _request,
javax.servlet.http.HttpServletResponse _response)
- Saves an Invalid PDT to a file. The filename is either the Transaction ID of the request,
or
UNKNOWN
if no Transaction ID is associated with the request.
Be sure to extend this method so you can deal with the user response appropriately.
- Overrides:
processInvalidPDT
in class AbstractPDTServlet
- Following copied from class:
com.mikeblanton.paypal.servlet.AbstractPDTServlet
- Parameters:
_data
-