Class PayPalEvents


  • public class PayPalEvents
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String commonResource  
      static java.lang.String module  
      static java.lang.String resource  
      static java.lang.String resourceErr  
    • Constructor Summary

      Constructors 
      Constructor Description
      PayPalEvents()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String callPayPal​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Initiate PayPal Request
      static java.lang.String cancelPayPalOrder​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Event called when customer cancels a paypal order
      static java.lang.String payPalIPN​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      PayPal Call-Back Event
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • PayPalEvents

        public PayPalEvents()
    • Method Detail

      • callPayPal

        public static java.lang.String callPayPal​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)
        Initiate PayPal Request
      • payPalIPN

        public static java.lang.String payPalIPN​(javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response)
                                          throws java.io.IOException
        PayPal Call-Back Event
        Throws:
        java.io.IOException
      • cancelPayPalOrder

        public static java.lang.String cancelPayPalOrder​(javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response)
        Event called when customer cancels a paypal order