Trait

net.liftmodules.paypal

PaypalIPN

Related Doc: package paypal

Permalink

trait PaypalIPN extends BasePaypalTrait

To handle IPN transactions you need to do the following:

// in Whatever.scala object MyPayPalHandler extends PayPal { import PaypalTransactionStatus._ def actions = { case (ClearedPayment, info, _) => // write the payment to the database case (RefundedPayment, info, _) => // process refund } } // in Boot.scala LiftRules.statelessDispatchTable = MyPayPalHandler orElse LiftRules.statelessDispatchTable

In this way you then get all the DispatchPF processing stuff for free.

Linear Supertypes
BasePaypalTrait, PartialFunction[Req, () ⇒ Box[LiftResponse]], (Req) ⇒ () ⇒ Box[LiftResponse], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PaypalIPN
  2. BasePaypalTrait
  3. PartialFunction
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class IPNRequest(r: Req, cnt: Int, when: Long) extends Product with Serializable

    Permalink
    Attributes
    protected

Abstract Value Members

  1. abstract def actions: PartialFunction[(Box[PaypalTransactionStatus.Value], PayPalInfo, Req), Unit]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. lazy val IPNPath: String

    Permalink
  5. lazy val MaxRetry: Int

    Permalink

    How many times do we try to verify the request

  6. object PingMe extends Product with Serializable

    Permalink
    Attributes
    protected
  7. lazy val RootPath: String

    Permalink
    Definition Classes
    BasePaypalTrait
  8. def andThen[C](k: (() ⇒ Box[LiftResponse]) ⇒ C): PartialFunction[Req, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  9. def apply(r: Req): () ⇒ Box[LiftResponse]

    Permalink
    Definition Classes
    BasePaypalTrait → Function1
  10. def applyOrElse[A1 <: Req, B1 >: () ⇒ Box[LiftResponse]](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def buildInfo(resp: PaypalResponse, req: Req): Box[PayPalInfo]

    Permalink
    Attributes
    protected
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def compose[A](g: (A) ⇒ Req): (A) ⇒ () ⇒ Box[LiftResponse]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. def connection: PaypalConnection

    Permalink
    Definition Classes
    BasePaypalTrait
  16. def defaultResponse(): Box[LiftResponse]

    Permalink
  17. def dispatch: List[DispatchPF]

    Permalink
    Definition Classes
    PaypalIPNBasePaypalTrait
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def functionName: String

    Permalink
    Definition Classes
    BasePaypalTrait
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def ipnPath: String

    Permalink
  25. def isDefinedAt(r: Req): Boolean

    Permalink
    Definition Classes
    BasePaypalTrait → PartialFunction
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def lift: (Req) ⇒ Option[() ⇒ Box[LiftResponse]]

    Permalink
    Definition Classes
    PartialFunction
  28. lazy val mode: PaypalMode

    Permalink
    Definition Classes
    BasePaypalTrait
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def orElse[A1 <: Req, B1 >: () ⇒ Box[LiftResponse]](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  33. object requestQueue extends LiftActor

    Permalink
    Attributes
    protected
  34. def rootPath: String

    Permalink
    Definition Classes
    BasePaypalTrait
  35. def runWith[U](action: (() ⇒ Box[LiftResponse]) ⇒ U): (Req) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BasePaypalTrait

Inherited from PartialFunction[Req, () ⇒ Box[LiftResponse]]

Inherited from (Req) ⇒ () ⇒ Box[LiftResponse]

Inherited from AnyRef

Inherited from Any

Ungrouped