A paramater set that takes request paramaters (from Req) and assigns them to properties of this class
Common functionality for paypal PDT and IPN
Represents the type of connection that can be made to paypal, irrespecitve of the mode of connection
Wrapper instance for handling the response from a paypal data transfer.
To handle IPN transactions you need to do the following:
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.
sealed abstract type PaypalMode so we can cast to the super class in our method declerations.
sealed abstract type PaypalMode so we can cast to the super class in our method declerations. Cannot be subclasses outside of this source file.
All paypal service classes need to subclass PaypalResponse explicitally.
A simple abstraction for all HTTP operations.
A simple abstraction for all HTTP operations. By definition they will return a HTTP error code. We are invaribly only concerned with if it was a good one or not.
Contatins all the papyal status abstractions as enumberable vals
Wrapper instance for handling the response from a paypal data transfer.
The processed response List[String]. The response input should be created with StreamResponseProcessor