com.paypal.base.ipn
Class IPNMessage

java.lang.Object
  extended by com.paypal.base.ipn.IPNMessage

public class IPNMessage
extends Object


Constructor Summary
IPNMessage(javax.servlet.http.HttpServletRequest request)
          Constructs IPNMessage using the given HttpServletRequest to retrieve the name and value Map.
IPNMessage(javax.servlet.http.HttpServletRequest request, Map<String,String> configurationMap)
          Constructs IPNMessage using the given HttpServletRequest to retrieve the name and value Map and a custom configuration Map
IPNMessage(Map<String,String[]> ipnMap)
          Constructs IPNMessage using the given Map for name and values.
IPNMessage(Map<String,String[]> ipnMap, Map<String,String> configurationMap)
          Constructs IPNMessage using the given Map for name and values and a custom configuration Map
 
Method Summary
 Map<String,String> getIpnMap()
           
 String getIpnValue(String ipnName)
           
 String getTransactionType()
           
 boolean validate()
          This method post back ipn payload to PayPal system for verification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPNMessage

public IPNMessage(javax.servlet.http.HttpServletRequest request)
Constructs IPNMessage using the given HttpServletRequest to retrieve the name and value Map.

Parameters:
request - HttpServletRequest object received from PayPal IPN call back.

IPNMessage

public IPNMessage(Map<String,String[]> ipnMap)
Constructs IPNMessage using the given Map for name and values.

Parameters:
ipnMap - Map representing IPN name/value pair

IPNMessage

public IPNMessage(javax.servlet.http.HttpServletRequest request,
                  Map<String,String> configurationMap)
Constructs IPNMessage using the given HttpServletRequest to retrieve the name and value Map and a custom configuration Map

Parameters:
request - HttpServletRequest object received from PayPal IPN call back.
configurationMap - custom configuration Map

IPNMessage

public IPNMessage(Map<String,String[]> ipnMap,
                  Map<String,String> configurationMap)
Constructs IPNMessage using the given Map for name and values and a custom configuration Map

Parameters:
ipnMap - Map representing IPN name/value pair
configurationMap -
Method Detail

validate

public boolean validate()
This method post back ipn payload to PayPal system for verification


getIpnMap

public Map<String,String> getIpnMap()
Returns:
Map of IPN name/value parameters

getIpnValue

public String getIpnValue(String ipnName)
Parameters:
ipnName -
Returns:
IPN value for corresponding IpnName

getTransactionType

public String getTransactionType()
Returns:
Transaction Type (eg: express_checkout, cart, web_accept)


Copyright © 2015. All Rights Reserved.